Skip to main content

Maytes Python SDK

Official Python client for the Maytes API — create, capture and cancel checkouts, and verify inbound webhook signatures.

Generated package. This repository is a build artefact, published from the Maytes API service definition. Pull requests here are not accepted — file issues instead, and fixes land upstream in the source model.

Install

pip install maytes-api-client-py

Usage

The client mints an OAuth2 client_credentials token on first use, caches it, and — on a 401 — refreshes and retries the request once. There is no client-side expiry maths to get wrong, and no proactive refresh to schedule.

from maytes_api_client import create_maytes_api_client, verify_webhook_signature

client = create_maytes_api_client(endpoint, client_id, client_secret)
checkout = client.create_checkout(request)

event = verify_webhook_signature(raw_body, signature_header, signing_secret)

The PyPI project is maytes-api-client-py; the import package is maytes_api_client.

Verifying webhooks

Verify before parsing the body, and pass the raw request bytes — not a re-encoded object. Re-serialising changes the bytes and the signature will not match. The event id is stable across retries, so deduplicate on it.

Documentation

Full integration docs: https://developers.maytes.co

License

MIT — see LICENSE.

Metadata

Release files for maytes-api-client-py 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maytes-api-client-py 0.1.6
File Size Uploaded Provenance Actions
maytes_api_client_py-0.1.6.tar.gz 52.6 kB Without provenance Details for maytes_api_client_py-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maytes-api-client-py 0.1.6
File Interpreter ABI Platform Actions
maytes_api_client_py-0.1.6-py3-none-any.whl Python 3 none any Details for maytes_api_client_py-0.1.6-py3-none-any.whl

Total release size: 157.6 kB

Release files / maytes_api_client_py-0.1.6.tar.gz

Download URL maytes_api_client_py-0.1.6.tar.gz
Size 52.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d066ea576b9178d1a2ec39d3ea512e1a59e11c244de92293b4604ed53a0de8d6
BLAKE2b-256 checksum
How to use checksums
062a3511f31caa163ae6f4fa9194558dad565d252cd59df8fb3fa87c909736d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / maytes_api_client_py-0.1.6-py3-none-any.whl

Download URL maytes_api_client_py-0.1.6-py3-none-any.whl
Size 105.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df5ff24f23957f631f7ed6105a98ca7df59362499203de2d2191d264680e50c2
BLAKE2b-256 checksum
How to use checksums
b0f60bc1577a04036e288111a9a6e28ca6ac0a2ed0023c4f8ed20b07fc34595f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for maytes-api-client-py 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page