python-quickbooks
A Python library for accessing the QuickBooks API.
What it is and what it does
python-quickbooks is a Python 3 client library for the Intuit QuickBooks Online API, enabling programmatic access to accounting data. It wraps OAuth 2.0 authentication via the intuit-oauth dependency and provides object-oriented interfaces to query, filter, create, update, and delete QuickBooks entities (customers, invoices, payments, etc.) with support for batch operations and change-data capture to track modifications since a given timestamp.
Developers pass an AuthClient to a QuickBooks client object along with a refresh token and company ID, then use chainable query methods (all, filter, where, query, count) to retrieve entities or batch operations to perform multiple writes in a single API call. The description warns that user input must be sanitized before passing to queries, as the library does not sanitize input itself.
Use it for:
- Sync QuickBooks customer and invoice data into a Python application for reporting or analytics
- Automate bulk customer or payment creation and updates via batch operations in a single API request
- Monitor accounting data changes since a specific timestamp using change-data capture for incremental sync workflows
- Build a custom accounting dashboard or integration layer that queries QuickBooks entities with complex filters and ordering
- Attach documents or notes to QuickBooks records programmatically via the Attachable API
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python library for querying, creating, updating, and batch-processing QuickBooks Online entities through the Intuit API, with support for filtering, ordering, and change-data capture.
Yes. The library is actively maintained, has low install friction, carries a permissive MIT license, and provides a mature Python interface to QuickBooks Online. Install it if you need to integrate QuickBooks data into a Python application. Be aware that you must handle OAuth credential setup separately and sanitize any user input before passing it to queries.
Install
python-quickbooks on PyPI
pip
pip install python-quickbooksuv
uv add python-quickbookspoetry
poetry add python-quickbooksInstalling python-quickbooks
Before you install
Low friction install with four runtime dependencies (intuit-oauth, requests_oauthlib, requests, python-dateutil). Actively maintained as of March 2026 with 469 repository stars. Last release was April 2025.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install python-quickbooks
from quickbooks import QuickBooks
from quickbooks.objects.customer import Customer
# Requires AuthClient from intuit-oauth dependency
client = QuickBooks(
auth_client=auth_client,
refresh_token='REFRESH_TOKEN',
company_id='COMPANY_ID'
)
customers = Customer.all(qb=client)
Requires valid Intuit OAuth 2.0 credentials (CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN, REFRESH_TOKEN, COMPANY_ID) obtained from Intuit developer portal. Intuit is deprecating support for minor versions 1–74 beginning August 1, 2025.
Verify before relying
- Whether the library handles automatic token refresh when access_token expires without explicit user intervention
- Performance characteristics when querying large result sets (max 1000 entities per response)
- Extent of SQL query syntax support and any limitations beyond standard Intuit QBO query operations
- Specific Python version requirements (classifiers list versions 3.5–3.12 but requires_python is unspecified)
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — intuit-oauth, requests_oauthlib, requests, python-dateutil |
| Maintenance | actively maintained — 485 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 975,199/month — #4,598 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_quickbooks-0.9.12-py3-none-any.whl
Keywords: quickbooks, qbo, accounting
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
conductor-pyA typed Python client for the Conductor API…
permissive · top 15,000 on PyPI
intuit-oauthProvides OAuth2 and OpenID Connect…
permissive · top 5,000 on PyPI
Unified-python-sdkPython SDK client for the Unified.to API,…
unclear · top 15,000 on PyPI
xero-pythonProvides Python bindings to Xero's accounting,…
permissive · top 15,000 on PyPI
taxjarPython client library for the TaxJar Sales Tax…
permissive · top 15,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
pyxeroPyXero is a Python client library for the Xero…
permissive · top 15,000 on PyPI
gocardless-proA Python client library for the GoCardless API…
permissive · top 15,000 on PyPI
ofxtoolsParses, generates, and converts Open Financial…
copyleft · top 15,000 on PyPI
webflowA Python client library for the Webflow Data…
permissive · top 15,000 on PyPI