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
    • employees
    • employement
    • employees tax
    • employee opening balance
    • employees leave
    • employees leave balances
    • employees statutory leave balances
    • employees statutory leave summary
    • employees statutory sick leave
    • employees leave periods
    • employees leave types
    • employees pay templates
    • employer pensions
    • deductions

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.2

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.2.tar.gz (464.5 kB view hashes)

Uploaded Source

Supported by

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