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

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

Built distribution (wheel)

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

Total release size: 168.5 kB

Release files / maytes_api_client_py-0.1.7.tar.gz

Download URL maytes_api_client_py-0.1.7.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f2f04017f19953759b38d0e4b5bb5e5e19f71275ab996cc963f7d6620dfb723e
BLAKE2b-256 checksum
How to use checksums
36ad8023e65cd5007f5d107bce629ef310e45544bb3849b77e2a9632abcd67e5
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.7-py3-none-any.whl

Download URL maytes_api_client_py-0.1.7-py3-none-any.whl
Size 110.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42c8c36291b2dcf206e93c384cf52a471c5c73934ab48575fbf70c9f3fd3dccd
BLAKE2b-256 checksum
How to use checksums
81d9e176e5342ece6af026c0b23b667b1bcf84e0e1980d741742a588bca48a0d
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.7

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