Python Wrapper for OpenTDF SDK
Project description
OpenTDF SDK
The OpenTDF Python SDK allows developers to easily create and manage encrypted Trusted Data Format (TDF) objects and interact with Key Access and Attribute Provider (KAS, AP).
Installation
Upgrade pip3 to the latest version and run
pip3 install opentdf
Authentication
OpenTDF has chosen Keycloak as its reference implementation IdP(https://github.com/virtru/opentdf-aux/tree/main/documentation/quickstart).
Create Encrypted TDF Object (minimal example)
from opentdf import TDFClient
oidc_creds = OIDCCredentials()
oidc_creds.set_client_credentials(client_id = "tdf-client",
client_secret = "123-456",
organization_name = "tdf",
oidc_endpoint = "https://localhost:8443")
client = TDFClient(oidc_credentials = oidc_creds, kas_url = 'http://localhost:8080/kas')
client.encrypt_file("sensitive.txt", "sensitive.txt.tdf")
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
Close
Hashes for opentdf-0.1.0a1487-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97fe23f9bc6d20f5abd241cc18518713cfc6d6bb5503b029ff0d70ea333ed027 |
|
MD5 | 3c8dce9dd8a54fed3e543f7196a628ac |
|
BLAKE2b-256 | 312aa253283b4719c31284d36b7ffdccda8d370aca75ee2aed8010bf373e9e9b |
Close
Hashes for opentdf-0.1.0a1487-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c99355d55d930a5702320664f7042b5c52fb56a3c7b3706daa75086a2e4b570 |
|
MD5 | 7d9d7f56374843df8bf21ea35225168f |
|
BLAKE2b-256 | 2d46d7ce186077e67d3ea14b5d9d75b5d46856603ed7c50f3da18e7396e12d4e |
Close
Hashes for opentdf-0.1.0a1487-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a896943507b28cc34de535c3c6159c5b9f2d6eda443ec55b82c1864ed63bfdef |
|
MD5 | dded8bd290903acdc26ff0afb4f01ef1 |
|
BLAKE2b-256 | 56faadc4b2e390eb6beb338b4cbbafdaf9b406b95c2179911bfca3f3a1fd6559 |
Close
Hashes for opentdf-0.1.0a1487-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26762fbaf64fb53353339a95dbdbc4803c8b5b39ad2c37a7dd059ad53b6def2b |
|
MD5 | 142f085c0bce419e619b745aa2ed83f6 |
|
BLAKE2b-256 | b83e77d59f589b15b1f5c81892e14c0a4e1cc31907722ccd8d1ab89e7ab7b838 |
Close
Hashes for opentdf-0.1.0a1487-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9314f5b60e62baaa0201ca4ab10e38b8674808476b37659d90c0569a40a51f |
|
MD5 | 247005a152781ad65d1d81c5a10d22eb |
|
BLAKE2b-256 | bf4e7080f8cea47fa6687f3c0d7a727daae101b321b4956d1ba5c1270c5a76b3 |
Close
Hashes for opentdf-0.1.0a1487-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0d11b6690d2f1b6182d6500e0df4be1e43075b7992e50170ae453da4fa1bc3 |
|
MD5 | 30fbe5de1ec89237e79b04d86bf68be0 |
|
BLAKE2b-256 | eecc7f8f420a7ee0df688a346bfa368f065f4f7f05117bd7e400f3dc3ab457df |
Close
Hashes for opentdf-0.1.0a1487-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d576c9d4ef7ba9809812761cc88fe07a007cf4c4ab4d3074ec9e269766bf5b |
|
MD5 | e7c59b5c8114b3e62a118a85972c85f7 |
|
BLAKE2b-256 | 699e412251bb4a83f2f44449aee274fbc3e4213d1b540d701a99620ab22d7fd5 |
Close
Hashes for opentdf-0.1.0a1487-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3665193f4ab306b1f26658be2428a525fffc6d51c2cf4a2a8fd30934cfd257b3 |
|
MD5 | 8f9618c2d30b555f5a238bcb3682df26 |
|
BLAKE2b-256 | c1a0f8a99a9971bc74ac2da5a929003c3d64b84c371a89581147e38e4a15e497 |
Close
Hashes for opentdf-0.1.0a1487-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f402f83145ae8d4bf5fd6f7dd7ee2c94f0c3582b4854dd9c6f2a220de47f2e99 |
|
MD5 | 7b6789be2b437adddb3cf27816c97adc |
|
BLAKE2b-256 | 9ce92151b4e825ea22c9d947ce5967d8f7dd5b8ea7b97439ab5925252f353f3f |