Skip to main content

securedf: Secure Data Privacy Framework for Python Data Scientists

https://img.shields.io/github/stars/DeependraVerma/SecuPy-Secure-Data-Privacy-Framework-for-Python-Data-Scientists.svg https://img.shields.io/github/license/DeependraVerma/SecuPy-Secure-Data-Privacy-Framework-for-Python-Data-Scientists.svg

securedf is an all-in-one Python package designed to address data privacy and security concerns for data scientists. Developed by Deependra Verma, secure-learn offers robust encryption, anonymization, and access control tools, ensuring the confidentiality and integrity of sensitive data.

Introduction

securedf: Your all-in-one Python package for robust data privacy and security. Encrypt, anonymize, and control access to sensitive data effortlessly.

Features

securedf provides the following key methods:

  • encrypt_data(data): Encrypts sensitive data to ensure confidentiality.

  • decrypt_data(encrypted_data): Decrypts encrypted data to its original form.

  • anonymize_data(data, columns_to_anonymize): Anonymizes specific columns in a DataFrame.

  • add_role(role_name, permissions): Adds a new role with associated permissions to the access control system.

  • check_permission(role_name, permission): Checks if a role has the specified permission.

Installation

To install securedf, simply run:

pip install securedf

Alternatively, you can clone the GitHub repository:

git clone https://github.com/DeependraVerma/SecuPy-Secure-Data-Privacy-Framework-for-Python-Data-Scientists.git
cd SecuPy-Secure-Data-Privacy-Framework-for-Python-Data-Scientists
python setup.py install

Dependencies

securedf relies on the following dependencies:

  • pandas>=1.0.0

  • faker>=8.0.0

  • cryptography>=3.0

Usage

Import the package:

from PrivacyPy import DataPrivacyFramework

Initialize PrivacyPy with encryption key:

encryption_key = "your_encryption_key"
privacy_framework = DataPrivacyFramework(encryption_key)

Anonymize sensitive columns (Name, Email):

anonymized_df = privacy_framework.anonymize_data(data, ['Name', 'Email'])

Encrypt entire DataFrame:

encrypted_df = privacy_framework.encrypt_data(anonymized_df)
print("Encrypted DataFrame:")
print(encrypted_df)

Users Benefit

securedf empowers data scientists with the following benefits:

  • Data Confidentiality: Encrypt sensitive data to prevent unauthorized access.

  • Anonymization: Anonymize personally identifiable information for privacy protection.

  • Access Control: Control data access based on user roles and permissions.

  • Compliance: Ensure compliance with data protection regulations (e.g., GDPR, HIPAA).

Use Cases

securedf can be used in various data science scenarios, including:

  • Healthcare data analysis

  • Financial data processing

  • User authentication systems

  • Research collaborations with external parties

Invitation for Contribution

Contributions to securedf are welcome! To contribute, follow these steps:

  1. Fork the repository on GitHub.

  2. Clone the forked repository to your local machine.

  3. Create a new branch for your changes.

  4. Make your modifications and improvements.

  5. Test your changes to ensure they work as expected.

  6. Commit your changes and push them to your forked repository.

  7. Submit a pull request to the original repository.

We welcome contributions from the community! Whether it’s fixing bugs, adding new features, or improving documentation, your contributions help make XplainML better for everyone. Check out our Contributing Guidelines to get started.

License

securedf is licensed under the MIT License. See the LICENSE file for details.

About the Author

Email | LinkedIn | GitHub | Portfolio

Release files for securedf 0.1.1

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

Source distribution (sdist)

Source distribution for securedf 0.1.1
File Size Uploaded
securedf-0.1.1.tar.gz 7.2 kB Details

Built distribution (wheel)

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

Total release size: 13.2 kB

Release files / securedf-0.1.1.tar.gz

Download URL securedf-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bdea0bb627faed718cdbe599e76812472fb7ca4b2a8955e3448ec828a18e94c9
BLAKE2b-256 checksum
How to use checksums
40127e7a1552f1469a7a63b0806e3ef39611a442e4e19755496d349b6d9564f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / securedf-0.1.1-py3-none-any.whl

Download URL securedf-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dc07bcea900f89bb8ae08cc42db77aa73ae255f2689321893f33be246127c81
BLAKE2b-256 checksum
How to use checksums
35254370ab351e73aefb5835b2b5fb217ee95332b7ad72ca277d2565986aa8e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.1.1 This release

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