pyaiolava


Namepyaiolava JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/kesevone/aiolava
SummarySimple and convenient asynchronous library for working with the Business Lava API.
upload_time2024-03-19 22:12:40
maintainerNone
docs_urlNone
authorkesevone
requires_python>=3.10
licenseNone
keywords lava aiolava lavaapi pyaiolava businesslava
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![alt text](https://telegra.ph/file/ab8d0def9474a9ee31bfb.png)

# :a: Aiolava — a simple and convenient asynchronous library for working with the Business Lava API.

### You will be able to create invoices with all the parameters that are available in the Lava API, as well as receive information about them after creation. Also, you can get information about the balance, and in the future, methods for the Payoff API, the Reccurent API will be implemented

## :arrow_heading_down: Installation (git)
```
git clone git+https://github.com/kesevone/aiolava
```

## :page_facing_up: Simple usage
```python
import asyncio

from pyaiolava import BusinessAiolava
from pyaiolava.models import NewInvoiceModel
from pyaiolava.utils.generators import generate_payment_id


SHOP_ID = 'YOUR_SHOP_ID'
API_KEY = 'YOUR_API_KEY'

lava = BusinessAiolava(
    api_key=API_KEY,
    shop_id=SHOP_ID
)
    
async def main() -> None:
    payment_id = generate_payment_id()
    new_invoice: NewInvoiceModel = await lava.create_invoice(
        payment_id=payment_id,
        amount=150,
        payment_methods=['sbp', 'card'],
        custom_data='Test Custom Data'
    )
    print(new_invoice)

if __name__ == '__main__':
    asyncio.run(main())
```

#### All data returned from the API is converted into a convenient Pydantic-model with clear parameter names.

## :zap: TODO
- [ ] Implement methods for Payoff API
- [ ] Implement methods for Recurrent API

### Thanks to **REPTIS** for providing Lava API tokens.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kesevone/aiolava",
    "name": "pyaiolava",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "lava aiolava lavaapi pyaiolava businesslava",
    "author": "kesevone",
    "author_email": "kesevone@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/8f/4e/fee7a69d0d084234369b6a6d503700aedc3d1a8cfd6d683d6d9e18c57603/pyaiolava-0.1.2.tar.gz",
    "platform": null,
    "description": "![alt text](https://telegra.ph/file/ab8d0def9474a9ee31bfb.png)\r\n\r\n# :a: Aiolava \u0432\u0402\u201d a simple and convenient asynchronous library for working with the Business Lava API.\r\n\r\n### You will be able to create invoices with all the parameters that are available in the Lava API, as well as receive information about them after creation. Also, you can get information about the balance, and in the future, methods for the Payoff API, the Reccurent API will be implemented\r\n\r\n## :arrow_heading_down: Installation (git)\r\n```\r\ngit clone git+https://github.com/kesevone/aiolava\r\n```\r\n\r\n## :page_facing_up: Simple usage\r\n```python\r\nimport asyncio\r\n\r\nfrom pyaiolava import BusinessAiolava\r\nfrom pyaiolava.models import NewInvoiceModel\r\nfrom pyaiolava.utils.generators import generate_payment_id\r\n\r\n\r\nSHOP_ID = 'YOUR_SHOP_ID'\r\nAPI_KEY = 'YOUR_API_KEY'\r\n\r\nlava = BusinessAiolava(\r\n    api_key=API_KEY,\r\n    shop_id=SHOP_ID\r\n)\r\n    \r\nasync def main() -> None:\r\n    payment_id = generate_payment_id()\r\n    new_invoice: NewInvoiceModel = await lava.create_invoice(\r\n        payment_id=payment_id,\r\n        amount=150,\r\n        payment_methods=['sbp', 'card'],\r\n        custom_data='Test Custom Data'\r\n    )\r\n    print(new_invoice)\r\n\r\nif __name__ == '__main__':\r\n    asyncio.run(main())\r\n```\r\n\r\n#### All data returned from the API is converted into a convenient Pydantic-model with clear parameter names.\r\n\r\n## :zap: TODO\r\n- [ ] Implement methods for Payoff API\r\n- [ ] Implement methods for Recurrent API\r\n\r\n### Thanks to **REPTIS** for providing Lava API tokens.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simple and convenient asynchronous library for working with the Business Lava API.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/kesevone/aiolava",
        "Official documentation": "https://dev.lava.ru/"
    },
    "split_keywords": [
        "lava",
        "aiolava",
        "lavaapi",
        "pyaiolava",
        "businesslava"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8f4efee7a69d0d084234369b6a6d503700aedc3d1a8cfd6d683d6d9e18c57603",
                "md5": "2bef7721d9268c39b83f46cffb2a0454",
                "sha256": "1dcc74cf85a1c00ac4667cac742bd6bf61ffb8a16664568cda1b805fea42e0e4"
            },
            "downloads": -1,
            "filename": "pyaiolava-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2bef7721d9268c39b83f46cffb2a0454",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 10125,
            "upload_time": "2024-03-19T22:12:40",
            "upload_time_iso_8601": "2024-03-19T22:12:40.119836Z",
            "url": "https://files.pythonhosted.org/packages/8f/4e/fee7a69d0d084234369b6a6d503700aedc3d1a8cfd6d683d6d9e18c57603/pyaiolava-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-19 22:12:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kesevone",
    "github_project": "aiolava",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyaiolava"
}
        
Elapsed time: 1.38751s