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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for payok.io-1.0.6.tar.gz
Algorithm Hash digest
SHA256 aae5c350870b705ce3bf94f82219734b42b230d1d0a5c57a1a758e5cc2fca4f6
MD5 c3c4f904c6698e2c7e4bffb39cf0312e
BLAKE2b-256 a2c93cce0b4bd49160af24ec49ae981f9b97a36c708553fa41fd084d0854c11a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: payok.io-1.0.6-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.11.3

File hashes

Hashes for payok.io-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5c500d784d38d4ec663c5b5581cd20835f2f54d82113529b19b49a6f5c550f
MD5 2d55a42f3cf634a6a034124adff1f2c9
BLAKE2b-256 64efc23c58c790212c79f92a51cec7aa0250c1ca84f838fc60738a7989fd20b2

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