Make money from your Python projects the easy way.
Project description
Installation
Install package with pip:
pip install pyeasypay
or
python3 -m pip install pyeasypay
Example usage
Example on creating invoice and waiting for it to be paid:
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
List of supported providers:
Provider | Status | Kwargs for Proiver (* is required) |
---|---|---|
CryptoBot | ✅ | api_key *, network |
CrystalPay | ✅ | login *, secret * |
AAIO | WIP |
Contributors
Contributions are welcomed!
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.9.tar.gz
(8.8 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.9.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.9.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd39130653969826c02e04ebe965eab7d3347cbcc4f3b4c349c315623cab4876 |
|
MD5 | 148fb6acef3ad8a0bbfe4d264977a47d |
|
BLAKE2b-256 | c55d03d561133d1c6f20f2292767fcce0a2d608f263642c262414d13aef708e7 |
File details
Details for the file pyeasypay-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.9-py3-none-any.whl
- Upload date:
- Size: 9.6 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 | e8a4c6e898b00063fa8fe15b665fb9b2e7cac749aba22244fb8adc4eb5ae6cc0 |
|
MD5 | d4ae14021a1625902b7af57af55e3373 |
|
BLAKE2b-256 | 383a7879fd21ad3cd9f4dbd501eb9504d24ec56162b8d4b93054d9e6229d795a |