Python SDK for Blekline ingress control plane
Project description
@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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blekline_client-0.4.1.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blekline_client-0.4.1.tar.gz.
File metadata
- Download URL: blekline_client-0.4.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ee784cba1c37d911cee5032529d2affda3554113548a612f7d847b270fb2e07
|
|
| MD5 |
3594eb70cbc36ed442e49aa5068271c2
|
|
| BLAKE2b-256 |
c8acb0aefe24b04f78b1bb8236201c060668d942a99a26dff4aa2e20f550bd5a
|
File details
Details for the file blekline_client-0.4.1-py3-none-any.whl.
File metadata
- Download URL: blekline_client-0.4.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b3f26a9fa3514bcfe9c3838eb853c34b4a1ea67b44cbd8711ad2a29e7f9201
|
|
| MD5 |
f294a8fc673ae4193dbea9a4b2a47226
|
|
| BLAKE2b-256 |
2a0f6cff5b3e8684313ced1abd48e8370108b189b86858dbb1a307df3d62c7ca
|