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.3.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.3.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed2fd00badbd2e6cce46cd4fef499e84ba47612a528fb2f3f3939342be3a8b1 |
|
MD5 | 8e4992518cd0baa79ae1d84770fca21e |
|
BLAKE2b-256 | 315ea802d68d6435b01fc49986aec0851275bd0558daf4923cd2978225a165b1 |
File details
Details for the file pyeasypay-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.3-py3-none-any.whl
- Upload date:
- Size: 7.1 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 | 3dfcaf2ebb521bb701361fe8bd9f2445216ac759ad52d8ff98619101dc006f57 |
|
MD5 | ab87cf47ea7049de7a1708ac8e51c2b8 |
|
BLAKE2b-256 | ae83c2a4ba0343fa23f37df84c6314e71fd7c974a5baaafe12b6da1e70be1544 |