pyxero
Python API for accessing the REST API of the Xero accounting tool.
Decision gist · record as of 2026-08-14
Yes. PyXero is actively maintained, has no known vulnerabilities, supports current Python versions 3.9–3.14, and uses a permissive BSD-3-Clause license. Install friction is low. It is the standard choice for Python developers integrating with Xero's API.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a registered Xero app with Client ID and Client Secret; OAuth2 tokens expire after 30 minutes and must be refreshed for extended use.
- Low install friction with a pure Python wheel and five well-established runtime dependencies.
- The package is actively maintained with recent commits and supports modern Python versions 3.9 through 3.14.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, making it safe for most projects.
last release 2025-06-04 (436 days) · last repo commit 2026-08-03 · 282 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 317,999 downloads/mo, #7,657 on PyPI
Alternatives
Verify before relying
pip install pyxero
from pyxero.auth import OAuth2Credentials
credentials = OAuth2Credentials(client_id, client_secret, callback_uri=callback_uri)
authorisation_url = credentials.generate_url()
credentials.verify(request_uri)
contacts = credentials.get_tenants()- Whether the package handles all current Xero API endpoints or if some are missing or outdated.
- Performance characteristics when querying large datasets or making many concurrent requests.
- Completeness of error handling and recovery for network failures or API rate limits.
- Full scope of accounting resources accessible through the library beyond what the excerpt demonstrates.
What it is and what it does
PyXero is a Python wrapper around Xero's REST API that handles authentication and request mechanics. It supports both OAuth2 (for apps that can keep secrets) and PKCE (for mobile, desktop, or single-page apps), managing token expiry and refresh automatically. The library abstracts Xero's accounting resources into Python objects you can query.
You register your app with Xero, obtain credentials, and use PyXero to authenticate users and make API calls on their behalf. The library handles scope management, multi-tenant support for users with access to multiple Xero organizations, and token lifecycle. It's built on requests, requests-oauthlib, python-dateutil, PyJWT, and cryptography.
Use it for
- Integrate Xero accounting data into your application without storing user passwords.
- Build automated workflows that read and write accounting data back to Xero.
- Create desktop or mobile tools that access Xero without embedding a client secret.
- Sync customer and transaction data from Xero into your own database.
- Connect Xero accounting to a larger business intelligence or reporting pipeline.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyXero is actively maintained, has no known vulnerabilities, supports current Python versions 3.9–3.14, and uses a permissive BSD-3-Clause license. Install friction is low. It is the standard choice for Python developers integrating with Xero's API.
Install
pyxero on PyPI
Before you install
Low install friction with a pure Python wheel and five well-established runtime dependencies. The package is actively maintained with recent commits and supports modern Python versions 3.9 through 3.14.
Requires a registered Xero app with Client ID and Client Secret; OAuth2 tokens expire after 30 minutes and must be refreshed for extended use.
License in practice
BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions, making it safe for most projects.
Quickstart
pip install pyxero
from pyxero.auth import OAuth2Credentials
credentials = OAuth2Credentials(client_id, client_secret, callback_uri=callback_uri)
authorisation_url = credentials.generate_url()
credentials.verify(request_uri)
contacts = credentials.get_tenants()
Verify before relying
- Whether the package handles all current Xero API endpoints or if some are missing or outdated.
- Performance characteristics when querying large datasets or making many concurrent requests.
- Completeness of error handling and recovery for network failures or API rate limits.
- Full scope of accounting resources accessible through the library beyond what the excerpt demonstrates.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesrequestsrequests-oauthlibpython-dateutilPyJWTcryptography |
| Maintenance | Actively maintained 436 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 317,999 / month, #7,657 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: Financial and Insurance IndustryOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Office/Business :: Financial :: Accounting |
Evidence: pyxero-0.9.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xero api client python”
- pyxeroPyXero is a Python client library for the Xero accounting REST API,…
- xero-pythonProvides Python bindings to Xero's accounting, payroll, assets,…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Financial packages
statsmodels provides statistical models, inference methods, and descriptive statistics for Python, complementing scipy with regression, time series, discrete choice, survival analysis, and multivariate methods.
Install it if you need publication-quality statistical models, hypothesis tests, or time series analysis beyond what scipy or pandas provide.
Generates country- and subdivision-specific government holiday calendars on demand, supporting 250 country codes with optional language localization and holiday categories.
Fetches financial and market data from Yahoo Finance's public APIs, including ticker information, historical prices, and live streaming data.
However, do not use it for commercial applications or high-volume data collection without confirming compliance with Yahoo's terms of service.
Bokeh is an interactive visualization library that creates browser-based plots, dashboards, and data applications from Python code, with support for large and streaming datasets.
Install it if you need browser-based interactivity.
Parses, validates, and reformats standard numbers and codes across many countries and industries—tax IDs, bank accounts, identity numbers, VAT codes, and financial identifiers.
Install it if you validate or reformat standardized numbers.
Provides elementary financial functions (IRR, NPV, PMT, and others) that were deprecated and removed from NumPy, offering a dedicated replacement for financial calculations.
However, given the aging status (no releases since 2019) and unclear compatibility with modern Python and recent numpy versions, verify that it works with your target…
See also xero-python · looker-sdk · oauth2-client · edx-rest-api-client · requests-oauthlib · ovh · requests-oauth2client · workos · intuit-oauth · python-quickbooks