Skip to main content

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:

  1. Clone the repository
  2. Create a virtual environment
  3. 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-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for superleap-sdk 0.1.0
File Size Uploaded
superleap_sdk-0.1.0.tar.gz 2.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for superleap-sdk 0.1.0
File Interpreter ABI Platform
superleap_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / superleap_sdk-0.1.0.tar.gz

Download URL superleap_sdk-0.1.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
55dc9534fc41733e7ee3a3916a81a14ffa659df165a8168e0ffe886edd1e0f18
BLAKE2b-256 checksum
How to use checksums
05aa8d71dba048a7deac1a4bedb5c085d5f25a9b6e77d8604fc3c39ac20a31f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.6

Release files / superleap_sdk-0.1.0-py3-none-any.whl

Download URL superleap_sdk-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
693030ba4355c6679db6f6a38bf1b2dd440548ba2ab9b97882efbf143153796d
BLAKE2b-256 checksum
How to use checksums
4ab17670c9bcdd894493f2477b0048762198cd8b84357bbc7164882318e904ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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