Skip to main content

Make money from your Python projects the easy way.

Project description



easypay

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

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

Contributors

Project details


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.7.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

pyeasypay-0.2.7-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file pyeasypay-0.2.7.tar.gz.

File metadata

  • Download URL: pyeasypay-0.2.7.tar.gz
  • Upload date:
  • Size: 7.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.7.tar.gz
Algorithm Hash digest
SHA256 9a4a0a94e779166d1e50437bdac78a9a05059f0af8dc96fc544fad7aa15ca6f4
MD5 c4ac013b5fab7740961c8b0a0accac37
BLAKE2b-256 acf8d666b8918411e1bcf8f0b9587e302331c5580675dd9e27a71f2599e632f6

See more details on using hashes here.

File details

Details for the file pyeasypay-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: pyeasypay-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 efaaafbdd3c4ca7a8fad6591a3e6e087cb57d37828ac303f9e15ce1e6cdc2394
MD5 4033bf862be917cf90bc993022f220d2
BLAKE2b-256 fad629f4f1906e6eed9727a16104361a99071e2f9c2683073ce49ed376793bcb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page