Skip to main content

@blekline/client (Python)

Enterprise Python SDK for the Blekline ingress control plane.

Install

pip install -e packages/client-python

Usage

from blekline_client import BleklineClient

client = BleklineClient(
    workspace_token="ws_...",
    base_url="https://app.blekline.com",
    client_surface="sdk",
)

result = client.mask(text="Contact me at alice@corp.com", platform="Python")
print(result["maskedText"])

decision = client.enforce_tool_call(
    tool_name="run_command",
    arguments={"cmd": "curl https://api.example.com"},
)
print(decision["action"])

See OpenAPI spec: packages/contracts/openapi.yaml.

Tests

Requires Python 3.10+.

python -m pip install --upgrade pip
pip install -e ".[dev]"
pytest tests -q

From repo root: pnpm test:python

Metadata

Release files for blekline-client 0.4.1

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

Source distribution (sdist)

Source distribution for blekline-client 0.4.1
File Size Uploaded
blekline_client-0.4.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for blekline-client 0.4.1
File Interpreter ABI Platform
blekline_client-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / blekline_client-0.4.1.tar.gz

Download URL blekline_client-0.4.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8ee784cba1c37d911cee5032529d2affda3554113548a612f7d847b270fb2e07
BLAKE2b-256 checksum
How to use checksums
c8acb0aefe24b04f78b1bb8236201c060668d942a99a26dff4aa2e20f550bd5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / blekline_client-0.4.1-py3-none-any.whl

Download URL blekline_client-0.4.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9b3f26a9fa3514bcfe9c3838eb853c34b4a1ea67b44cbd8711ad2a29e7f9201
BLAKE2b-256 checksum
How to use checksums
2a0f6cff5b3e8684313ced1abd48e8370108b189b86858dbb1a307df3d62c7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

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