Step 2 of 4 · ProjectsAPIs
hmrclib
Typed Python clients for 73 HMRC APIs: Pillar 2 submission, customs declarations, Making Tax Digital and more.
What it does
A typed Python client for the 73 REST APIs of the HMRC Developer Hub, with pydantic models from each API's OpenAPI specification and one client class per API. It installs from PyPI, needs HMRC client credentials and handles the OAuth2 flows, with an optional FastAPI callback server. MIT and not affiliated with HMRC; the specifications are Crown copyright under the Open Government Licence.
Where it fits on the map
Similar projects
Of the same kind, for a shared jurisdiction or tax area. Not a ranking.
- Attest.NET library that validates ID numbers, tax codes, VAT numbers and postal codes in 87 countries.
- ct600-filingCommand-line tool that files a CT600 corporation tax return with HMRC.
- customs-domainPHP domain logic for commodity code validation, UK Trade Tariff mapping and compliance rules.
- DomibusDomibus, the European Commission's open AS4 message handler for eDelivery, used for e-invoicing exchanges.
- eric-rsRust bindings and SDK for ERiC, the ELSTER library for submitting German tax filings.
- FiscalBr.NETC# library that generates Brazil's SPED files and other tax and accounting declarations.
Maintain this project?
Link to this page from your README, so readers find the facts, the notes and where it fits. The badge is a small SVG served from this site.
[](https://tax-oss.com/projects/hmrclib/)