All SDKs

BUILD WITH ACCOUNTING

The Python SDK.

Integrate the Accounting API into your Python application.

INSTALL THE CLIENT

python -m pip install accounting_sh

Use the repository documentation to choose a compatible release and confirm package availability.

A first read in the sandbox

Set ACCOUNTING_API_TOKEN to a sandbox company credential in your server environment. Handle failures before using the result in your application.

import os
from accounting_sh import Accounting

api = Accounting(
    os.environ["ACCOUNTING_API_TOKEN"],
    url="https://sandbox.api.accounting.sh",
)
accounts = api.accounts_api.list_accounts(page="1", per_page="10")

Build with Python

Use Python for company-data synchronisation, controlled imports and scheduled accounting workflows. Keep credentials outside scripts and notebook outputs, and inspect responses before applying a write.

Install and choose a release

The installation command below uses the package name declared by the SDK project. Consult the linked repository for release availability, requirements and the documentation matching your installed version. Pin the release you test instead of assuming every version exposes the same methods.

Start with a small read

Enable API access for the company, then use the SDK’s documented configuration for the intended environment and credential. Start by listing a resource and inspect pagination and error responses. The API reference remains the source for fields and permissions.

Add writes carefully

Validate your inputs and retain returned resource identifiers. Review uncertain network results before repeating a write. Connect webhook processing only after your synchronous workflow is tested, and re-read state before acting on an event.

Understand service boundaries

One payment enables API access forever for your company. See the country price on the pricing page. Integrations have their own access and do not require this purchase.

Work in another language?

JavaScript

Integrate the Accounting API into your JavaScript application.

accountingshExplore the SDK

PHP

Integrate the Accounting API into your PHP application.

accounting-sh/php_sdkExplore the SDK

Python

Integrate the Accounting API into your Python application.

accounting_shExplore the SDK