Zypp CLI
Internal CLI for Zypp: load secrets from Azure Key Vault and anonymize client files locally with Microsoft Presidio.
Installation
uv tool install zyppcli
To upgrade to the latest version:
uv tool install zyppcli --upgrade
Key Vault prerequisites
You need to be authenticated with Azure:
az login
Usage
Anonymize PDF, Excel or text files
Install Zypp CLI normally, then download both local spaCy models once:
uv tool install zyppcli
zypp anonymize --setup
To install from this checkout, use uv tool install . instead. To upgrade an
existing installation, use uv tool install zyppcli --upgrade. Setup installs the
Dutch and English models into the CLI's own environment, using uv when available
or pip otherwise. It can be run again safely. Downloading models requires network
access; anonymizing client files does not download anything.
Scanned PDFs and PDF pages with images or annotations also need local Tesseract
OCR and its Dutch (nld) and English (eng) language packs:
# macOS
brew install tesseract tesseract-lang
# Ubuntu/Debian
sudo apt-get install tesseract-ocr tesseract-ocr-nld tesseract-ocr-eng
# Check which language packs are available
tesseract --list-langs
zypp anonymize report.pdf
# -> report.anonymized.pdf
zypp anonymize customers.xlsx
# -> customers.anonymized.xlsx
zypp anonymize ./client-files
# -> ./client-files.anonymized/ (recursive, with relative file paths preserved)
zypp anonymize report.pdf --language en
zypp anonymize ./client-files --output ./review-copy
Dutch is the default. Processing uses local Presidio/spaCy/Tesseract engines;
client files are not sent to cloud services. Detected text is replaced with labels
such as <PERSON>, <EMAIL_ADDRESS> and <NL_BSN>. PDF detections are masked
with opaque black pixels.
| Format | Result |
|---|---|
.pdf |
Preserves unaffected selectable text on native and mixed pages. Scans use OCR for detection and remain image content. Detected characters are deleted and matching image pixels are blanked. Interactive forms, annotations, links and original document metadata are removed. |
.xlsx |
Fresh values-only workbook. All worksheets and hidden cells are processed; output tabs are named Sheet1, Sheet2, etc. Formulas, formatting, comments, links, drawings and original metadata are omitted. |
.csv, .tsv |
Properly quoted UTF-8 data with cell-level replacements. CSV uses commas; TSV uses tabs. |
.txt, .md, .log |
UTF-8 text with entity-label replacements. |
.json, .jsonl |
Valid JSON with processed keys and values. Colliding or duplicate keys are rejected. |
Excel formulas use the results saved by Excel. If a formula has no saved result,
the workbook fails with an instruction to recalculate and save it in Excel.
Numeric identifiers are scanned too; matched numbers become replacement strings.
Unmatched values retain their types, and text leading zeroes are preserved.
Custom Excel display formats such as 000000000 are not retained. Excel drawings
and embedded objects are omitted with a warning, rather than processed as images.
Originals are preserved and existing destinations are refused. Symbolic links
are not followed. For folders, unsupported files are skipped and failed files
have no final output; completed files are retained. A skipped or failed file makes
the command exit with status 1 and report a partial run. Temporary files and new
output use owner-only permissions where supported.
Review output before sharing. Detection and OCR can miss personal data or
replace harmless text. Faces, signatures, indirect identifiers and every kind of
address or sensitive fact are not comprehensively detected. Filesystem names
remain unchanged and may themselves identify people. Legacy .xls, macro-enabled
Office files and password-protected PDFs are not supported.
For implementation details, see the anonymize plan.
List Key Vaults
zypp keyvault list --subscription <subscription-id>
Lists all accessible Key Vaults in the given Azure subscription.
To filter by name (case-insensitive substring match):
zypp keyvault list --subscription <subscription-id> --name dev
Load secrets from Azure Key Vault
eval $(zypp keyvault load --vault <vault-name>)
This fetches all enabled secrets from the specified vault and exports them as environment variables. Secret names are transformed: hyphens become underscores and the name is uppercased (e.g. db-password becomes DB_PASSWORD).
Without eval, the command only prints the export statements without setting them:
zypp keyvault load --vault <vault-name>
# Output:
# export DB_PASSWORD='...'
# export SQL_DB='...'
Version
zypp --version
Development and checks
uv sync
uv run --no-sync zypp anonymize --setup
uv run --no-sync pytest
uv run --no-sync pytest -m integration
uvx prek run --all-files
The default suite tests file handling and document adapters without spaCy models
or Tesseract. Integration tests require both language models, Tesseract and its
nld/eng packs; they exercise real detection, scans, mixed PDFs and the CLI.
Use --no-sync after setup: an exact uv sync removes model packages that
are not in the project lockfile. Run setup again if needed. CI runs both suites.
Metadata
Release files for zyppcli 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zyppcli-0.3.0.tar.gz | 183.0 kB | Without provenance | Details for zyppcli-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zyppcli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for zyppcli-0.3.0-py3-none-any.whl |
Total release size: 197.9 kB
Release files / zyppcli-0.3.0.tar.gz
| Download URL | zyppcli-0.3.0.tar.gz |
|---|---|
| Size | 183.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c32a4cd13eecf53e63fafec06d8c696d4e48976e83c7a4613aaa20b37079fc6
|
|
BLAKE2b-256 checksum How to use checksums |
6010a31841a6a59e56f72c1c938f3912e466c623683dc0cc899f6381c72eba9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / zyppcli-0.3.0-py3-none-any.whl
| Download URL | zyppcli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7609ffb210fbd3d1dcb2acea75216c3bd015c69a0a1b9f3f41b3315f243525f0
|
|
BLAKE2b-256 checksum How to use checksums |
c17c63ac2dd84bc3c4fa2bbf422ab8c2ef129b1fa26e5ca7ba0529ba42d95c09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for zyppcli 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.