pyeasypay


Namepyeasypay JSON
Version 0.2.8 PyPI version JSON
download
home_pagehttps://github.com/nichind/pyeasypay
SummaryMake money from your Python projects the easy way.
upload_time2024-09-07 11:10:45
maintainerNone
docs_urlNone
authornichind
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
<div align="center" style="display: flex; flex-flow: column wrap;">
<br><br>
<img src="/assets/img/pyeasypay.svg" alt="easypay" style="width: 300px"/>
<br><br>

[![Get on pypi](https://img.shields.io/pypi/v/pyeasypay.svg)](https://pypi.org/project/pyeasypay/)
[![Last commit](https://img.shields.io/github/last-commit/nichind/pyeasypay.svg)](https://github.com/nichind/pyeasypay)
[![Pip module installs total downloads](https://img.shields.io/pypi/dm/pyeasypay.svg)](https://pypi.org/project/pyeasypay/)
[![GitHub stars](https://img.shields.io/github/stars/nichind/pyeasypay.svg)](https://github.com/nichind/pyeasypay)
<br>
[![Telegram](https://img.shields.io/badge/Telegram-Telegram-0088cc?logo=telegram&logoColor=white)](https://t.me/pyeasypay)
[![Discord](https://img.shields.io/badge/Discord-Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/nichind)
</div>

# Installation
Install package with pip:
```commandline
pip install pyeasypay
```

# Example usage
```python
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

<img src="https://contrib.rocks/image?repo=nichind/pyeasypay" alt="Contributors" style="max-width: 100%;"/>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nichind/pyeasypay",
    "name": "pyeasypay",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "nichind",
    "author_email": "nichinddev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b0/61/4daca77ddcd9d4dcf191a273ad94f8cab4859acc7de4385525f4cd1316c0/pyeasypay-0.2.8.tar.gz",
    "platform": null,
    "description": "\n<div align=\"center\" style=\"display: flex; flex-flow: column wrap;\">\n<br><br>\n<img src=\"/assets/img/pyeasypay.svg\" alt=\"easypay\" style=\"width: 300px\"/>\n<br><br>\n\n[![Get on pypi](https://img.shields.io/pypi/v/pyeasypay.svg)](https://pypi.org/project/pyeasypay/)\n[![Last commit](https://img.shields.io/github/last-commit/nichind/pyeasypay.svg)](https://github.com/nichind/pyeasypay)\n[![Pip module installs total downloads](https://img.shields.io/pypi/dm/pyeasypay.svg)](https://pypi.org/project/pyeasypay/)\n[![GitHub stars](https://img.shields.io/github/stars/nichind/pyeasypay.svg)](https://github.com/nichind/pyeasypay)\n<br>\n[![Telegram](https://img.shields.io/badge/Telegram-Telegram-0088cc?logo=telegram&logoColor=white)](https://t.me/pyeasypay)\n[![Discord](https://img.shields.io/badge/Discord-Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/nichind)\n</div>\n\n# Installation\nInstall package with pip:\n```commandline\npip install pyeasypay\n```\n\n# Example usage\n```python\nfrom asyncio import run, sleep\nfrom pyeasypay import EasyPay, Provider\n\n\nasync def main():\n    cryptobot = Provider(name='cryptobot', api_key='')\n    crystalpay = Provider(name='crystalpay', login='', secret='')\n    pay = EasyPay(providers=[cryptobot, crystalpay])\n    invoice = await pay.create_invoice(15, 'RUB', 'cryptobot')\n    \n    print(f\"Invoice URL: {invoice.pay_info}\")\n    \n    while invoice.status != 'paid':\n        await sleep(5)\n        await invoice.check()\n        \n    if invoice.status == 'paid':\n        print('Invoice paid! \ud83c\udf89')\n        \nif __name__ == '__main__':\n    run(main())\n```\n\n# Supported providers\n\n| Name       | Tested | Required kwargs   |\n|------------|---------|-------------------|\n| CryptoBot  | \u2705       | `api_key`         |\n| CrystalPay | \u2705       | `login`, `secret` |\n| AAIO       | \u274c       | -                 |\n\n# Contributors\n\n<img src=\"https://contrib.rocks/image?repo=nichind/pyeasypay\" alt=\"Contributors\" style=\"max-width: 100%;\"/>\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Make money from your Python projects the easy way.",
    "version": "0.2.8",
    "project_urls": {
        "Homepage": "https://github.com/nichind/pyeasypay"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea59ab4bf69fdcb70d0fb4cf690ba51c937ecd64328cb0f93e4a0631c25ac9d2",
                "md5": "347b6362e0c0719667d64d10433e7a4b",
                "sha256": "3ec963d5ae5e9ccecd54be6922ebb40d28f648518fd680ca048812c738f473d3"
            },
            "downloads": -1,
            "filename": "pyeasypay-0.2.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "347b6362e0c0719667d64d10433e7a4b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 8799,
            "upload_time": "2024-09-07T11:10:44",
            "upload_time_iso_8601": "2024-09-07T11:10:44.155357Z",
            "url": "https://files.pythonhosted.org/packages/ea/59/ab4bf69fdcb70d0fb4cf690ba51c937ecd64328cb0f93e4a0631c25ac9d2/pyeasypay-0.2.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0614daca77ddcd9d4dcf191a273ad94f8cab4859acc7de4385525f4cd1316c0",
                "md5": "ca6681b27769140785f4c2091e2fb795",
                "sha256": "3c87a6fe4b34b41809cb513def444f20dbf9e154a8062cd67e16f243ffd523b3"
            },
            "downloads": -1,
            "filename": "pyeasypay-0.2.8.tar.gz",
            "has_sig": false,
            "md5_digest": "ca6681b27769140785f4c2091e2fb795",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8002,
            "upload_time": "2024-09-07T11:10:45",
            "upload_time_iso_8601": "2024-09-07T11:10:45.426707Z",
            "url": "https://files.pythonhosted.org/packages/b0/61/4daca77ddcd9d4dcf191a273ad94f8cab4859acc7de4385525f4cd1316c0/pyeasypay-0.2.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-07 11:10:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nichind",
    "github_project": "pyeasypay",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyeasypay"
}
        
Elapsed time: 0.32330s