--- id: clerk-backend-api version: "7.0.0" license: unclear license_treatment: unclear maintenance: active --- # clerk-backend-api — Python Client SDK for clerk.dev License: unclear · Maintenance: active · Downloads: 2.6M/mo ## 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 above — 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 pip install clerk-backend-api uv add clerk-backend-api 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="") 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_current - Install friction: low - Maintenance: active - Downloads: 2.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags clerk backend api python, user management sdk python, authentication api client, clerk rest api python, backend user management, clerk sdk python, identity management api, authentication, user-management, rest-api-client [View on SkillFed](https://skillfed.io/packages/clerk-backend-api) · [View on PyPI](https://pypi.org/project/clerk-backend-api/)