Vtils Python Library
Project description
VTILS
Utility functions from VTILS
from vtils.util import Cipher
cipher = Cipher(key_text)
t1 = cipher.encrypt(plain_text)
t2 = cipher.decrypt(t1)
Encrypt File
from vtils.util import FileUtils
svc = FileUtils(key_text)
svc.encrypt_file(src, dest)
Decrypt File
from vtils.util import FileUtils
svc = FileUtils(key_text)
svc.decrypt_file(src, dest)
AWS Cloud Utils (AwsCloudtils)
Upload File
from vtils.cloud import AwsCloudtils
svc = AwsCloudtils(accesskey, secretkey)
success = svc.upload_file(src, s3bucket)
if not success:
print('Failed to upload file to s3 bucket')
Download File
from vtils.cloud import AwsCloudtils
svc = AwsCloudtils(accesskey, secretkey)
success = svc.download_file(s3bucket, objname, dest)
if not success:
print('Failed to download file from s3 bucket')
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
vtils-0.1.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
vtils-0.1.1-py3-none-any.whl
(3.6 kB
view hashes)