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+aiohttppydantic
Features
AsynchronousException handlingPydantic return modelLightWeight
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.7.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
payok.io-1.0.7-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file payok.io-1.0.7.tar.gz.
File metadata
- Download URL: payok.io-1.0.7.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee9352ff33c0d378bc44da0f2131bb374588ff9ab4013dd762328fbeb3484ca5
|
|
| MD5 |
689a6a47cb5414407cadc05665622a07
|
|
| BLAKE2b-256 |
15ce3a847405dbaf46fb2c68c6b7373ec80e206d6ebff8c38135bd70af84d588
|
File details
Details for the file payok.io-1.0.7-py3-none-any.whl.
File metadata
- Download URL: payok.io-1.0.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1645f1b5bf020f571f9ce723b45b18ae84c9294ac780873be5939bf265c7e085
|
|
| MD5 |
c063a44b6d9334063d3ded1e2d5fd66b
|
|
| BLAKE2b-256 |
376ed57d8e52b9720916fcce41e2ff2fd3d1eaf513150acf39183507552ef364
|