$npx skillfedfor your agent

pyxero

Python API for accessing the REST API of the Xero accounting tool.

Worth itPyPI FinancialReleased Jun 2025318.0K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyxero-0.9.5-py3-none-any.whl
v0.9.5 · released 2025-06-04 · Python >=3.9 · 5 runtime deps: requests, requests-oauthlib, python-dateutil, PyJWT, cryptography

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
requestsrequests-oauthlibpython-dateutilPyJWTcryptography
MaintenanceActively maintained 436 days since the last release
Last repo commit
First released
Downloads317,999 / month, #7,657 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
xero api client pythonxero accounting integrationoauth2 xero authenticationxero python wrapperaccounting api clientxero rest apixero oauth2 client
Topics
accounting-apioauth2-clientxero-integration
PyPI keywords
xeroapi

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 Worth it
PyPI · Scientific/Engineering · released Dec 2025

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.

BSD-3-Clausecompiled wheel · 3.9+
45.7Mdownloads / mo
holidays Worth it
PyPI · Python Modules · released Aug 2026

Generates country- and subdivision-specific government holiday calendars on demand, supporting 250 country codes with optional language localization and holiday categories.

MITpure Python · 3.10+
30.7Mdownloads / mo
yfinance With conditions
PyPI · Libraries · released Aug 2026

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.

Apache-2.0pure Python
29.2Mdownloads / mo
bokeh Worth it
PyPI · Scientific/Engineering · released Jul 2026

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.

BSD-3-Clausepure Python · 3.10+
12.1Mdownloads / mo
python-stdnum Worth it
PyPI · Python Modules · released Jan 2026

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.

LGPL-2.0-or-laterpure Python · 3.8+
6.2Mdownloads / mo
numpy-financial With conditions
PyPI · Software Development · released Oct 2019

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…

BSD-3-Clausepure Python · 3.5+aging
5.9Mdownloads / mo

See also xero-python · looker-sdk · oauth2-client · edx-rest-api-client · requests-oauthlib · ovh · requests-oauth2client · workos · intuit-oauth · python-quickbooks