Skip to main content

alt text

🅰️ 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

⤵️ Installation (git)

git clone git+https://github.com/kesevone/aiolava

📄 Simple usage

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.

⚡ TODO

  • Implement methods for Payoff API
  • Implement methods for Recurrent API

Thanks to REPTIS for providing Lava API tokens.

Metadata

Release files for pyaiolava 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyaiolava 0.1.2
File Size Uploaded Provenance Actions
pyaiolava-0.1.2.tar.gz 10.1 kB Without provenance Details for pyaiolava-0.1.2.tar.gz

Release files / pyaiolava-0.1.2.tar.gz

Download URL pyaiolava-0.1.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1dcc74cf85a1c00ac4667cac742bd6bf61ffb8a16664568cda1b805fea42e0e4
BLAKE2b-256 checksum
How to use checksums
8f4efee7a69d0d084234369b6a6d503700aedc3d1a8cfd6d683d6d9e18c57603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.0

Security for pyaiolava 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page