Skip to main content

Asynchronous PayOK API wrapper

Project description

PayOK

PyPI PyPI

A simple, yet powerful library for PayOK API

Usage

With PayOK you can easily create and retrieve payment and payout info, get informaition about your account's balance and commissions, etc.

Documentation

Official docs can be found on the API's webpage

Installation

pip install payok.io

Requirements

  • Python 3.7+
  • aiohttp
  • pydantic

Features

  • Asynchronous
  • Exception handling
  • Pydantic return model
  • LightWeight

Basic example

import payok

from payok import PayOK, PayOKError


api = PayOK(
    'api_id', 'api_key',
) 


async def main():

    try:

        await api.get_balance()

    except PayOKError as exc:

        print(exc)

    payments = await api.get_payments(project_id=1)  # project_id can be provided in __init__
    print(payments[0].id, payments[0].status)


asyncio.run(main())

Developed by Nikita Minaev (c) 2023

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

payok.io-1.0.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

payok.io-1.0.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file payok.io-1.0.3.tar.gz.

File metadata

  • Download URL: payok.io-1.0.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for payok.io-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e9755b534d426f804552996ed81d525158e218601ea49ca558016b3a96b2a033
MD5 81054b67d3462b6276d7a79358a613f3
BLAKE2b-256 a79860ef5c16a238e8721a12df3bbf95c67c95fac8364fa67b62316445c5df36

See more details on using hashes here.

File details

Details for the file payok.io-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: payok.io-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for payok.io-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8a35ddfe115a5b8472faa738de138e0bd97f10f2aa84cfe0d2ea52aa37576ad1
MD5 5332fd264199dc869065929962f98095
BLAKE2b-256 2f529ad0290c1bfeeeacfcada6bf04d935c49810ec1e83971d6f7e03dbb75d36

See more details on using hashes here.

Supported by

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