Skip to main content

InfraLayer Python SDK

Async Python client for local, zero-network security filtering or remote API sanitization.

pip install infralayer-sdk
from infralayer_core import UserContext
from infralayer_sdk import create_local_infralayer

infra = create_local_infralayer()
user = UserContext("u1", "tenant-a", "employee", permissions=["read:docs"])
result = await infra.sanitize("Contact jane@example.com", user)
print(result.sanitized_context.text)

Local mode delegates to infralayer-core; the HTTP client dependency is used only for remote mode. Remote mode accepts api_url, api_key, default_user_context, timeout and retry configuration. Use await client.close() or async with client to release the HTTP connection pool.

Metadata

Release files for infralayer-sdk 0.3.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 infralayer-sdk 0.3.0
File Size Uploaded Provenance Actions
infralayer_sdk-0.3.0.tar.gz 7.2 kB Without provenance Details for infralayer_sdk-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for infralayer-sdk 0.3.0
File Interpreter ABI Platform Actions
infralayer_sdk-0.3.0-py3-none-any.whl Python 3 none any Details for infralayer_sdk-0.3.0-py3-none-any.whl

Total release size: 14.2 kB

Release files / infralayer_sdk-0.3.0.tar.gz

Download URL infralayer_sdk-0.3.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c02155906fb140a2e055a8fcc80d762348f7d3e3547c70d89458e6529ee0aadc
BLAKE2b-256 checksum
How to use checksums
86791953847437ff5aa85a953c1ca5793e5c8658d6d1e0ddfea6fd7246f38902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / infralayer_sdk-0.3.0-py3-none-any.whl

Download URL infralayer_sdk-0.3.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
308f80e66c676fc1f4ebf992a5c46facf1f10f7abcaaaef60710d6aa85cafa47
BLAKE2b-256 checksum
How to use checksums
ce3c9def7902aefb04f345433592d794be71c62fbf867091ca1fa56154c18272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for infralayer-sdk 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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