Skip to main content

privapy

Anonymize your data

Latest Version on PyPI Supported Implementations Build Status Documentation Status Coverage Status Built with PyPi Template

Documentation

Visit Read the Docs for the full documentation, including overviews and several examples.

Installation

pip install privapy

Disclaimer

This package provides no guarantee of anonymity. It is the user's responsibility to ensure that the data is properly anonymized. The authors of this package are not responsible for any results or misuse of this package.

Usage

text

from privapy.text import TextCleaner

text = "I live in New York and work at Google. My email is john@google.com"
cleaner = TextCleaner(steps="all")
cleaned_text = cleaner.clean(text)
# 'I live in <<ENT>> and work at <<ENT>. My email is <<EMAIL>>'

image

from privapy.image import ImageCleaner
from PIL import Image

cleaner = ImageCleaner()
img = Image.open("image.jpg")
cleaned_image = cleaner.clean(img)

input image (img): input image output image (cleaned_image): output image

Coming in future releases

  • text
    • Add more cleaning methods
    • Add Spacy integration
  • image
    • Add more cleaning methods
      • blackout
      • pixelate
    • Add more detection methods
      • face detection
      • dlib
      • mediapipe

Metadata

Release files for privapy 0.0.4

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

Source distribution (sdist)

Source distribution for privapy 0.0.4
File Size Uploaded
privapy-0.0.4.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for privapy 0.0.4
File Interpreter ABI Platform
privapy-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / privapy-0.0.4.tar.gz

Download URL privapy-0.0.4.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0d285ec22fac385d0376551c7f72cdd4ac1bb8ab5924da0fba9e8c990a28cbe8
BLAKE2b-256 checksum
How to use checksums
d5937b87975547a92344e33ae3bb5eda8e2afb39fe4dba15dd25b940edae6da2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Release files / privapy-0.0.4-py3-none-any.whl

Download URL privapy-0.0.4-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f041e2bc586090e8e5d58325f80176ffe9bcc826f6e9f6769fd9fe7ef376de89
BLAKE2b-256 checksum
How to use checksums
bf76abe40454fc17eea2dd5142a0d9dc9021c67bdd78421375cf7317df339968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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