Aindo Anonymize
Welcome to the documentation of the Aindo Anonymize library.
Aindo Anonymize is a lightweight Python library for anonymizing tabular data, offering a collection of techniques such as masking, mocking, perturbation, and more.
Installation
Aindo Anonymize can be installed via pip from PyPI.
pip install aindo-anonymize
It officially supports Python 3.10, 3.11 and 3.12.
Quick example
The library provides a modular approach to data anonymization, where each technique is represented by its own class. To anonymize your tabular data, first initialize the desired anonymization technique class, configure its options, and then apply it to your data:
import pandas as pd
from aindo.anonymize.techniques import CharacterMasking
col = pd.Series(["John", "Mark", "Lucy", "Alice"])
masking = CharacterMasking(starting_direction="right", mask_length=2)
masking.anonymize_column(col)
# 0 Jo**
# 1 Ma**
# 2 Lu**
# 3 Ali**
# dtype: object