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.4.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.4.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.4.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614a87846d0cb63a1c21dba1d5729e8f537702be96e289c1097fcb7ff6fa73f9 |
|
MD5 | 8bb1e0351d022f1a84b46f002749461b |
|
BLAKE2b-256 | 84a2564ea81c3a7a8281518cd61d5a0a1ce2be59ac968d67cdcb00a68cf8fdf4 |
File details
Details for the file pyeasypay-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.4-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 766c1ed495211dc2a80c977f14f3c6d0f38fb59f36c99e97d407465d580fc51d |
|
MD5 | 8add7be307a340c46df37d07fc4c526d |
|
BLAKE2b-256 | 7945d4c6809332a623a0e51348ed5aa73d0818359e4ec5441c592e7de1c6ef35 |