Skip to main content

Python Wrapper for Virtru SDK

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Virtru TDF3 SDK

License

The following files are covered under the MIT license:

  • virtru_sample.py
  • init.py
  • setup.py

The following binaries / minified libraries are subject to use under the "Virtru Data Protection Subscription Agreement" found here: https://www.virtru.com/terms-of-service/

  • virtru_tdf3_python.pyd
  • virtru_tdf3_python.so

All 3rd party packages used in this software are covered by their respective licenses, which are detailed in the LICENSE file.

Obtaining a Virtru AppId

A Virtru AppId token is required to use the TDF3 SDK. This is how you obtain it

The Virtru TDF3 Python Sample

For more information on how to use the TDF3 Python module, see the online documentation.

General

  • Python This module is built with Python3 libraries so it will ONLY work with python3.

The module works on Linux, Windows and OSX.

Installing the module

OS X And Linux

  • Navigate to cd lib and run sudo python3 setup.py install. The Virtru SDK module will build and install the module to site-packages.
$ sudo python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/virtru_tdf3_python
copying virtru_tdf3_python/__init__.py -> build/lib/virtru_tdf3_python
copying virtru_tdf3_python/virtru_tdf3_python.so -> build/lib/virtru_tdf3_python
running install_lib
copying build/lib/virtru_tdf3_python/__init__.py -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
copying build/lib/virtru_tdf3_python/virtru_tdf3_python.so -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
byte-compiling /usr/local/lib/python3.7/site-packages/virtru_tdf3_python/__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing /usr/local/lib/python3.7/site-packages/virtru_tdf3_python-1.0.11-py3.7.egg-info

Windows

Make sure the Python installed on your windows machine is 64-bit.

  • Navigate to cd lib and run python setup.py install and will build and install the module to site-packages.
PS C:\Users\..\lib> python setup.py install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\virtru_tdf3_python
copying virtru_tdf3_python\__init__.py -> build\lib\virtru_tdf3_python
copying virtru_tdf3_python\virtru_tdf3_python.pyd -> build\lib\virtru_tdf3_python
running install_lib
copying build\lib\virtru_tdf3_python\virtru_tdf3_python.pyd -> C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python
copying build\lib\virtru_tdf3_python\__init__.py -> C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python
byte-compiling C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python\__init__.py to __init__.cpython-37.pyc
running install_egg_info
Writing C:\Users\sujan\AppData\Local\Programs\Python\Python37\Lib\site-packages\virtru_tdf3_python-1.0.10-py3.7.egg-info

Running the sample

  • Navigate to the sample directory and update virtru_sample.py script with your AppId

  • Run python3 virtru_sample.py to see how the files in the sample directory get encrypted and how to apply controls.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

virtru_sdk-2.3.3a1284-cp310-cp310-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10Windows x86-64

virtru_sdk-2.3.3a1284-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9Windows x86-64

virtru_sdk-2.3.3a1284-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

virtru_sdk-2.3.3a1284-cp39-cp39-macosx_10_14_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

virtru_sdk-2.3.3a1284-cp38-cp38-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.8Windows x86-64

virtru_sdk-2.3.3a1284-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

virtru_sdk-2.3.3a1284-cp38-cp38-macosx_10_14_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

virtru_sdk-2.3.3a1284-cp37-cp37m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.7mWindows x86-64

virtru_sdk-2.3.3a1284-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

virtru_sdk-2.3.3a1284-cp37-cp37m-macosx_10_14_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

virtru_sdk-2.3.3a1284-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

Details for the file virtru_sdk-2.3.3a1284-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b46cdc79b611a2319a1caf3b6924a9607e56afd0af08f42c067b81c3311dd64
MD5 d79c1c0441accc998c6dcdee924f7a9e
BLAKE2b-256 c4dfd240d43383ad42ebef35ee3815a305b6e0d0266612f5b5b42679cd440d92

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8741952804bb793b6cc7bc685588f39060ee2fffdda1181b2cd981f04b75bc29
MD5 32c50eb61dba7dde9adeb84b244f2244
BLAKE2b-256 e8f58d2329793f7d83b1ad6a8d4836ae2b00ea4d55dd9560d7a2301bde9ebe3f

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d5a4cfcde2da38e51b8ccdb608d15a321c439ee8839490e305f0132e3cdf7e32
MD5 f1cc24dd41af213f0718f40f923a2359
BLAKE2b-256 e325c2fb343a68033bac431fd722e634ae1418b50e0a18a97b30b21b5ba8076a

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 074934499462a398684b2d170e6cd756bf2b0c1a250539f56c3e034eb65cebb9
MD5 f7879c68fe2801cf5447377705530d8c
BLAKE2b-256 ec81c0007e0381d82fd73beef03d3ed8b627c6bad909f7582d67bd0afcf05300

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 215d3c6d3f3e292dafe716c99ebc4e132cad67b18783f9e4b387e15ba941743a
MD5 c763135415ed85f3d119b3e827a6a86c
BLAKE2b-256 f5b0f29080dcc8cae6a2c359f1f72eaf249a45b3006e8ba0d3a4c318467f45a1

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5ad485a22af13009e088c14b4657e153a1a2fd89a921e5c2ee52c798493070e9
MD5 06d64c807d3f551ec09776d08dc38cd7
BLAKE2b-256 c99b2332137889985f25f9c032c23851df209ce0f96f5605ba591591ea801a26

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 de4369b0b99f65884d1375a4035e7748464cd244ea9ebb3aeff5a895be01abc0
MD5 25998a5010477065fb6900f46abefa44
BLAKE2b-256 4336b3a1fed4971249e3301f1963749342642d34a6f142eeb6d641f7c51d5abc

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 91c6972253328fdeb53e74f19e795501abacaacbda173f1d45777870261d85a8
MD5 0910ff9a1f27b9352ab18a78716a00ad
BLAKE2b-256 a9616c16c5ed49c86228e5f80607b4c93e490ef6b6f835aef80b9949b7e23268

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0405da9ab3fbc65d297a76a2aa437052d43346e3d182b951ba06ad50136345b7
MD5 137ef495224cf0712166e97a6d69f851
BLAKE2b-256 db6553a941e1e1be775aaf98cf3c8c5660c4b4c2cb3eefd6f3ed0dfd5182805c

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.3a1284-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1f0418fad5ebd183549d5a24ad4a4d56c54dda4e68322821cee2e625234552c2
MD5 acb875e1cb6a1cfdf86a2b0225aa57b3
BLAKE2b-256 c1dfb8c00e0737f9e8eeaeb4a373c10d05ca374619aaf6710820cff0a0252ba2

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.3a1284-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.3.3a1284-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e9664cf6584f99565a5d51a2fdfc5eb74de10dbc77cc10554b10ec54870a2e47
MD5 181da85f09a6220d236f120ffad2ad5e
BLAKE2b-256 d5db1715217002131f316bee70fff75f2c38a476a33c678ea57b8bacc22837af

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