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.10.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyeasypay-0.2.10.tar.gz.
File metadata
- Download URL: pyeasypay-0.2.10.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 |
459f6b4d208d81315635ecb75e6913eb93030eb336b0b7e156f5751772e79ca2
|
|
| MD5 |
39df85e904055da3a05b4e07f9c053f6
|
|
| BLAKE2b-256 |
507bfa66bd67a29b52514a099c55fd62c43432d8c6a2943322d8fdc389c173f1
|
File details
Details for the file pyeasypay-0.2.10-py3-none-any.whl.
File metadata
- Download URL: pyeasypay-0.2.10-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 |
98b24ae5472d6151eba797aeafcca9454700af16917d488580132b974d063527
|
|
| MD5 |
5a617e8dc0f555536135007a250b8c70
|
|
| BLAKE2b-256 |
b19958e50e67a5945097f0268d175c7744b7bc3785cfb74c81874d1c2bff6836
|