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.8.0b1335-cp311-cp311-macosx_10_14_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11macOS 10.14+ x86-64

virtru_sdk-2.8.0b1335-cp310-cp310-macosx_10_14_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64

virtru_sdk-2.8.0b1335-cp39-cp39-macosx_10_14_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.9macOS 10.14+ x86-64

virtru_sdk-2.8.0b1335-cp38-cp38-macosx_10_14_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

virtru_sdk-2.8.0b1335-cp37-cp37m-macosx_10_14_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

File details

Details for the file virtru_sdk-2.8.0b1335-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.8.0b1335-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8adacacd9180c81e8bbec756c7b03d7f9d58ffc674714c0638e7123704471b50
MD5 7d55760bf3cd3d1b7b2f2d216419c86c
BLAKE2b-256 88e9052b4955420537aefe14652dd27f8349946547772f8786ef433e5954f9f4

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.8.0b1335-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.8.0b1335-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a626f821430fcb830376eb66b3462b8d74b4e6bc097ba4b5b094a64856a27446
MD5 332c6aecda73d66f8ea660fee7b029e4
BLAKE2b-256 8ea78629425d34bf58799460407c99e6ec1ae8657c6a30210f7cd224938c0f47

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.8.0b1335-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.8.0b1335-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e6633d1d712eb3d63352101c2b3b06d76735d51b77f9edfdd4267cafc5984e65
MD5 7b642ba604a91a001290fb7a667a26e5
BLAKE2b-256 f9d6ab018d21946f06e83b3395c85894049efd333f03fcd69e31a41aee913547

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.8.0b1335-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.8.0b1335-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 9b50f7dc5a29a018cc3c4c121b8724200597926dfd813d57a99babf60d36e986
MD5 daefcc855b927247f00dd73467beb8b1
BLAKE2b-256 a0a9d6f63f80e614e8835cd487baab05560930a3a5e6a05833fdb600b9be2132

See more details on using hashes here.

File details

Details for the file virtru_sdk-2.8.0b1335-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for virtru_sdk-2.8.0b1335-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 92e888a625b80800bb0faee5067b69d3850b9a98193970aa4ae3929a31b506ff
MD5 6713ee9e2adf382609f6a56ba586224d
BLAKE2b-256 e84eabd71180aa81e0ecac6e3e99654bce587a3fe198d65787ebf8d03c13e138

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