Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Keystok Python Client

Project description

This tool provides shell access to Keystok from Linux, OS X and other UNIX-like operating systems. It can be used e.g. inside Docker containers to access Keystok keys.


To install the Python client, run this in your shell:

pip install keystok

You can do it inside a virtualenv if needed.


Run “keystok -h” for help on the available commands and options.

Specifying the access token

To configure the access token, first run this in the shell:

export KEYSTOK_ACCESS_TOKEN=<access token from>

Alternatively you can also specify the token in each command using:

keystok -a <token>

In Dockerfiles you might want to use the convenient ENV directive:

ENV KEYSTOK_ACCESS_TOKEN <access token from>

Or to keep it out of the Dockerfile, specify it with docker run instead:

docker run -e KEYSTOK_ACCESS_TOKEN=<access token>

It’s also possible to place the access token in one of these files:

./.keystok/access_token (under current directory) ~/.keystok/access_token (under home directory)


To list all keys associated with the application:

keystok ls

To retrieve a key and output it into stdout:

keystok get <keyid>

To automatically retrieve ssh keys and generate a ssh configuration:

keystok [-f] sshautoconfig (the -f option will force-overwrite any existing SSH keys)

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
keystok-0.1.6.tar.gz (5.6 kB) Copy SHA256 hash SHA256 Source None Jun 16, 2014

Supported by

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