Skip to main content

FastPII Connect

Client SDK for the FastPII AI Data Security Platform.

FastPII detects and protects sensitive information before it reaches AI systems, enabling organisations to use AI securely while meeting privacy and governance requirements.

Installation

pip install fastpii-connect

Quick Start

from fastpii_connect import FastPIIClient

client = FastPIIClient(api_key="fpk_your_api_key")

# Detect PII
result = client.detect("My rodné číslo is 900101/1234")
for entity in result.entities:
    print(f"Found {entity.type}: {entity.original}")

# Protect PII
result = client.protect("My rodné číslo is 900101/1234", mode="replace")
print(result.protected_text)

# Validate an identifier
result = client.validate("900101/1234", entity_type="rodne_cislo")
print(f"Valid: {result.valid}")

# List available detectors
detectors = client.list_detectors(country="CZ")
for d in detectors.detectors:
    print(f"{d.name}: {d.description}")

Context Manager

with FastPIIClient(api_key="fpk_your_api_key") as client:
    result = client.detect("Hello world")

Session Management

client = FastPIIClient(api_key="fpk_your_api_key")
session = client.create_session()

result1 = session.detect("My rodné číslo is 900101/1234")
print(session.countries)  # ["CZ"]

result2 = session.detect("My PESEL is 90010112345")
print(session.countries)  # ["CZ", "PL"]

Error Handling

from fastpii_connect.errors import (
    AuthenticationError,
    RateLimitError,
    QuotaExceededError,
    ValidationError,
)

try:
    result = client.detect("text")
except AuthenticationError:
    print("Invalid API key")
except RateLimitError as e:
    print(f"Rate limited. Retry after {e.retry_after} seconds")
except QuotaExceededError:
    print("Monthly quota exceeded")

License

Proprietary — see LICENSE file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastpii_connect-0.3.0.tar.gz (57.3 kB view details)

Uploaded Source

Built Distribution

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

fastpii_connect-0.3.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file fastpii_connect-0.3.0.tar.gz.

File metadata

  • Download URL: fastpii_connect-0.3.0.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Deepin","version":"25","id":"crimson","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fastpii_connect-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4c59df04fe8cfdde758a86c6caccfa8aa18b90a7e62fd9f822bcc223a0b13e22
MD5 27b1633aabe3e619d1dd407b18e1a860
BLAKE2b-256 2f43af02ce7178fd4103529e7bdeb300bb6a79e1d8ab9e51bd4f872c037f76b8

See more details on using hashes here.

File details

Details for the file fastpii_connect-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: fastpii_connect-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Deepin","version":"25","id":"crimson","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fastpii_connect-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e97239107b4834e56b636b025ae753fa09c7ec7f938e666aacfdf238827f698f
MD5 ef14e8a0de77bf202248589f8a91efb8
BLAKE2b-256 3b3485b39c2a7d695a218f2479a3f9758f5620455185f04de6e8b187d524be48

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 Sentry Error logging StatusPage Status page