Skip to main content

Unofficial Asyncronous Python Client for Lotus

Project description

aiolotus

Unofficial Asyncronous Python Client for Lotus

Latest Version: PyPI version

Official Client


Installation

# Install from PyPI
pip install aiolotus

# Install from source
pip install git+https://github.com/GrowthEngineAI/aiolotus.git

Usage

WIP - Simple Usage Example

import asyncio
from aiolotus import Lotus
from aiolotus.utils import logger

Lotus.configure(
    apikey = '...',
    url = '',
)

async def run_test():
    res = await Lotus.get_all_customers()
    logger.info(res)

    res = await Lotus.get_all_metrics()
    logger.info(res)

    res = await Lotus.get_all_plans()
    logger.info(res)

    res = await Lotus.get_all_subscriptions()
    logger.info(res)

    await Lotus.async_shutdown()


asyncio.run(run_test())

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

aiolotus-0.0.1.tar.gz (22.2 kB view hashes)

Uploaded Source

Built Distribution

aiolotus-0.0.1-py3-none-any.whl (29.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