Make money from your Python projects the easy way.
Project description
Installation
Install package with pip:
pip install pyeasypay
Example usage
from asyncio import run, sleep
from pyeasypay import EasyPay, Provider
async def main():
cryptobot = Provider(name='cryptobot', api_key='')
crystalpay = Provider(name='crystalpay', login='', secret='')
pay = EasyPay(providers=[cryptobot, crystalpay])
invoice = await pay.create_invoice(15, 'RUB', 'cryptobot')
print(f"Invoice URL: {invoice.pay_info}")
while invoice.status != 'paid':
await sleep(5)
await invoice.check()
if invoice.status == 'paid':
print('Invoice paid! 🎉')
if __name__ == '__main__':
run(main())
Supported providers
Name | Tested | Required kwargs |
---|---|---|
CryptoBot | ✅ | api_key |
CrystalPay | ✅ | login , secret |
AAIO | ❌ | - |
Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyeasypay-0.2.8.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.8.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.8.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c87a6fe4b34b41809cb513def444f20dbf9e154a8062cd67e16f243ffd523b3 |
|
MD5 | ca6681b27769140785f4c2091e2fb795 |
|
BLAKE2b-256 | b0614daca77ddcd9d4dcf191a273ad94f8cab4859acc7de4385525f4cd1316c0 |
File details
Details for the file pyeasypay-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.8-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec963d5ae5e9ccecd54be6922ebb40d28f648518fd680ca048812c738f473d3 |
|
MD5 | 347b6362e0c0719667d64d10433e7a4b |
|
BLAKE2b-256 | ea59ab4bf69fdcb70d0fb4cf690ba51c937ecd64328cb0f93e4a0631c25ac9d2 |