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

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.3
File Size Uploaded Provenance Actions
maytes_api_client_py-0.1.3.tar.gz 52.7 kB Without provenance Details for maytes_api_client_py-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 157.6 kB

Release files / maytes_api_client_py-0.1.3.tar.gz

Download URL maytes_api_client_py-0.1.3.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
024bebec0de0500d36227a409e8fb6ace31fde05e6f69b823625fda72b6f621f
BLAKE2b-256 checksum
How to use checksums
8a7f594ea1d3247d70f9306a42ee9cced773332d8f41c07b15089cdbd5b51329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL maytes_api_client_py-0.1.3-py3-none-any.whl
Size 104.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57b9720aa2a7e5ae78be2720a454de7d901edd3e1557c7562407fbc90dbe966b
BLAKE2b-256 checksum
How to use checksums
ca2cdd3309348ef67147c1dc5e9a1b006e423b6baea3a79232c3ef5922ab4793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for maytes-api-client-py 0.1.3

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