Skip to content
Open source Python SDK

Install FastPII locally and start protecting AI traffic

The SDK gives developers an Apache 2.0, zero-dependency path to sensitive data detection and protection without waiting on a managed deployment.

Install
pip install fastpii
SDK essentials

Open source, local-first, and built for European coverage

The SDK is designed for teams that want to run protection close to their own applications, queues, and background workers.

Apache 2.0

Audit the code, self-host it, and contribute without locking your organisation into a closed runtime.

Zero dependencies

Keep installation straightforward when you need a lightweight protection layer inside your own stack.

Country packs

Cover Czech, Polish, German, and French identifier flows from the same local Python surface.

Code example

Start with one import and a single protection call

The SDK exposes straightforward methods for detection and protection so local applications can add controls without a complex bootstrap step.

Python SDK
pip install fastpii

from fastpii import FastPII

client = FastPII()
protected = client.protect(
    "Rodné číslo 800101/1238 in customer request",
    mode="redact",
)

Run close to your data

Use the SDK when you want deterministic behaviour inside workers, services, or internal tools without depending on a network hop.

Ship locally first

Use the open-source SDK as your first security layer

Many teams begin with local SDK protection, then expand to gateway, governance, and audit controls as AI usage grows across the organisation.