https://github.com/overcat/token-io
[In Development] The Python SDK for interacting with TokenOS.
https://github.com/overcat/token-io
token token-io
Last synced: 4 months ago
JSON representation
[In Development] The Python SDK for interacting with TokenOS.
- Host: GitHub
- URL: https://github.com/overcat/token-io
- Owner: overcat
- License: mit
- Created: 2019-02-22T02:57:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T12:55:11.000Z (almost 7 years ago)
- Last Synced: 2025-12-16T16:58:09.431Z (8 months ago)
- Topics: token, token-io
- Language: Python
- Homepage: https://pypi.org/project/tokenio
- Size: 261 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Token](https://token.io) Python SDK


**The SDK is still under development, might be unstable, use at your own risk.**
The Python SDK for interacting with [TokenOS](https://developer.token.io/).
## Requirements
Python 3.5+
## Installation
```shell
$ pip install tokenio
```
## Example
```python
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)
```