Skip to main content

PIIFILL: Professional Local-Logic PII Sanitization CLI

Project description

PIIFILL CLI v0.1.6

The Automated, Enterprise-Grade, Strictly Offline PII Sanitization Tool

PyPI version Python versions License: MIT

Built with ❤️ by Bhavin Sachaniya


🛡️ Total Privacy Meets Hyper-Speed Processing

PIIFILL is a high-performance terminal utility meticulously engineered for identifying, analyzing, and masking Personally Identifiable Information (PII) entirely on your local machine.

In a regulatory environment emphasizing data sovereignty (GDPR, HIPAA, CCPA), sending sensitive data to cloud APIs is a massive security liability. PIIFILL solves this by keeping all processing—including Deep Learning OCR—100% Offline.

⚡ Key Features

  • Privacy-First Architecture: Zero cloud dependencies. Your data never leaves your environment.
  • Universal Format Parsing: Natively scans and redacts TXT, PDF, DOCX, PNG, JPG, JSON, JSONL, CSV, XLSX, and SQL files.
  • Enterprise-Grade Analysis: Detects over 50+ diverse global PII entities (SSN, Aadhaar, Credit Cards, MAC Addresses, etc.).
  • Parallel Processing Engine: Dynamic core utilization for lightning-fast sanitization of massive data lakes.
  • Visual Terminal UI: Beautiful, interactive command-line interface featuring rich status reports.

🚀 Quick Start Guide

1. Installation

Install the latest optimized version directly from PyPI:

pip install piifill-cli==0.1.6

2. Discover Vulnerabilities (scan)

Perform a non-destructive audit of a single file, or recursively traverse an entire directory to locate sensitive data.

# Scan a specific invoice
piifill scan ./documents/invoice.pdf

# Deep recursive scan of an entire data dump
piifill scan ./data_dump/ --recursive

3. Sanitize and Protect (mask)

Safely redact detected PII. You can overwrite the file or specifically output the sanitized version to a designated secure directory.

# Mask a single image
piifill mask ./private/id_card.png

# Enterprise Sanitization Pipeline
piifill mask ./docs/ -o ./sanitized_docs/ --mode redact

🛠 Advanced Command Reference

piifill scan

Execute discovery protocols without modifying assets.

  • piifill scan <path>: Direct audit of a specific file.
  • --recursive: Enables deep directory traversal.

piifill mask

Execute sanitization protocols to generate compliant datasets.

  • piifill mask <path>: In-place or localized masking.
  • -o <output_path>, --output <output_path>: Route sanitized files to a secure destination.
  • --mode <strategy>: Define the sanitization strategy (e.g., mask, redact).
  • --local: Rapid deployment scanning the current working directory.

piifill version

Verify your CLI environment.

piifill version
# Output: piifill-cli version 0.1.6

📊 Enterprise Security Analysis

Every sanitization run delivers a comprehensive security debrief:

  • Security Grading: A-F scale calculating exposure risk prior to sanitization.
  • Risk Scoring: 0-100 technical metric quantifying data protection.
  • Categorical Breakdown: Granular reporting on exactly what entities were identified (e.g., 4 SSNs, 12 Emails).

👨‍💻 About the Author

Bhavin Sachaniya
Lead Developer & Security Enthusiast

Discover more of my enterprise tools, cybersecurity insights, and professional projects at my portfolio:
🌐 bhavinsachaniya.in


📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

piifill_cli-0.1.6.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

piifill_cli-0.1.6-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file piifill_cli-0.1.6.tar.gz.

File metadata

  • Download URL: piifill_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for piifill_cli-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9dab1bb98810bd64719b6f61558f11ab40ef24074933716792ca319000b7db65
MD5 0be37fb0d2273094454a4583d4925a99
BLAKE2b-256 30ae2e22af7fb43de1cbfa384333e030f39cf8aab4c95f807334dd7d8a1f39ed

See more details on using hashes here.

File details

Details for the file piifill_cli-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: piifill_cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 40.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for piifill_cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 84bb1449e4866d40a47dbca5114b75b34fe81cf49ceb60b18ec5e2796b73c900
MD5 88d30caa139ea2fc906013d5ac0cb8dd
BLAKE2b-256 20f6e1a880b67d7ad06546b1b73f78bf34167501955e105f1427c2607b764c1b

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