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

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.4.0
File Size Uploaded Provenance Actions
maytes_api_client_py-0.4.0.tar.gz 59.4 kB Without provenance Details for maytes_api_client_py-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 172.3 kB

Release files / maytes_api_client_py-0.4.0.tar.gz

Download URL maytes_api_client_py-0.4.0.tar.gz
Size 59.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc3bf768244a6b3a5818b55c288518613f31877a1013804828378f36915797fd
BLAKE2b-256 checksum
How to use checksums
c1246a7ed5c222e22a43be694714d43de9aa3e63d76d30a79241d4c2b37cf41b
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.4.0-py3-none-any.whl

Download URL maytes_api_client_py-0.4.0-py3-none-any.whl
Size 113.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f56c4b8f132fe2eb6d1bfd44b13c7be5cc071a2c59919edc9452d2a460910768
BLAKE2b-256 checksum
How to use checksums
3b6edf58b6e1c80e78ef65bb6c39d5a73259bb8bfda4a92d40bd64fd57107db9
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.4.0

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