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.2.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file pyeasypay-0.2.2.tar.gz
.
File metadata
- Download URL: pyeasypay-0.2.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601086627c6dedd869b370a5cf30715ff41cb80a7824549721f8057820d559d8 |
|
MD5 | 358a66db10cb1351f5e9f0f0a72c8130 |
|
BLAKE2b-256 | e4eb610cd4aa72e1e8f7e69e52fe202791a42d1a759e5ceae184b1423f775b5f |
File details
Details for the file pyeasypay-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: pyeasypay-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.8 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 | 810e86992872d926a19cb3468497b64853972b89514aafa4e0ec7cd7508aa9a2 |
|
MD5 | 35eda461d6297eb3e2e75eaba223b7c7 |
|
BLAKE2b-256 | c7dba268248dec9ad856872227247b428f8bb18bb6436b66b01cb26d0859ef8b |