Skip to main content

Python Connector for QuickBooks Online

Python Connector for QuickBooks Online is a connectivity solution for accessing QuickBooks Online Online from Python applications to read and update data. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows and Windows Server.

Standard SQL syntax

The connector fully supports the ANSI SQL standard and lets you execute SQL statements against your QuickBooks Online data just like you would normally work with relational databases. Simple queries are directly converted to QuickBooks Online API calls and executed on the QuickBooks Online side. Complex queries are transformed into simpler queries, which are then converted to QuickBooks Online API calls. The embedded SQL engine then processes the results in the local cache and applies advanced SQL features from the original complex query.

Connecting

To establish a connection to a QuickBooks Online database, import the connector and use the connect() method with your connection parameters.

Import the connector

First, import the QuickBooks Online connector module:

import devart.quickbooks as quickbooks

Establish a connection

Call the connect() method and obtain a connection object.

response = quickbooks.signin()
my_connection = quickbooks.connect(
    CompanyId=response["Company Id"],
    RefreshToken=response["Refresh Token"]
)

Replace the example values with your actual connection values.

Querying data

Once connected to QuickBooks Online, you can execute SQL queries to retrieve data from your QuickBooks Online account.

Execute a query

Create a cursor object using the cursor() connection method.

my_cursor = my_connection.cursor()

Execute a SQL query using the execute() cursor method.

my_cursor.execute("SELECT * FROM employees")

Retrieve results using one of the fetch*() methods.

for row in my_cursor.fetchall(): 
    print(row)

Parameterized queries

You can use parameterized queries to pass variable values to your SQL statements. This allows you to reuse the same query with different data and helps to prevent SQL injection attacks.

Pass parameters as a list or tuple to the execute() method:

query = "SELECT Id, Name FROM Contact WHERE Name = ? AND Email = ?"
params = ["Jordan Sanders", "jordansanders@example.com"]
my_cursor.execute(query, params)
results = my_cursor.fetchall()
for row in results:
    print(row)

Each placeholder ? in the query is replaced with a corresponding value from the parameter list.

Ordering and activating the license

You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/quickbooks/ordering.html

To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/quickbooks/activate-a-license.htm

What's new

Python Connector for QuickBooks Online 1.4

  • Added support for Python 3.15

Metadata

Release files for devart-quickbooks-connector 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for devart-quickbooks-connector 1.4.0
File Actions
devart_quickbooks_connector-1.4.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for devart_quickbooks_connector-1.4.0-cp315-cp315-win_amd64.whl
devart_quickbooks_connector-1.4.0-cp315-cp315-win32.whl CPython 3.15 CPython 3.15 Windows x86-32 Details for devart_quickbooks_connector-1.4.0-cp315-cp315-win32.whl
devart_quickbooks_connector-1.4.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for devart_quickbooks_connector-1.4.0-cp314-cp314-win_amd64.whl
devart_quickbooks_connector-1.4.0-cp314-cp314-win32.whl CPython 3.14 CPython 3.14 Windows x86-32 Details for devart_quickbooks_connector-1.4.0-cp314-cp314-win32.whl
devart_quickbooks_connector-1.4.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for devart_quickbooks_connector-1.4.0-cp313-cp313-win_amd64.whl
devart_quickbooks_connector-1.4.0-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details for devart_quickbooks_connector-1.4.0-cp313-cp313-win32.whl
devart_quickbooks_connector-1.4.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for devart_quickbooks_connector-1.4.0-cp312-cp312-win_amd64.whl
devart_quickbooks_connector-1.4.0-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for devart_quickbooks_connector-1.4.0-cp312-cp312-win32.whl
devart_quickbooks_connector-1.4.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for devart_quickbooks_connector-1.4.0-cp311-cp311-win_amd64.whl
devart_quickbooks_connector-1.4.0-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details for devart_quickbooks_connector-1.4.0-cp311-cp311-win32.whl
devart_quickbooks_connector-1.4.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for devart_quickbooks_connector-1.4.0-cp310-cp310-win_amd64.whl
devart_quickbooks_connector-1.4.0-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details for devart_quickbooks_connector-1.4.0-cp310-cp310-win32.whl

Total release size: 68.3 MB

Release files / devart_quickbooks_connector-1.4.0-cp315-cp315-win_amd64.whl

Download URL devart_quickbooks_connector-1.4.0-cp315-cp315-win_amd64.whl
Size 5.8 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
02af945acb43c47cca2eec35f6072a29e8f8bd86dc4ff23f3d7eb4c0a3b69664
BLAKE2b-256 checksum
How to use checksums
47caeaf0633f142ef737cf11fba3c1e2b71e9f791ddbb8f5bfb8b9ac37c1e9a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp315-cp315-win32.whl

Download URL devart_quickbooks_connector-1.4.0-cp315-cp315-win32.whl
Size 5.6 MB
Tags CPython 3.15 Windows x86-32
SHA-256 checksum
How to use checksums
b210a0502389bef15339f29c9b05037311bd1b1e169fd462a6a0f7f4298dd81e
BLAKE2b-256 checksum
How to use checksums
80cbaa12614fc32a9b7f17dc0b584c3e5aa87a3de6ba242d856df0cad36079a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp314-cp314-win_amd64.whl

Download URL devart_quickbooks_connector-1.4.0-cp314-cp314-win_amd64.whl
Size 5.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
3fd47ab716fd2fa44ebcd0ed5175be61cf324e98c2703f2e530b0f513c90665b
BLAKE2b-256 checksum
How to use checksums
5adc17c0019340d2849d9aaf290ff3bcde5207ac0dbdb1e722e9597b7aa1e81f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp314-cp314-win32.whl

Download URL devart_quickbooks_connector-1.4.0-cp314-cp314-win32.whl
Size 5.6 MB
Tags CPython 3.14 Windows x86-32
SHA-256 checksum
How to use checksums
3dcc392a2d1d7c4561908aba44bda7b99ff6576303082a52c6ba1d13cf4cc022
BLAKE2b-256 checksum
How to use checksums
7e71b886803ded1e6d177f527e873bb79030826915a3f015935d8fd8b30fc8b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp313-cp313-win_amd64.whl

Download URL devart_quickbooks_connector-1.4.0-cp313-cp313-win_amd64.whl
Size 5.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
bdb2cd696a6cce23182152865fc50cf2c1fb6790a92aa7206b7847fd8fe52ec4
BLAKE2b-256 checksum
How to use checksums
fa1e547bdb31f49eff553b37f996505b53144a8e9d777d6cfae20d21a94fe604
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp313-cp313-win32.whl

Download URL devart_quickbooks_connector-1.4.0-cp313-cp313-win32.whl
Size 5.6 MB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
690022de07b674d2b9f1ded9ab5f46a11df5dd5290bb863b0a9f917eea67c8b8
BLAKE2b-256 checksum
How to use checksums
4ba066fc00fdeac5be1f9d7410d70f30e39ee1444ba160b0bfd404a563311b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp312-cp312-win_amd64.whl

Download URL devart_quickbooks_connector-1.4.0-cp312-cp312-win_amd64.whl
Size 5.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2ec2f2d20251712fb0bbaeb4b962b1cfafcf767fd5f4edcd877aead602d3c100
BLAKE2b-256 checksum
How to use checksums
26c6dc996c8ca874913c1912e7caf43619cccf029ddcb6ee3f71a9fcc479a4ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp312-cp312-win32.whl

Download URL devart_quickbooks_connector-1.4.0-cp312-cp312-win32.whl
Size 5.6 MB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
570ac551791bfb0c927b0fe5fc2f75da44cfb2f12d545aa970ca4b3e722518b9
BLAKE2b-256 checksum
How to use checksums
c2ebebdf54336c449f63d4ed1c972942d191b6dfc5c5aa49821c24fed4b15dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp311-cp311-win_amd64.whl

Download URL devart_quickbooks_connector-1.4.0-cp311-cp311-win_amd64.whl
Size 5.8 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
312a712473abe27a450fa702e690494f469b3975c4d0c3b5f6f43d1ea4990ead
BLAKE2b-256 checksum
How to use checksums
29408ba4a5670b1fd7591193cc04967e0285fd0a46300c0274b5644bf53cb1a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp311-cp311-win32.whl

Download URL devart_quickbooks_connector-1.4.0-cp311-cp311-win32.whl
Size 5.6 MB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
220aac662c21fee2fd753746be1b27126aab7ba95db09e54c58acec92e88e32c
BLAKE2b-256 checksum
How to use checksums
24276456f7f820b754f08c2d11ccb31a05b52f3ef1bb2ab4e096613582902a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp310-cp310-win_amd64.whl

Download URL devart_quickbooks_connector-1.4.0-cp310-cp310-win_amd64.whl
Size 5.8 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
0e6ba1da692fb38b1747fc0ec09475c0cf4455571d2764881a015c5789edaac3
BLAKE2b-256 checksum
How to use checksums
b1ce07172d71454de6d7cb125f3cd22a461aff265f7562efaf070fb7c54a321a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Release files / devart_quickbooks_connector-1.4.0-cp310-cp310-win32.whl

Download URL devart_quickbooks_connector-1.4.0-cp310-cp310-win32.whl
Size 5.6 MB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
df8e95116f73515a6d56fa7c30371ba2b42705e1bea6f589f487caac66dcab51
BLAKE2b-256 checksum
How to use checksums
9b3b0c2c0286768648aeeaa20e39384a5f598b352e26d422a63cd43942f35421
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Security for devart-quickbooks-connector 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page