Skip to main content

Async library for Lava API

Project description

Async Lava API library

Example to use

import asyncio

from aiolava import LavaBusinessClient


async def main():
    client = LavaBusinessClient(
        private_key="INSERT_PRIVATE_KEY",
        shop_id="INSERT_SHOP_ID"  # optional
    )
    
    invoice = await client.create_invoice(
        sum_=10,
        order_id="order#10"
    )
    print(invoice.data.url)
    
    status = await client.check_invoice_status(
        order_id="order#10"
    )
    print(status.data.status)


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

All documentation you can find here

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

aiolavapy-0.1.2.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

aiolavapy-0.1.2-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

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