Modern Python SDK for Pagar.me API v5
Project description
Pagar.me Python SDK
Modern Python SDK for integration with the Pagar.me payment gateway (v5).
Features
- Asynchronous: Built on
httpxfor high-performance async calls. - Type-safe: Powered by
Pydantic v2for data validation and IDE support. - Complete: Support for Customers, Cards, Orders, Charges, and more.
Installation
# Using uv
uv add pagarme-python-sdk
# Using pip
pip install pagarme-python-sdk
Quick Start
import asyncio
from pagarme_py import PagarMeClient
async def main():
async with PagarMeClient(api_key="sk_test_...") as client:
# Create a customer
customer = await client.customers.create({
"name": "Tony Stark",
"email": "tony@stark.com",
"document": "12345678909",
"type": "individual"
})
print(f"Created customer: {customer.id}")
if __name__ == "__main__":
asyncio.run(main())
Technologies
- Python 3.13+
- uv for package and virtual environment management
- Pydantic v2 for data validation
- HTTPX for asynchronous requests
- Ruff, Pyright, isort for code quality
- Pytest for automated tests
Development
To install development dependencies:
uv sync --all-extras
Refer to .junie/guidelines.md for contribution guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pagarme_python_sdk-0.1.2.tar.gz.
File metadata
- Download URL: pagarme_python_sdk-0.1.2.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86c7d0e0facdefb70eb1876b7f475cb77347ab31f193ce60c84f16117d67930
|
|
| MD5 |
5c36dddfb47848a5d6c1b5cef7256a34
|
|
| BLAKE2b-256 |
e759ac45fd671b1099941c1ee2d5a04e80f702986fa1adbda126ef6d413eab38
|
Provenance
The following attestation bundles were made for pagarme_python_sdk-0.1.2.tar.gz:
Publisher:
publish.yml on ramon/pagarme-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pagarme_python_sdk-0.1.2.tar.gz -
Subject digest:
b86c7d0e0facdefb70eb1876b7f475cb77347ab31f193ce60c84f16117d67930 - Sigstore transparency entry: 1188897295
- Sigstore integration time:
-
Permalink:
ramon/pagarme-py@38db6b9d4ab788601f5ef7d2a6dea19ac455512f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/ramon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38db6b9d4ab788601f5ef7d2a6dea19ac455512f -
Trigger Event:
release
-
Statement type:
File details
Details for the file pagarme_python_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pagarme_python_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76428f542caaa589865729ab7e08feda7953b9c4b676f2e8a01b53a7748a6448
|
|
| MD5 |
73f198ca75dceaef2d96a573dd28e1c1
|
|
| BLAKE2b-256 |
506287816c74a350e2fcdb8879486a78a231b68c7d78726438739bdd633d9922
|
Provenance
The following attestation bundles were made for pagarme_python_sdk-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on ramon/pagarme-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pagarme_python_sdk-0.1.2-py3-none-any.whl -
Subject digest:
76428f542caaa589865729ab7e08feda7953b9c4b676f2e8a01b53a7748a6448 - Sigstore transparency entry: 1188897304
- Sigstore integration time:
-
Permalink:
ramon/pagarme-py@38db6b9d4ab788601f5ef7d2a6dea19ac455512f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/ramon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38db6b9d4ab788601f5ef7d2a6dea19ac455512f -
Trigger Event:
release
-
Statement type: