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.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: payok.io-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8075d938d24aa104c3be80cd3a958f15faac0992e5025526f1c27eb98bce1748
MD5 5c8d3fac54dc5615dc973daff9220b1e
BLAKE2b-256 6ea64901b947a0c47aac6db936ac206ae8646f93c5e71ba13d5d669bc7bae794

See more details on using hashes here.

File details

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

File metadata

  • Download URL: payok.io-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b89c75f8b0c5af3966a9f08147bb83c4aadc3868890872aaf4d9c5d1ec323727
MD5 ffbd9657f4c6edcb2d4bdc7f20cd34f9
BLAKE2b-256 905993ffe266ddb877482d3db27a5c741afd95633df23fe0b8c7d85caa1ce565

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