Skip to main content

Official Python sdk for Xero API generated by OpenAPI spec for oAuth2

Project description

xero-python

image

Official python SDK for Xero API generated by OpenAPI spec for oAuth 2

Features

  • XERO API Client with oauth2 token integration.
  • Automatic OAuth 2 token refresh before token expiration.
  • Class based interface for Xero API endpoints.
  • Model classes used to represent API data.
  • Currently Supported API sets:
  • Error handling for ease of use.

Starter Project

We've created xero-python-outh2-starter a project to demonstrate how to use this SDK.

  • oauth 2 flow to obtain a token
  • token refresh
  • identity to obtain tenant_id
  • organisation endpoint
  • create contact
  • create multiple contacts
  • get invoices using where clause

Here is a 15 min video walkthrough on using the starter project.

Kitchen Sync app

We've created xero-python-outh2-app a project to demonstrate how to make API calls and displays the python code used to make the call and the JSON response.

  • oauth 2 flow to obtain a token
  • token refresh
  • identity to obtain tenant_id
  • accounting
    • accounts
    • contacts
    • invoices
  • assets
    • asset
    • asset type
    • asset settings
  • projects
    • projects
    • project users
    • tasks
    • time
  • au payroll
    • employee
    • leave applications
    • pay items
    • payroll calendar
    • pay runs
    • pay slips
    • settings
    • superfunds
    • superfund products
    • timesheets
  • uk payroll

Credits

Contribution

Please read contribution guidelines.

License

This software is published under the MIT License.

Copyright (c) 2020 Xero Limited

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

History

0.1.0 (2020-03-02)

  • First release on PyPI.

Project details


Release history Release notifications | RSS feed

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xero_python-1.0.0.tar.gz (463.2 kB view details)

Uploaded Source

File details

Details for the file xero_python-1.0.0.tar.gz.

File metadata

  • Download URL: xero_python-1.0.0.tar.gz
  • Upload date:
  • Size: 463.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/2.7.16

File hashes

Hashes for xero_python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c041a37fcda7f158416b60f1b4575c83c6979f8af351e1598d1a52e45532589b
MD5 5849f6ca75bfb5f9340920f2ca9d7de2
BLAKE2b-256 b69759f497a5293741559e41458afab058cdc74a8b7b31c92f3c42e8434b8a2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page