Skip to content

d-one/masking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Masking Package

Introduction

The Masking Package is a Python library designed to provide various masking operations on data columns. It supports hashing, fake data generation, and other masking techniques to ensure data privacy and security.

Table of Content

Installation

To install the Masking Package, use the following command:

pip install masking@git+"https://github.com/d-one/masking.git"

Usage

Here is a basic example of how to use the package

import pandas as pd
from masking.mask.pipeline import MaskColumnPipeline

# Sample DataFrame
data = {'name': ['Alice', 'Bob', 'Charlie'], 'ssn': ['123-45-6789', '987-65-4321', '555-55-5555']}
df = pd.DataFrame(data)

# Configuration for masking
config = {
        'masking': 'hash',
        'config': { "col_name": "ssn", "secret": "my_secret" }
    }

# Create and apply the masking pipeline
pipeline = MaskColumnPipeline(column='ssn', config=config)
masked_df = pipeline(df)

print(masked_df)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published