clerk-backend-api
Python Client SDK for clerk.dev
What it is and what it does
Clerk Backend API is a Python SDK that wraps Clerk's REST API for server-side user and identity management. It provides synchronous and asynchronous interfaces to interact with Clerk's backend, allowing you to programmatically manage users, email addresses, authentication tokens, and related resources from your Python backend application. The SDK handles HTTP communication via httpx, request signing with pyjwt and cryptography, and response parsing with pydantic, abstracting away the low-level REST details.
The package is designed for backend servers (Django, Flask, or custom Python web frameworks) that need to authenticate requests from Clerk-enabled frontends or directly manage user data. It supports bearer token authentication and includes utilities to verify session and machine tokens from incoming requests. The SDK is actively maintained, supports modern Python versions (3.10–3.14), and carries no known security vulnerabilities.
Use it for:
- Authenticate HTTP requests from a Clerk frontend SDK in a Python backend to verify user session tokens.
- Programmatically retrieve or update user email addresses and other identity attributes from a backend service.
- Verify machine tokens or OAuth access tokens in server-to-server communication.
- Build custom user management workflows that integrate Clerk authentication with existing Python web frameworks.
- Manage user data and authentication state as part of a larger backend system or microservice.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client SDK for the Clerk Backend API, enabling backend servers to programmatically manage users, authentication, and related resources through REST endpoints.
Yes, with a caveat on license clarity. The package is actively maintained, has low install friction, supports current Python versions, and carries no known vulnerabilities. However, the license treatment is unclear—verify the actual license terms before committing to production use, especially in proprietary or restricted-license contexts. For open-source or permissive-license projects, install without hesitation.
Install
clerk-backend-api on PyPI
pip
pip install clerk-backend-apiuv
uv add clerk-backend-apipoetry
poetry add clerk-backend-apiInstalling clerk-backend-api
Before you install
Low install friction with five well-maintained runtime dependencies (cryptography, httpcore, httpx, pydantic, pyjwt). Package is actively maintained with a release 3 days old and recent commits; supports Python 3.10 through 3.14.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before use in proprietary or restricted contexts.
Quickstart
pip install clerk-backend-api
from clerk_backend_api import Clerk
with Clerk(bearer_auth="<YOUR_BEARER_TOKEN_HERE>") as clerk:
res = clerk.email_addresses.get(email_address_id="email_address_id_example")
print(res)
Requires Python 3.10 or later. Bearer token authentication (CLERK_SECRET_KEY) must be provided and available at runtime.
Verify before relying
- Exact scope and completeness of available resources/operations beyond email_addresses (description excerpt cuts off mid-section)
- Whether async/await support is production-ready or still experimental
- Rate limiting, retry behavior, and timeout defaults for production workloads
- Data residency or compliance certifications (GDPR, SOC 2, etc.) for user data handled by the SDK
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — cryptography, httpcore, httpx, pydantic, pyjwt |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,622,031/month — #2,966 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: clerk_backend_api-7.0.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
Unified-python-sdkPython SDK client for the Unified.to API,…
unclear · top 15,000 on PyPI
mistralaiPython client SDK for the Mistral AI API,…
unclear · top 1,000 on PyPI
polar-sdkPython SDK for interacting with the Polar API,…
permissive · top 15,000 on PyPI
komboType-safe Python SDK for the Kombo Unified API,…
unclear · top 15,000 on PyPI
vonage-accountProvides Python bindings for Vonage's Account…
permissive · top 15,000 on PyPI
pdmPDM is a modern Python package and dependency…
unclear · top 5,000 on PyPI
oneloginOfficial Python SDK for OneLogin's API,…
unclear · top 15,000 on PyPI
boxsdkProvides a Python client library for…
permissive · top 5,000 on PyPI
stripeProvides Python bindings to the Stripe API,…
permissive · top 1,000 on PyPI
orq-ai-sdkA type-safe Python SDK for the orq.ai API,…
unclear · top 15,000 on PyPI