This file is the AI assistant entry point for mpt-api-python-client.
Python API client for the SoftwareONE Marketplace Platform (MPT) API. Provides synchronous
(MPTClient) and asynchronous (AsyncMPTClient) clients built on httpx, with typed
resource services, mixin-based HTTP operations, and an RQL query builder.
README.md— project overview and quick startdocs/architecture.md— layered architecture, directory structure, key abstractionsdocs/testing.md— test structure, tooling, conventions, how to run testsdocs/contributing.md— development workflow, coding conventions, linting setupdocs/local-development.md— Docker setup, Make targets, environment variables
See docs/PROJECT_DESCRIPTION.md for installation and usage examples (sync and async).
The upstream MPT API is described by the OpenAPI spec: https://api.s1.show/public/v1/openapi.json
Use this to understand available endpoints, request/response schemas, and field names.
| Command | Purpose |
|---|---|
make build |
Build the Docker development environment |
make test |
Run unit tests |
make check |
Run all linting and type checks |
make check-all |
Run checks + tests |
make format |
Auto-format code |
mpt_api_client/
├── mpt_client.py # MPTClient / AsyncMPTClient entry points
├── http/ # HTTP transport, services, mixins
├── resources/ # API domain modules (catalog, commerce, billing, …)
├── models/ # Response model classes
├── rql/ # RQL query builder
└── exceptions.py # Error hierarchy
This repository follows shared engineering standards from mpt-extension-skills:
standards/python-style-guide.mdstandards/testing-standard.mdstandards/contributing-standard.mdstandards/pull-request-guidelines.md