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

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

Built distribution (wheel)

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

Total release size: 172.4 kB

Release files / maytes_api_client_py-0.4.1.tar.gz

Download URL maytes_api_client_py-0.4.1.tar.gz
Size 59.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fdde7bca4f0809dba8b5559c43b6fdcc2e33d66bc514f9eb6d42e94ec8e51a72
BLAKE2b-256 checksum
How to use checksums
0af1f17a527eb080eb0a726302ee8ea5bd223b2f184cf7de36799e33e2281755
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.1-py3-none-any.whl

Download URL maytes_api_client_py-0.4.1-py3-none-any.whl
Size 113.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f799b42381d1a3c4fbc0a5516f53db05bdfb1e9b782e74c78c726b489bc9a4e
BLAKE2b-256 checksum
How to use checksums
11f88d718244490d37e295f2c95a782a678ce611f3c9cefada5e7e32d90f96d8
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.1

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