Skip to main content

Python bindings for UserKit: user login and account management

Project description

Python UserKit


A UserKit client library for Python 3.


You can use pip to install userkit:

pip install userkit

Or download, then copy or symlink the userkit-python/userkit sub-directory into your project.


For full examples and docs checkout UserKit documentation.

Example usage

import userkit
uk = userkit.UserKit("<YOUR_APP_SECRET_KEY>")

# Create a user
user = uk.users.create_user(email="",

# Fetch a user
user = uk.users.get_user("<USER_ID>")

# Update a user
user = uk.users.update_user("<USER_ID>", name="Jane Smith")

# Login a user
session = uk.users.login_user("", "secretpass")

# Fetch a logged in user by their session-token
user = uk.users.get_current_user(session.token)
if user:
    print("User is logged in:")
    print("No logged in user, invalid session token")


To run tests you need to create a test-app.

Set the USERKIT_KEY environment variable to your test app key, then run python's unittest:

USERKIT_KEY=<YOUR_APP_SECRET_KEY> python -m unittest discover

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 userkit, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size userkit-1.0.0-py3-none-any.whl (11.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size userkit-1.0.0.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page