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.0.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.0.tar.gz.
File metadata
- Download URL: blekline_client-0.4.0.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 |
239f2fd2811e39f159d0b3bde0a6c6921ec420cf6a2a83e26846232d70a25c50
|
|
| MD5 |
b900be08315b07f5b80cae3d830b7917
|
|
| BLAKE2b-256 |
bd78e592a1c4c38aad5c192d21879a9d656cbc1028c39f7e0b0103444d0367f9
|
File details
Details for the file blekline_client-0.4.0-py3-none-any.whl.
File metadata
- Download URL: blekline_client-0.4.0-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 |
14508f48d2aa384d0f94f39df0557b81fccc452a31392b31f38fe58b8e5130c2
|
|
| MD5 |
7f4e812b53968752bbc706fa73e312ed
|
|
| BLAKE2b-256 |
c9a6f3f02830f9439bac4e2ea449be7d54a1fdd2ba0f3297a767638b731be82d
|