Skip to main content

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


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 details)

Uploaded Source

Built Distribution

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

vtils-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file vtils-0.1.1.tar.gz.

File metadata

  • Download URL: vtils-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for vtils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e9c88433d3518f8a1d1c5d4b06bbf789a7c953e9625049ee69d893067d60787e
MD5 aabc888e63e4b407b3c4c7aec03e4bc0
BLAKE2b-256 131dbdeae9f73d05a20ca576829ab2c0d504d3c5827394fcb0fe422efafd89d4

See more details on using hashes here.

File details

Details for the file vtils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vtils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for vtils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce3c98e629ea031d5a893457f903b581ad9274045bb2a1793ae4f3221b2b8e48
MD5 f82bc389eab2e95e9fec426129fcad13
BLAKE2b-256 3d5fcb1b60626bde95a629777af9d643788bfc5b345e3816c22252ccb30e3245

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