Skip to main content

Python Wrapper for Virtru SDK

Project description

Virtru TDF3 SDK


The following files are covered under the MIT license:


The following binaries / minified libraries are subject to use under the "Virtru Data Protection Subscription Agreement" found here:

  • virtru_tdf3_python.pyd

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.


  • 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 install. The Virtru SDK module will build and install the module to site-packages.
$ sudo python3 install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/virtru_tdf3_python
copying virtru_tdf3_python/ -> build/lib/virtru_tdf3_python
copying virtru_tdf3_python/ -> build/lib/virtru_tdf3_python
running install_lib
copying build/lib/virtru_tdf3_python/ -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
copying build/lib/virtru_tdf3_python/ -> /usr/local/lib/python3.7/site-packages/virtru_tdf3_python
byte-compiling /usr/local/lib/python3.7/site-packages/virtru_tdf3_python/ 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


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

  • Navigate to cd lib and run python install and will build and install the module to site-packages.
PS C:\Users\..\lib> python install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\virtru_tdf3_python
copying virtru_tdf3_python\ -> 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\ -> 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\ 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 script with your AppId

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

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

virtru_sdk-2.8.0-cp310-cp310-win_amd64.whl (2.8 MB view hashes)

Uploaded cp310

virtru_sdk-2.8.0-cp39-cp39-win_amd64.whl (2.8 MB view hashes)

Uploaded cp39

virtru_sdk-2.8.0-cp38-cp38-win_amd64.whl (2.8 MB view hashes)

Uploaded cp38

virtru_sdk-2.8.0-cp37-cp37m-win_amd64.whl (2.8 MB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page