Skip to main content

Python Wrapper for TDF3 SDK

Project description

TDF3 SDK

The TDF3 Python SDK allows developers to easily create and manage encrypted Trusted Data Format (TDF) objects and interact with Key Access and Entity Attribute Services (KAS, EAS).

Installation

Upgrade pip3 to the latest version and run

pip3 install tdf3sdk

Authentication

Two different methods:

  1. Provide EAS url and user id (user should be registered on EAS):
client = TDF3Client(eas_url, user_id)
  1. Provide EAS url, user id, client key (absolute file path), client cetificate (absolute file path) and root CA (absolute file path)
client = TDF3Client(eas_url, user_id, filepath_client_key, filepath_client_cert, filepath_rootCA)

Create Encrypted TDF Object (minimal example)

from tdf3sdk import TDF3Client

client = TDF3Client(eas_url, user_id)
unprotected_file = "sensitive.txt"
protected_file = unprotected_file + ".tdf.html"

client.encrypt_file(unprotected_file, protected_file)

Terms of Service Privacy Policy

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.

Files for tdf3sdk, version 1.0.6
Filename, size File type Python version Upload date Hashes
Filename, size tdf3sdk-1.0.6-cp36-cp36m-manylinux2010_x86_64.whl (8.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp37-cp37m-linux_armv7l.whl (8.5 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp37-cp37m-macosx_10_14_x86_64.whl (3.2 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp37-cp37m-manylinux2010_x86_64.whl (8.3 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp37-cp37m-win_amd64.whl (2.1 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp38-cp38-macosx_10_14_x86_64.whl (3.2 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp38-cp38-manylinux2010_x86_64.whl (8.3 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp38-cp38-win_amd64.whl (2.1 MB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size tdf3sdk-1.0.6-cp39-cp39-macosx_10_14_x86_64.whl (3.2 MB) File type Wheel Python version cp39 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page