Skip to main content

Anonymize your data

Project description

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

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

privapy-0.0.4.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

privapy-0.0.4-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file privapy-0.0.4.tar.gz.

File metadata

  • Download URL: privapy-0.0.4.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.16

File hashes

Hashes for privapy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0d285ec22fac385d0376551c7f72cdd4ac1bb8ab5924da0fba9e8c990a28cbe8
MD5 2d2c9c8a95271dbefec346118facd51a
BLAKE2b-256 d5937b87975547a92344e33ae3bb5eda8e2afb39fe4dba15dd25b940edae6da2

See more details on using hashes here.

File details

Details for the file privapy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: privapy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.16

File hashes

Hashes for privapy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f041e2bc586090e8e5d58325f80176ffe9bcc826f6e9f6769fd9fe7ef376de89
MD5 b90e4daabeb2888baafd36a411ac7261
BLAKE2b-256 bf76abe40454fc17eea2dd5142a0d9dc9021c67bdd78421375cf7317df339968

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