# QuickbooksOnlineSDK
Python SDK for accessing QBO APIs.
## Installation
This project requires [Python 3+](https://www.python.org/downloads/) and [Requests](https://pypi.org/project/requests/) library (pip install requests).
1. Download this project and use it (copy it in your project, etc).
2. Install it from [pip](https://pypi.org).
$ pip install qbosdk
## Usage
To use this SDK you'll need these QBO credentials used for OAuth2 authentication: **client ID**, **client secret** and **refresh token**.
This SDK is very easy to use.
1. First you'll need to create a connection using the main class QuickbooksOnlineSDK.
```python
from qbosdk import QuickbooksOnlineSDK
connection = QuickbooksOnlineSDK(
client_id='<YOUR CLIENT ID>',
client_secret='<YOUR CLIENT SECRET>',
refresh_token='<YOUR REFRESH TOKEN>',
realm_id='<REALM / COMPANY ID>',
environment='<sandbox / production>'
)
```
2. After that you'll be able to access any of the API classes
```python
"""
USAGE: <QuickbooksOnlineSDK INSTANCE>.<API_NAME>.<API_METHOD>(<PARAMETERS>)
"""
# Get a list of all Employees (with all available details for Employee)
response = connection.employees.get()
# Get a list of all Accounts
response = connection.accounts.get()
```
See more details about the usage into the wiki pages of this project.
## Integration Tests
To run integration tests, you will need a mechanism to connect to a real qbo account. Save this info in a test_credentials.json file in your root directory:
```json
{
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"realm_id": "<realm_id>",
"refresh_token": "<refresh_token>",
"environment": "<environment sandbox / production>"
}
```
```bash
$ pip install pytest
$ python -m pytest test/integration
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
Raw data
{
"_id": null,
"home_page": "https://github.com/fylein/qbo-sdk-py",
"name": "qbosdk",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "quickbooks-online, quickbooks, fyle, api, python, sdk",
"author": "Shwetabh Kumar",
"author_email": "shwetabh.kumar@fyle.in",
"download_url": "https://files.pythonhosted.org/packages/48/bf/911b1cdcf63a98f05a6f948bdc76fa8971693716d7034eeaa2cb0b639f6d/qbosdk-1.4.2.tar.gz",
"platform": null,
"description": "# QuickbooksOnlineSDK\n\nPython SDK for accessing QBO APIs.\n\n## Installation\n\nThis project requires [Python 3+](https://www.python.org/downloads/) and [Requests](https://pypi.org/project/requests/) library (pip install requests).\n\n1. Download this project and use it (copy it in your project, etc).\n2. Install it from [pip](https://pypi.org).\n \n $ pip install qbosdk\n\n## Usage\n\nTo use this SDK you'll need these QBO credentials used for OAuth2 authentication: **client ID**, **client secret** and **refresh token**.\n\nThis SDK is very easy to use.\n1. First you'll need to create a connection using the main class QuickbooksOnlineSDK.\n```python\nfrom qbosdk import QuickbooksOnlineSDK\n\nconnection = QuickbooksOnlineSDK(\n client_id='<YOUR CLIENT ID>',\n client_secret='<YOUR CLIENT SECRET>',\n refresh_token='<YOUR REFRESH TOKEN>',\n realm_id='<REALM / COMPANY ID>',\n environment='<sandbox / production>'\n)\n```\n2. After that you'll be able to access any of the API classes\n```python\n\"\"\"\nUSAGE: <QuickbooksOnlineSDK INSTANCE>.<API_NAME>.<API_METHOD>(<PARAMETERS>)\n\"\"\"\n\n# Get a list of all Employees (with all available details for Employee)\nresponse = connection.employees.get()\n\n# Get a list of all Accounts\nresponse = connection.accounts.get()\n```\n\nSee more details about the usage into the wiki pages of this project.\n\n## Integration Tests\n\nTo run integration tests, you will need a mechanism to connect to a real qbo account. Save this info in a test_credentials.json file in your root directory:\n\n```json\n{\n \"client_id\": \"<client_id>\",\n \"client_secret\": \"<client_secret>\",\n \"realm_id\": \"<realm_id>\",\n \"refresh_token\": \"<refresh_token>\",\n \"environment\": \"<environment sandbox / production>\"\n}\n```\n\n```bash\n$ pip install pytest\n\n$ python -m pytest test/integration\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python SDK for accessing Quickbooks Online APIs",
"version": "1.4.2",
"project_urls": {
"Homepage": "https://github.com/fylein/qbo-sdk-py"
},
"split_keywords": [
"quickbooks-online",
" quickbooks",
" fyle",
" api",
" python",
" sdk"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d94e5eb861689aa6fa39718e63a8907e9d1f3cc7128ef6f351424395291c7ead",
"md5": "0ab5d37d7a372525816909fc640558f5",
"sha256": "2ab14ee10d14f1680b5840708e2949aa44e09ddfbb9ec6dd0f7395181e6a12d9"
},
"downloads": -1,
"filename": "qbosdk-1.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0ab5d37d7a372525816909fc640558f5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 23926,
"upload_time": "2025-09-19T16:52:29",
"upload_time_iso_8601": "2025-09-19T16:52:29.432477Z",
"url": "https://files.pythonhosted.org/packages/d9/4e/5eb861689aa6fa39718e63a8907e9d1f3cc7128ef6f351424395291c7ead/qbosdk-1.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "48bf911b1cdcf63a98f05a6f948bdc76fa8971693716d7034eeaa2cb0b639f6d",
"md5": "5622cadb80097df567286c47df83d20d",
"sha256": "dd50afaf06f28f44e665a7d27e3efe095139dafd8a45cd804dfdc79aa6ad242a"
},
"downloads": -1,
"filename": "qbosdk-1.4.2.tar.gz",
"has_sig": false,
"md5_digest": "5622cadb80097df567286c47df83d20d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14954,
"upload_time": "2025-09-19T16:52:30",
"upload_time_iso_8601": "2025-09-19T16:52:30.616928Z",
"url": "https://files.pythonhosted.org/packages/48/bf/911b1cdcf63a98f05a6f948bdc76fa8971693716d7034eeaa2cb0b639f6d/qbosdk-1.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-19 16:52:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fylein",
"github_project": "qbo-sdk-py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": [
[
">=",
"2.25.0"
]
]
},
{
"name": "pylint",
"specs": [
[
"==",
"2.7.4"
]
]
}
],
"lcname": "qbosdk"
}