Asynchronous PayOK API wrapper
Project description
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.1.tar.gz
(8.1 kB
view details)
Built Distribution
payok.io-1.0.1-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file payok.io-1.0.1.tar.gz
.
File metadata
- Download URL: payok.io-1.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0536ab2f55f67e2c3339ef1b7900b300f7b9c464c4731774a74e8f85f99fe3ab |
|
MD5 | acc7e82af8f13e3f9d6aa02259072ecd |
|
BLAKE2b-256 | ce6dd3c0f55631eb1181848dfc666362a0b78851b563dee4194506080285df7e |
File details
Details for the file payok.io-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: payok.io-1.0.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d63d06cd2bf1e8b671ea7796b9837c7982a1d488fc0a76562bf85432d3f8643 |
|
MD5 | d8c852cd9cffd2cea922959fe0c40ee4 |
|
BLAKE2b-256 | c879d212f6c18c863353e9c0fdec4a09759228e4364da9f4472df8d34326edfe |