Skip to main content

Modern and fully asynchronous SDK for the Platega payment API

Project description

MIT License PyPi Package Version Downloads Supported Python Versions Tests

aioplatega is a modern and fully asynchronous SDK for the Platega payment API written in Python 3.10+ using asyncio and aiohttp.

Documentation: aioplatega docs

Features

  • Fully asynchronous (asyncio)

  • Type-safe with Pydantic v2 models and full type annotations

  • Supports mypy strict mode

  • aiogram-style command pattern for API methods

  • Typed exception hierarchy for every HTTP status

  • Lazy connection pool with aiohttp

Installation

pip install aioplatega
uv add aioplatega

Quick Start

import asyncio
from aioplatega import Platega, PaymentMethodInt, PaymentDetails

async def main():
    async with Platega(merchant_id="your-id", secret="your-secret") as client:
        result = await client.create_transaction(
            payment_method=PaymentMethodInt.SBP_QR,
            payment_details=PaymentDetails(amount=100.0, currency="RUB"),
        )
        print(result.transaction_id, result.status)

asyncio.run(main())

Community

Telegram Chat

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

aioplatega-0.1.0.tar.gz (172.2 kB view details)

Uploaded Source

Built Distribution

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

aioplatega-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file aioplatega-0.1.0.tar.gz.

File metadata

  • Download URL: aioplatega-0.1.0.tar.gz
  • Upload date:
  • Size: 172.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aioplatega-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20aac6bb4de6441063782190d79fb2dc703889af7fd5bffb06d9abf0370b7c90
MD5 189a39bcdaf4efbfac6e841faea7bc8c
BLAKE2b-256 c1818e9748ef9556c7e760684c12ec60dfd1cb6048c947751f74a417655becd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioplatega-0.1.0.tar.gz:

Publisher: pypi-release.yml on DOFER998/aioplatega

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

File details

Details for the file aioplatega-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aioplatega-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aioplatega-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dab01376d672a8a40047b89d0806d4c00a930858ea5645961440709ee3f84937
MD5 f5909c53d7c9c94a14fb221143cccd0f
BLAKE2b-256 1e25ec2bab911737221dd0a237d762950dc1c9d1888f98e45846290d2860b7a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioplatega-0.1.0-py3-none-any.whl:

Publisher: pypi-release.yml on DOFER998/aioplatega

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