Skip to main content

Modern Python SDK for Pagar.me API v5

Project description

Pagar.me Python SDK

Python Version Ruff

Modern Python SDK for integration with the Pagar.me payment gateway (v5).

Features

  • Asynchronous: Built on httpx for high-performance async calls.
  • Type-safe: Powered by Pydantic v2 for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pagarme_python_sdk-0.1.2.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pagarme_python_sdk-0.1.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

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

Hashes for pagarme_python_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b86c7d0e0facdefb70eb1876b7f475cb77347ab31f193ce60c84f16117d67930
MD5 5c36dddfb47848a5d6c1b5cef7256a34
BLAKE2b-256 e759ac45fd671b1099941c1ee2d5a04e80f702986fa1adbda126ef6d413eab38

See more details on using hashes here.

Provenance

The following attestation bundles were made for pagarme_python_sdk-0.1.2.tar.gz:

Publisher: publish.yml on ramon/pagarme-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pagarme_python_sdk-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pagarme_python_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76428f542caaa589865729ab7e08feda7953b9c4b676f2e8a01b53a7748a6448
MD5 73f198ca75dceaef2d96a573dd28e1c1
BLAKE2b-256 506287816c74a350e2fcdb8879486a78a231b68c7d78726438739bdd633d9922

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page