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_text_file(file_path="<your_file_path>", key=masking_key)
fmd.get_text()

fumd = client.unmask_text_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.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file polysdk-0.0.8.tar.gz.

File metadata

  • Download URL: polysdk-0.0.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

File hashes

Hashes for polysdk-0.0.8.tar.gz
Algorithm Hash digest
SHA256 89c0560b9f17ac52cff406281ed6b0034110edd73ec3560c980b8735c6e11cb7
MD5 270b66e457913e11609fb35aaed51389
BLAKE2b-256 15686190da24be0a56f58737afb6b67de228d22ff6ba8f0a15c84834d2b0f070

See more details on using hashes here.

File details

Details for the file polysdk-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: polysdk-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

File hashes

Hashes for polysdk-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a23433e6c9a271b141c94c843fa299253324e7534120ed6ee8ba9a75b5596ea9
MD5 3bfbc0bf7f27027cc9b4796874545465
BLAKE2b-256 4b18c44615d721eef0200512872adc59741df0dfe4a0ecedd7ea48230af243d4

See more details on using hashes here.

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