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.4a1289-cp310-cp310-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10Windows x86-64

virtru_sdk-2.3.4a1289-cp39-cp39-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.9Windows x86-64

virtru_sdk-2.3.4a1289-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

virtru_sdk-2.3.4a1289-cp39-cp39-macosx_10_14_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

virtru_sdk-2.3.4a1289-cp38-cp38-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.8Windows x86-64

virtru_sdk-2.3.4a1289-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

virtru_sdk-2.3.4a1289-cp38-cp38-macosx_10_14_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

virtru_sdk-2.3.4a1289-cp37-cp37m-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.7mWindows x86-64

virtru_sdk-2.3.4a1289-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

virtru_sdk-2.3.4a1289-cp37-cp37m-macosx_10_14_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

virtru_sdk-2.3.4a1289-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

Details for the file virtru_sdk-2.3.4a1289-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-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.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3befe0104c6b492cde1c2254f94d89138e77e3426df03b4f8290b0d210b0c918
MD5 078fcef5f539234aebdd0b43d50191f6
BLAKE2b-256 b6abf78878ed68670db4c97e49b39802e3067d3a0bb55a9cac12f071eb405500

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-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.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9173c88762f409fde83dd6f57e1069e6ccc86884596e3d93756aa85bbe2e0e99
MD5 8a782146c09e3b5a459bec1ce15ccdac
BLAKE2b-256 f474020c6c3754621962f794da201e39488bbb6ab29adb51bfa4014aca05e3c8

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 49b6f4592a3984ab1bce3c845778dc35fa4d256214a440f4d1af980b42b76303
MD5 deaf1af4ae5d4af197a983ce68782ff5
BLAKE2b-256 b3d0cd5fc8a7ddca1f4710f100c1af373bf89c079211c4993f46b3ccf0078642

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5b58a03ab05c0aba3eef92803ab6eb8edda13f8c2865b8bdd332b72b27c47fae
MD5 db36394c7e931bff545bcd67bcfbf33c
BLAKE2b-256 aa2de4cc864e8cd13c7e27698760d92e77dfa209da483ed864a8a8e87e9a3e41

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-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.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f21dbe09aa79dc4cf4af1e8e9302b43502560b59eef3075c976dcb9acb77e63f
MD5 0818f30cd10d069fc15e0d7b2b4545aa
BLAKE2b-256 684c94a6e38d5330f671212a8a8b1e52cc4abf845f362703797517126efbe364

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5128ede08ab2f5dd0dc9f59adfcde0259651f8477973d5f4ed34d30954d033c0
MD5 19c3fcaf26115d6d30e26ebda2798823
BLAKE2b-256 59a5c47f71f9a65905fac2951aa3fa222aeaa8c8b2baa4d0cf5008458ec05a90

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b9ed1cf5c0acaa112f47cd75c3c77bc4d9f89e5889d4ce553837eaa9397c4ca0
MD5 915b2f3ad5c8b56383f7f4b52d4089eb
BLAKE2b-256 f85f6ff408fced5ce498ae4e60076f15ea23f5e1ab690d57d2c09c8b87987fd5

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-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.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d6ed5a591f6aa853f9319f173912ab987bd855aaeaf6ab91823118fc74c9ce6a
MD5 3641e5316fccb7f88e0e4752d3effff8
BLAKE2b-256 b50344cc5135ca355cda62f5e62f88d1a3d08fa872f63d26116e924e6e19f77e

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b00cca07eac1f05cc836a29180da51489474071c97f51a1e5cdf9a461670a0f7
MD5 5d1cac7ef69146a6636b24237de25f6c
BLAKE2b-256 0ca80d6c5f1afc2a3299a111ea7ac9bf7dd545062d9d8b075d52959768beca2e

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e8a9dc4ff532cdd2808b0fb3292cfc8074cc4deae381c69715fb93819201286e
MD5 35b00354b549c6eb3b25e14c258c51cb
BLAKE2b-256 ed5366784853d918c3266ed6aa20c4c76ef75ca7c34eeed1e3f4aca396571197

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.3.4a1289-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

  • Download URL: virtru_sdk-2.3.4a1289-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for virtru_sdk-2.3.4a1289-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e04d47610fe875e84de29077b697ea1f0b4381161c87d3adfbd543ee48e511c7
MD5 0d7a7cf03055bc241d4fd174047c0368
BLAKE2b-256 e1acbf39afb85b0c98d69e57c8a443db2437c2bc07c55cb0d8d5cc1e35688bfa

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