Skip to main content


easypay

Get on pypi Last commit Pip module installs total downloads GitHub stars
Telegram Discord

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!

Contributors

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyeasypay-0.2.10-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

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

Hashes for pyeasypay-0.2.10.tar.gz
Algorithm Hash digest
SHA256 459f6b4d208d81315635ecb75e6913eb93030eb336b0b7e156f5751772e79ca2
MD5 39df85e904055da3a05b4e07f9c053f6
BLAKE2b-256 507bfa66bd67a29b52514a099c55fd62c43432d8c6a2943322d8fdc389c173f1

See more details on using hashes here.

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

Hashes for pyeasypay-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 98b24ae5472d6151eba797aeafcca9454700af16917d488580132b974d063527
MD5 5a617e8dc0f555536135007a250b8c70
BLAKE2b-256 b19958e50e67a5945097f0268d175c7744b7bc3785cfb74c81874d1c2bff6836

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.10 This release

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page