Python client for Thyris Safe Zone (TSZ)
Project description
TSZ (Thyris Safe Zone)
TSZ (Thyris Safe Zone) is a PII Detection and Guardrails System engineered by Thyris.AI. It acts as a zero‑trust layer between your data and external systems, ensuring that sensitive information—Personal Identifiable Information (PII), secrets, and proprietary data—never leaves your secure perimeter unintentionally.
TSZ provides real‑time scanning, redaction, and blocking capabilities so that you can safely integrate LLMs and third‑party APIs into your existing applications.
Features
- Real‑time detection of PII, secrets and sensitive patterns
- Redaction with context‑preserving placeholders (for example,
[EMAIL],[CREDIT_CARD]) - Configurable guardrails using patterns, validators and templates
- Allowlist and blocklist management
- Hot reloading of rules via APIs
- High‑performance implementation in Go with Redis caching
Getting Started
For all user and customer‑facing documentation, see the docs/ directory:
- What is TSZ? – Conceptual and product overview
docs/WHAT_IS_TSZ.md - Product Overview (executive friendly) –
docs/PRODUCT_OVERVIEW.md - Quick Start Guide – Run TSZ locally and call
/detect
docs/QUICK_START.md - API Reference (Enterprise) – Full REST API documentation
docs/API_REFERENCE.md - Architecture & Security Overview – Architecture, data flows, security controls
docs/ARCHITECTURE_SECURITY.md - Postman Collection – Ready‑to‑use collection
docs/TSZ_Postman_Collection.json
If you are evaluating TSZ for the first time, we recommend the following order:
docs/WHAT_IS_TSZ.mddocs/PRODUCT_OVERVIEW.mddocs/QUICK_START.mddocs/API_REFERENCE.md
For a more detailed map of the documentation set, see docs/README.md.
Client Libraries (SDKs)
TSZ provides official client libraries for common stacks:
-
Go client (
tszclient-go) – for Go services that want a typed wrapper around/detectand the LLM gateway.
See:pkg/tszclient-go/README.md. -
Python client (
tszclient_py/ packagetszclient-py) – for Python services that prefer a smallrequests-based helper instead of calling HTTP manually.
Install from GitHub:pip install "tszclient-py @ git+https://github.com/thyrisAI/safe-zone.git@main"
A runnable example lives under
examples/python-sdk-demo.
Contributing
We welcome community contributions.
- Please read our Contributing Guide for details on how to set up a development environment, run tests and propose changes.
- By participating in this project, you agree to follow our Code of Conduct.
- For reporting security issues, do not open a public GitHub issue. Instead, follow the process described in our Security Policy.
License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for the full text.
Unless otherwise noted, all contributions to this repository are also licensed under the Apache License 2.0.
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
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 tszclient_py-0.1.0.tar.gz.
File metadata
- Download URL: tszclient_py-0.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0712a2ab90d3aab2c77d3ecf54ade6024df18899a2f4ff06b15758aef2216f60
|
|
| MD5 |
f5f7c4bb4dd5792de75f641f8f99c9ec
|
|
| BLAKE2b-256 |
9ef641d37c017fe44f089e95a46c75b9b1a85434e66052bea0c159e92c80218a
|
File details
Details for the file tszclient_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tszclient_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1e307881e4941a7ca33e2f98836fa96f58f58356fba4912882fae06d5c2e534
|
|
| MD5 |
97b74c962e692b2c46f0922941d16d23
|
|
| BLAKE2b-256 |
1dea4c6fd68245254d7532bf842bae21392d83e81f164c0a42ad628a21d031ea
|