descope
Descope Python SDK
Decision gist · record as of 2026-08-14
Yes. Active maintenance, low install friction, no known vulnerabilities, permissive MIT license, and broad Python version support (3.9–3.14) make it a safe choice. Install it if you are building a backend service that needs to integrate Descope's authentication and user management APIs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires DESCOPE_PROJECT_ID environment variable or explicit project_id parameter; optional DESCOPE_AUTH_MANAGEMENT_KEY for disabled authentication APIs.
- Low install friction with a pure Python wheel.
- Active maintenance—released 4 days ago with recent commits.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-08-10 (4 days) · last repo commit 2026-08-14 · 73 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,893,477 downloads/mo, #3,457 on PyPI
Alternatives
Verify before relying
pip install descope
from descope import DescopeClient, DeliveryMethod
descope_client = DescopeClient(project_id="your-project-id")
masked_address = descope_client.otp.sign_up(
method=DeliveryMethod.EMAIL,
login_id="user@example.com",
user={"name": "User Name"}
)- Whether Flask decorator support requires separate installation or is bundled by default.
- Rate limiting specifics and quota enforcement behavior.
- Whether the SDK handles token refresh automatically or requires manual management.
What it is and what it does
Descope is a Python SDK that wraps Descope's backend authentication and user management APIs. It handles multiple authentication flows—OTP, magic links, enchanted links, OAuth, SAML/OIDC SSO, TOTP, and password-based auth—plus session validation, role and permission checks, tenant management, and audit logging. The SDK depends on httpx for HTTP calls, pyjwt for token handling, certifi for TLS, and email-validator for address validation.
You initialize it with a project ID and optional management key, then call methods like `otp.sign_up()`, `magiclink.verify()`, or `descope_client.manage_users.create()` to drive authentication workflows or administer users and permissions. It's designed for backend services that need to integrate Descope's hosted authentication without building HTTP calls directly.
Use it for
- Add passwordless OTP or magic-link sign-up/sign-in to a Python web service.
- Validate session JWTs and check user roles/permissions on incoming requests.
- Manage users, tenants, and access keys programmatically from your backend.
- Integrate SAML or OIDC SSO into a Python application via Descope.
- Implement cross-device authentication flows using enchanted links.
- Query audit logs and manage fine-grained authorization policies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active maintenance, low install friction, no known vulnerabilities, permissive MIT license, and broad Python version support (3.9–3.14) make it a safe choice. Install it if you are building a backend service that needs to integrate Descope's authentication and user management APIs.
Install
descope on PyPI
Before you install
Low install friction with a pure Python wheel. Active maintenance—released 4 days ago with recent commits. Supports current Python versions (3.9 through 3.14).
Requires DESCOPE_PROJECT_ID environment variable or explicit project_id parameter; optional DESCOPE_AUTH_MANAGEMENT_KEY for disabled authentication APIs.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install descope
from descope import DescopeClient, DeliveryMethod
descope_client = DescopeClient(project_id="your-project-id")
masked_address = descope_client.otp.sign_up(
method=DeliveryMethod.EMAIL,
login_id="user@example.com",
user={"name": "User Name"}
)
Verify before relying
- Whether Flask decorator support requires separate installation or is bundled by default.
- Rate limiting specifics and quota enforcement behavior.
- Whether the SDK handles token refresh automatically or requires manual management.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packageshttpxcertifipyjwtemail-validator |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,893,477 / month, #3,457 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: descope-2.11.2-py3-none-any.whl
Tags
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 › “otp and magic link”
- descopeDescope SDK provides Python backend access to Descope's user…
- django-magiclinkAdds passwordless email-based authentication to Django applications…
- supabase-authA Python client library for Supabase Auth that handles user…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
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.
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.
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.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
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…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also stytch · python3-saml · social-auth-core · supabase-auth · djangosaml2idp2 · authy · django-magiclink · social-auth-app-django · django-auth-adfs · flask-oidc