skillfed

clerk-backend-api

Python Client SDK for clerk.dev

clerk-backend-api v7.0.0 2.6M downloads/30d#2,966 on PyPI184
License unclear Active released

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-api

uv

uv add clerk-backend-api

poetry

poetry add clerk-backend-api

Installing 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

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

clerk backend api pythonuser management sdk pythonauthentication api clientclerk rest api pythonbackend user managementclerk sdk pythonidentity management api
authenticationuser-managementrest-api-client

More WWW/HTTP packages