Convenience functions for symetrically encrypting/decrypting huggingface Datasets
Project description
encrypted-datasets
Installation
pip install encrypted-datasets
Usage
from datasets import load_dataset
from encrypted_datasets import encrypt_dataset, decrypt_dataset
huggingface_api_token= 'API_TOKEN'
downloaded_dataset = load_dataset('organization/dataset_repo', token=huggingface_api_token)
key = 'Your Symetric encryption key'
decrypted_dataset = decrypt_dataset(downloaded_dataset, key)
# Make modifications to decrypted_dataset...
re_encrypted_dataset = encrypt_dataset(decrypted_dataset, key)
re_encrypted_dataset.push_to_hub('organization/dataset_repo',token=huggingface_api_token)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for encrypted_datasets-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30be6d5b626c12844e59268f4588ad43335bf07a09c3bb0496dff464164ee320 |
|
MD5 | e5958f45be353bb653c5fddbaeade64d |
|
BLAKE2b-256 | b2bf5aa3e8c1e055f5d25a4bf37f195a43f6eaff8f23e9c1ca0eb08f9a1cecad |