Superleap Python SDK
Python SDK for clients to interact with Superleap
Audit Data
Clients can poll audit-data (data-change logs) from Superleap using this sdk.
Installation
You can install the package using pip:
pip install superleap-sdk
Usage
from superleap-sdk import SuperleapClient
# Initialize the SDK
def handle_changes(changes: list[ObjectAuditData], mark_as_read, commit) -> None: # Worry about the type of mark_as_read later
for change in changes:
for data in change.audit_data_list:
print(data.random_id)
mark_as_read(data.get_object_pointer()) ## Latest data that is marked as read will be counted
client = SuperleapClient(Environment.LOCAL,"your-api-key")
sc.add_object(Object("lead",None))
sc.set_handler(handle_changes)
# Poll for updates
sc.poll_audit_data()
Development
To set up the development environment:
- Clone the repository
- Create a virtual environment
- Install development dependencies:
pip install -e ".[dev]"
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for superleap 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| superleap-0.1.3.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| superleap-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / superleap-0.1.3.tar.gz
| Download URL | superleap-0.1.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73f27cf34d95ee60a116ac34231d60b43d615be72d13aa3804634ebba35f0d91
|
|
BLAKE2b-256 checksum How to use checksums |
09c3dd2a4214d4d7ca3dce2462d604414b1d72703fb34473b6a30d8a5a3d1bad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.6
|
Release files / superleap-0.1.3-py3-none-any.whl
| Download URL | superleap-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d41e52898f25557e74767f66f1461e63bf52a09da4588b9599007311e1d6fa4d
|
|
BLAKE2b-256 checksum How to use checksums |
bcfb8cf8d10688e977daa01d57c62de9c8342dc82e74edda18a2c64603c9b433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.6
|