To Identify and Redact Personal Identifiable information
Project description
Privato
Privato is a SDK for building secure and privacy-focused applications. It provides tools and libraries to help developers create applications that analyze and redact personal identifiable information (PII).
Privato provides both an API, CLI and a web interface for easy interaction.
Features
- PII Detection: Identify and classify various types of PII in text data.
- Redaction: Automatically redact sensitive information to protect user privacy.
- Customizable: Extend and customize the detection and redaction capabilities to fit specific needs.
- Easy Integration: Simple API for seamless integration into existing applications.
- Web Interface: User-friendly web interface for manual review and redaction.
Installation
You can install Privato using pip:
pip install privato
Usage
Here's a simple example of how to use Privato to detect and redact PII in text:
from privato.core.redactor import Redactor
text = "John's email is john.doe@example.com and his phone number is (123) 456-7890."
redactor = Redactor()
redacted_text = redactor.redact_text(text)['text']
print(redacted_text)
This will output:
"<PERSON>'s email is <EMAIL_ADDRESS> and his phone number is <PHONE_NUMBER>."
Web Interface
To run the Backend, use the following command:
privato api run
Then, open your browser and go to http://127.0.0.1:8080.
Make Commands
make help: List all available make commands.make install: Install the required dependencies.make install-dev: Install development dependencies.make test: Run the test suite.make run: Start the FastAPI Development server.make clean: Remove temporary files and directories.make deploy: Build and run the Docker container.make down: Stop and remove the Docker container.
Docs
For more detailed documentation, visit the Privato Documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file privato-0.1.4.tar.gz.
File metadata
- Download URL: privato-0.1.4.tar.gz
- Upload date:
- Size: 43.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1782d6fbf7b068f7c4d1c270096d02d77866f6edb05a51e206072b4e5c36b16e
|
|
| MD5 |
5219deaa4dd2730ce8f49ac92930546d
|
|
| BLAKE2b-256 |
99002419cb2c7f057330a19cd88895fbbd1d631364dbf9d412d565ff025cfff8
|
File details
Details for the file privato-0.1.4-py3-none-any.whl.
File metadata
- Download URL: privato-0.1.4-py3-none-any.whl
- Upload date:
- Size: 43.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5c0cba1562666ba40759a596a889c3165a50abf2ada104e456fbd0473deb17a
|
|
| MD5 |
d9cdf80d2367cdd792e78b8f65f80da2
|
|
| BLAKE2b-256 |
5f16dc08db0745cf4ce03a15cf52475b82666a1374c0495464714a4a6ae5651f
|