qbosdk


Nameqbosdk JSON
Version 0.20.0 PyPI version JSON
download
home_pagehttps://github.com/fylein/qbo-sdk-py
SummaryPython SDK for accessing Quickbooks Online APIs
upload_time2024-11-25 06:43:10
maintainerNone
docs_urlNone
authorShwetabh Kumar
requires_pythonNone
licenseMIT
keywords quickbooks-online quickbooks fyle api python sdk
VCS
bugtrack_url
requirements requests future pylint
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/4b/f8/a27e8f4faf11e285460d0788514538c5895806d5b379623a49549411b25f/qbosdk-0.20.0.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": "0.20.0",
    "project_urls": {
        "Homepage": "https://github.com/fylein/qbo-sdk-py"
    },
    "split_keywords": [
        "quickbooks-online",
        " quickbooks",
        " fyle",
        " api",
        " python",
        " sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc2a1da5a77c00dfb56f0c8f31d73d572d9fcd4f844ea06ec4429364aa206598",
                "md5": "379297538f7d023f061f508a1c69f291",
                "sha256": "2daa45b422c4c95e3a2edc17bc67e8ab3c41d7420a43bb1cbdc61ce618c3d0b9"
            },
            "downloads": -1,
            "filename": "qbosdk-0.20.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "379297538f7d023f061f508a1c69f291",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 22640,
            "upload_time": "2024-11-25T06:43:09",
            "upload_time_iso_8601": "2024-11-25T06:43:09.577336Z",
            "url": "https://files.pythonhosted.org/packages/fc/2a/1da5a77c00dfb56f0c8f31d73d572d9fcd4f844ea06ec4429364aa206598/qbosdk-0.20.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4bf8a27e8f4faf11e285460d0788514538c5895806d5b379623a49549411b25f",
                "md5": "8b1c944411be2c9a8358923425236ae3",
                "sha256": "e3f3ce6582ad70a743c0c49d3472c00bd88ad41ed15e0e2d1944a49f1d74df76"
            },
            "downloads": -1,
            "filename": "qbosdk-0.20.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8b1c944411be2c9a8358923425236ae3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14366,
            "upload_time": "2024-11-25T06:43:10",
            "upload_time_iso_8601": "2024-11-25T06:43:10.803010Z",
            "url": "https://files.pythonhosted.org/packages/4b/f8/a27e8f4faf11e285460d0788514538c5895806d5b379623a49549411b25f/qbosdk-0.20.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-25 06:43:10",
    "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": "future",
            "specs": [
                [
                    "==",
                    "0.18.2"
                ]
            ]
        },
        {
            "name": "pylint",
            "specs": [
                [
                    "==",
                    "2.17.2"
                ]
            ]
        }
    ],
    "lcname": "qbosdk"
}
        
Elapsed time: 0.38619s