Registry / auth-security / comp-leo

comp-leo

JSON →
library0.3.1pypiunverified

comp-leo is a Python SDK designed for integrating compliance and security features, specifically supporting PCI-DSS, with Leo smart contracts. It enables developers to embed verification directly into applications within the CompliLedger ecosystem. The current version is 0.3.1, and its release cadence appears to be ad-hoc based on the project's development.

pip install comp-leo
INSTALL
IMPORT
SIG · COMP-LEO
C
comp-leo
auth-securityenv0.3.1
Install
5.4s avg
Import
Disk
48MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 6.6s
py 3.11
✓ —
✓ 5.55s
py 3.12
✓ —
✓ 4.7s
py 3.13
✓ —
✓ 4.6s
py 3.9
✕ build_error
✕ build_error
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CompliLedgerClient
from comp_leo import CompliLedgerClient
Assumed common import pattern for an SDK client, specific class names not found in public documentation.
ComplianceCheck
from comp_leo.models import ComplianceCheck
Assumed common import pattern for data models, specific class names not found in public documentation.

This quickstart demonstrates the general flow for using a compliance SDK like comp-leo: initializing a client, preparing data, and performing a compliance evaluation. Due to the lack of specific public documentation for the Python SDK, actual class and method names are illustrative and should be replaced with those from the official comp-leo documentation when available. API keys or credentials should be securely managed, preferably via environment variables.

import os from comp_leo import CompliLedgerClient # NOTE: This is an illustrative example based on expected SDK patterns. # Specific class/method names and API details are inferred as direct # documentation for comp-leo Python SDK was not publicly available. # Initialize the client (API key/credentials would typically be from env vars) api_key = os.environ.get('COMPLEO_API_KEY', 'YOUR_API_KEY') client = CompliLedgerClient(api_key=api_key) # Example: Perform a compliance check (conceptually) # Replace with actual data and method calls as per comp-leo documentation try: # Simulate a smart contract interaction or data submission contract_data = {"transaction_id": "tx123", "amount": 1000, "currency": "USD"} # The actual method call would depend on the SDK's API # e.g., client.pci_dss.evaluate_transaction(contract_data) # or client.audit.submit_event(event_type='PCI_DATA_TRANSACTION', data=contract_data) print(f"Simulating compliance check for: {contract_data}") # Assume a method to trigger a compliance evaluation # This is a placeholder for actual SDK functionality result = client.perform_compliance_evaluation(contract_data) if result.is_compliant: print("Compliance check passed!") else: print(f"Compliance check failed: {result.reasons}") except Exception as e: print(f"An error occurred during compliance check: {e}")
Debug
Known issues
gotchaSpecific API documentation for the 'comp-leo' Python SDK is not readily discoverable. Users should consult the CompliLedger platform's developer resources for the most accurate and up-to-date usage patterns, class names, and method signatures.
fix
Refer to the official CompliLedger developer documentation or GitHub repository (if a dedicated one exists for the Python SDK) for precise API usage. Community examples might be scarce.
affects: All versions
breakingAs an SDK in the evolving smart contract and compliance space, 'comp-leo' may undergo significant API changes between minor or patch versions. Lack of explicit versioning policies for breaking changes could lead to unexpected behavior.
fix
Pin exact versions of `comp-leo` in your `requirements.txt` (e.g., `comp-leo==0.3.1`) and thoroughly test your application when upgrading to new versions. Monitor the CompliLedger/comp-leo GitHub repository for release notes and change logs.
affects: All versions, especially during rapid development cycles.
gotchaSecurity-sensitive nature: This library is for compliance and security of smart contracts. Incorrect usage, misconfiguration, or reliance on outdated patterns could lead to severe security vulnerabilities or compliance failures.
fix
Always follow official best practices for secure coding, smart contract development, and PCI-DSS compliance. Ensure all inputs are properly sanitized and outputs are validated. Regularly audit your integration code and stay updated with security advisories from CompliLedger.
affects: All versions
Upgrade
Version history
0.3.1latest on PyPI · released Nov 24, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources

No resource links recorded.

comp-leo — pip install comp-leo · libregistry