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!
Metadata
Release files for pyeasypay 0.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyeasypay-0.2.10.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyeasypay-0.2.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / pyeasypay-0.2.10.tar.gz
| Download URL | pyeasypay-0.2.10.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
459f6b4d208d81315635ecb75e6913eb93030eb336b0b7e156f5751772e79ca2
|
|
BLAKE2b-256 checksum How to use checksums |
507bfa66bd67a29b52514a099c55fd62c43432d8c6a2943322d8fdc389c173f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / pyeasypay-0.2.10-py3-none-any.whl
| Download URL | pyeasypay-0.2.10-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98b24ae5472d6151eba797aeafcca9454700af16917d488580132b974d063527
|
|
BLAKE2b-256 checksum How to use checksums |
b19958e50e67a5945097f0268d175c7744b7bc3785cfb74c81874d1c2bff6836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|