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.6.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.6.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.6.tar.gz
- Upload date:
- Size: 7.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 | f838c4904be0f7fc6aa321f025a85951e451b0aa65069a98d3ed587fd2a7114a |
|
MD5 | 87547b7d4c550a8bf26180461b25991e |
|
BLAKE2b-256 | 595bdb6593621f02c462ab9a216670cbed60f74ab81a42677f1380e86b9a0796 |
File details
Details for the file pyeasypay-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.6-py3-none-any.whl
- Upload date:
- Size: 8.5 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 | e0d9680f2399059ed7dff2cc81e81f179e764738706b7de4e8bdc3ad5419a30a |
|
MD5 | 44f194afde76cf0e92e9b1a4109b8695 |
|
BLAKE2b-256 | e50a3124e4914d00d41ce24e36a3f027e07688537ee0b02bce26059eda93c53f |