Skip to main content

Polymer Python SDK.

Project description

polysdk

Package Installation

pip install polysdk

Usage

#!/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 https://v1.polymerapp.io/ 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 a@b.com!"
masked_data = client.mask_text(text=input_data, key=masking_key)
masked_data.get_text()

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


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

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

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.3.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

polysdk-0.0.3-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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