Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python SDK for interacting with the Token System

Project description

Token Python SDK

PyPI

The SDK is still under development, might be unstable, use at your own risk.

The Python SDK for interacting with TokenOS.

Requirements

Python 3.5+

Installation

$ pip install tokenio

Example

from tokenio import TokenClient
from tokenio.config import SandboxConfig
from tokenio.security.engines.memorycryptoengine import MemoryCryptoEngine
from tokenio.proto.alias_pb2 import Alias

dev_key = '4qY7lqQw8NOl9gng0ZHgT4xdiDqxqoGVutuZwrUYQsI'
config = SandboxConfig(dev_key=dev_key, crypto_engine=MemoryCryptoEngine)
client = TokenClient(config)

alias = Alias(type=Alias.EMAIL, value='your-email-address@example.com')
member = client.create_member(alias)
keys = member.get_keys()
print(keys)

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 TokenIO, version 0.0.1a3
Filename, size File type Python version Upload date Hashes
Filename, size TokenIO-0.0.1a3-py3-none-any.whl (133.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size TokenIO-0.0.1a3.tar.gz (96.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page