Skip to main content

Protect sensitive data with secure-learn, a Python package offering encryption, anonymization, and compliance tools for data scientists.

Project description

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

secure-learn 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

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

Features

secure-learn 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 secure-learn, simply run:

pip install secure-learn

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

secure-learn 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

secure-learn 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

secure-learn 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 secure-learn 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

secure-learn is licensed under the MIT License. See the LICENSE file for details.

About the Author

Email | LinkedIn | GitHub | Portfolio

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

secure-learn-0.2.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

secure_learn-0.2.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file secure-learn-0.2.2.tar.gz.

File metadata

  • Download URL: secure-learn-0.2.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for secure-learn-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4b4359a4ca3fe34ccf265f27ca486654a04f8934cb629fe27aa2f102d2292ddd
MD5 833db99b6c4a7970ae6a6b90205f5fd4
BLAKE2b-256 d624eaa75b7559f8988a23cb8295d5eb16ed1133ecd6a10037e372ccdd3046de

See more details on using hashes here.

File details

Details for the file secure_learn-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: secure_learn-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for secure_learn-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d610d397cc0394f2c941703159d848c5e0d329b3d5fac7715a504fb63113c53
MD5 8c422a10dfc860fb0d50c3898943f1e1
BLAKE2b-256 1ed158268bc43e521b40760ed1655b01f519e66021b9736d59a5e3969a88baae

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