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.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2695e7ea320f9ad7497b084aceecaf65d639b964876d5d763140411ec3877d44 |
|
MD5 | 5b767c1dd95ca4d630e72670c31f0470 |
|
BLAKE2b-256 | a8af0e1e0ed39050b17720f79553f1eed524f4ac13102e7fb1acd3ed07bbbeef |