$npx skillfedfor your agent

supertokens-python

SuperTokens SDK for Python

With conditionsPyPI Python ModulesReleased May 2026277.2K downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — supertokens_python-0.31.3-py3-none-any.whl
v0.31.3 · released 2026-05-06 · Python >=3.8 · 16 runtime deps: Deprecated, PyJWT, aiosmtplib, asgiref, httpx, packaging, phonenumbers, pkce

Yes, if you are building a Python web application and want to outsource authentication to SuperTokens. The SDK is actively maintained, has low install friction, uses a permissive license, and integrates with popular frameworks. Install it only if you have a SuperTokens core service running or plan to use SuperTokens' managed offering; the SDK alone cannot authenticate users without that backend.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a running SuperTokens core service accessible at the configured api_domain; the SDK acts as a client to that service.
  • Low install friction with a pure-Python wheel.
  • Active maintenance with a recent commit on 2026-07-24 and a release 100 days ago.

License · maintenance · safety

Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions—suitable for most production and proprietary projects.

last release 2026-05-06 (100 days) · last repo commit 2026-07-24 · 148 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 277,237 downloads/mo, #8,151 on PyPI

Verify before relying

pip install supertokens-python

from supertokens_python import init, InputAppInfo

init(
    app_info=InputAppInfo(
        app_name="MyApp",
        api_domain="http://localhost:api",
        website_domain="http://localhost:web"
    ),
    framework="flask",
    recipe_list=[...]
)
  • Exact supported framework integrations (Flask, FastAPI, Django, etc.) and their configuration requirements.
  • Whether token refresh, revocation, and session expiry are handled automatically or require explicit code.
  • Performance characteristics under high concurrency or with many simultaneous sessions.
  • Specific MFA methods supported (TOTP, SMS, email) and their setup requirements.
Same gist for agents: .md · .json

What it is and what it does

SuperTokens Python SDK is a client library that connects your Python API to the SuperTokens authentication backend service. It provides session management, user authentication flows, and multi-factor authentication capabilities by delegating authentication logic to a separate SuperTokens core service. The SDK handles token generation, validation, and session lifecycle management, and integrates with common Python web frameworks.

You install it alongside your API code, configure it with your SuperTokens service endpoint and application details, and then use its recipes and middleware to protect routes and manage user sessions. It depends on cryptographic libraries (pycryptodome, PyJWT), email delivery (aiosmtplib, twilio), phone number handling (phonenumbers), and standard utilities like pydantic and httpx for HTTP communication.

Use it for

  • Add session-based authentication to a Python web application without building auth from scratch.
  • Implement passwordless login flows in a Python API using SuperTokens as the auth backend.
  • Manage multi-factor authentication for user accounts in a Python web service.
  • Centralize session and token management across multiple Python microservices via a shared SuperTokens core.
  • Integrate phone verification and SMS delivery into user signup or account recovery workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building a Python web application and want to outsource authentication to SuperTokens.

The SDK is actively maintained, has low install friction, uses a permissive license, and integrates with popular frameworks. Install it only if you have a SuperTokens core service running or plan to use SuperTokens' managed offering; the SDK alone cannot authenticate users without that backend.

Install

supertokens-python on PyPI

Before you install

Low install friction with a pure-Python wheel. Active maintenance with a recent commit on 2026-07-24 and a release 100 days ago. Depends on 16 runtime packages including cryptographic and email libraries; all are standard ecosystem choices.

Requires a running SuperTokens core service accessible at the configured api_domain; the SDK acts as a client to that service.

License in practice

Licensed under Apache 2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions—suitable for most production and proprietary projects.

Quickstart

pip install supertokens-python

from supertokens_python import init, InputAppInfo

init(
    app_info=InputAppInfo(
        app_name="MyApp",
        api_domain="http://localhost:api",
        website_domain="http://localhost:web"
    ),
    framework="flask",
    recipe_list=[...]
)

Verify before relying

  • Exact supported framework integrations (Flask, FastAPI, Django, etc.) and their configuration requirements.
  • Whether token refresh, revocation, and session expiry are handled automatically or require explicit code.
  • Performance characteristics under high concurrency or with many simultaneous sessions.
  • Specific MFA methods supported (TOTP, SMS, email) and their setup requirements.

Package facts

LicenseApache 2.0 permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
16 packages
DeprecatedPyJWTaiosmtplibasgirefhttpxpackagingphonenumberspkcepycryptodomepydanticpyotppython-dateutilsniffiotldextracttwiliotyping_extensions
MaintenanceActively maintained 100 days since the last release
Last repo commit
First released
Downloads277,237 / month, #8,151 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: SessionTopic :: Software Development :: Libraries :: Python Modules

Evidence: supertokens_python-0.31.3-py3-none-any.whl

Tags

Capabilities
session management pythonauthentication sdk pythonsupertokens integrationuser auth apimfa python libraryjwt session handlingpasswordless authentication
Topics
authenticationsession-managementmfa

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “supertokens integration”

  • supertokens-pythonInterfaces a Python API with the SuperTokens authentication service…
  • pytest-integrationA pytest plugin that organizes tests into unit, integration, and slow…
  • langchain-testsProvides standard test base classes and fixtures for validating…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also supabase-auth · dj-rest-auth · Flask-Security · drf-jwt · duo-client · djangorestframework-jwt · gotrue · djangorestframework-simplejwt · Flask-Security-Too · boxsdk