Step 2 of 4 · ProjectsAPIs

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

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.

Listed on tax-oss.com

[![Listed on tax-oss.com](https://tax-oss.com/badge.svg)](https://tax-oss.com/projects/hmrclib/)
Next · Step 3 of 4The gapsThe activities with no open project yet, and the partly covered ones, with what to build on.