Skip to main content

tarja-presidio

EN · Brazilian identifiers for Presidio, powered by tarja. One PatternRecognizer per tarja entity (CPF, alphanumeric CNPJ, CNS, CNJ, CNM, CIB...), with check-digit validation and Portuguese context words.

PT · Identificadores brasileiros p/ o Presidio, via tarja. 1 PatternRecognizer por entidade do tarja, c/ validação de DV e palavras de contexto em pt-BR.

EN: until tarja is on PyPI, install both from the repo root / PT: ate o tarja estar no PyPI, instale os 2 da raiz do repo:

pip install -e . -e packages/tarja-presidio
from presidio_analyzer import AnalyzerEngine, RecognizerRegistry
import tarja_presidio

registry = RecognizerRegistry(supported_languages=["pt"])
registry.load_predefined_recognizers(languages=["pt"])  # EN: optional / PT: opcional
tarja_presidio.register(registry)  # EN: all tarja entities / PT: todas as entidades do tarja

engine = AnalyzerEngine(registry=registry, supported_languages=["pt"])  # EN: needs a pt NLP config / PT: precisa de config NLP pt
engine.analyze("Paciente CPF 529.982.247-25, cartao SUS 898 0000 0004 3208", language="pt")

EN: scores: valid check digit -> 1.0; wrong check digit -> dropped; entities that need context in tarja (CEP, CNH, RENAVAM, PIX key, CIB, IPTU, matricula) start at 0.1 and rely on Presidio's context enhancer, so use score_threshold. Full walkthrough: docs/presidio.md. PT: scores: DV certo -> 1.0; DV errado -> descartado; entidades q exigem contexto no tarja começam em 0.1 e dependem do enhancer de contexto do Presidio, entao use score_threshold. Passo a passo: docs/presidio.md.

Release files for tarja-presidio 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tarja-presidio 0.1.0
File Size Uploaded
tarja_presidio-0.1.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tarja-presidio 0.1.0
File Interpreter ABI Platform
tarja_presidio-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / tarja_presidio-0.1.0.tar.gz

Download URL tarja_presidio-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d8ecc601b675e54efba74b1dd2c124359f8aef1f3e722b86a041be8853c3f50a
BLAKE2b-256 checksum
How to use checksums
9ff937a01d214198d6032fec35010f12916ac2807842a2f83d4dd3243e5c8f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / tarja_presidio-0.1.0-py3-none-any.whl

Download URL tarja_presidio-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16db4f01614c678ddb4cb5c5643984d31947bbf9fe7a58dc4eed81e4378e8200
BLAKE2b-256 checksum
How to use checksums
46e8bfccea5d6cbc3741ed760a3f007beab4ddcba274354677b604b344d42791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page