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.5.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.5.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.5.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 462ed0c4980660739f3d5dad4313535e739e8cab13c3e05f8eb244df601bd9e7 |
|
MD5 | 425045692c0fa8dc4b8f887fba905215 |
|
BLAKE2b-256 | 2eb4d55055349086872a1a565614da0ee2fbb233a8234ae588571f3b1a3d6db9 |
File details
Details for the file pyeasypay-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.5-py3-none-any.whl
- Upload date:
- Size: 8.4 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 | 468fc4a08e810ba89c3d45abb63ae2fd782a618e404f684b6ad9c4005ef3ab9c |
|
MD5 | d2d50cb757e298003e21e9c0b75b3328 |
|
BLAKE2b-256 | 2e973421b0a92b66cbfd7413faf590aebbc5ab6fbd022696d90ce206a2328b1c |