Official Lotus Python library to capture and send events to any Lotus instance (self-hosted or cloud).
pip install lotus-python
In your app, import the lotus library and set your api key before making any calls.
import lotus
lotus.api_key = 'YOUR API KEY'
You can find your key in the /settings page in Lotus.
To debug, you can set debug mode.
lotus.debug = True
1. Tracking:
- Track Event
2. Customers
- List Customers
- Get Customer
- Create Customer
3. Credits
- List Credits
- Create Credit
- Update Credit
- Void Credit
4. Subscriptions
- List Subscriptions
- Create Subscription
- Cancel Subscription
- Switch a Subscription's plan
- Update Subscription
5. Access Management
- Get Feature Access
- Get Metric Access
6. Plans
- List Plans
- Get Plan
7. Add-ons
- Attach Add-on
- Cancel Add-on
Please refer to the Lotus documentation for more information on how to use the library.
This library is largely based on the posthog-python
package.