Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blekline_client-0.4.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for blekline_client-0.4.0.tar.gz
Algorithm Hash digest
SHA256 239f2fd2811e39f159d0b3bde0a6c6921ec420cf6a2a83e26846232d70a25c50
MD5 b900be08315b07f5b80cae3d830b7917
BLAKE2b-256 bd78e592a1c4c38aad5c192d21879a9d656cbc1028c39f7e0b0103444d0367f9

See more details on using hashes here.

File details

Details for the file blekline_client-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for blekline_client-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14508f48d2aa384d0f94f39df0557b81fccc452a31392b31f38fe58b8e5130c2
MD5 7f4e812b53968752bbc706fa73e312ed
BLAKE2b-256 c9a6f3f02830f9439bac4e2ea449be7d54a1fdd2ba0f3297a767638b731be82d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page