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.

Source Distribution

polysdk-0.0.8.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

polysdk-0.0.8-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

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