Skip to main content

Polymer Python SDK.

Project description


Package Installation

pip install polysdk


#!/usr/bin/env python

make sure to run
pip install polysdk to be able 
to import from the package polysdk below
from polysdk import PolyClient

visit where
you can generate client_token from 
"Developer API" option under user icon
client_token = "<your_client_token_here>"

# initializing client using client_token
client = PolyClient(api_token=client_token)

# masking key can be less than or equal to 16 characters
masking_key = "<your_masking_key_here>"

masking/unmasking text
input_data = "Hey!"
masked_data = client.mask_text(text=input_data, key=masking_key)

unmasked_data = client.unmask_text(text=masked_data.get_text(), key=masking_key)

masking/unmasking file
fmd = client.mask_text_file(file_path="<your_file_path>", key=masking_key)

fumd = client.unmask_text_file(file_path="<your_file_path>", key=masking_key)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for polysdk, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size polysdk-0.0.8-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size polysdk-0.0.8.tar.gz (2.7 kB) File type Source Python version None 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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page