Skip to main content

airclerk

Air + Clerk for user management.

Environment Variables

AirClerk is driven by the following environment variables:

Variable Type Required Default Description
CLERK_PUBLISHABLE_KEY str Yes - Clerk publishable API key for client-side authentication
CLERK_SECRET_KEY str Yes - Clerk secret API key for server-side operations
CLERK_JS_SRC str No https://cdn.jsdelivr.net/npm/@clerk/clerk-js@5/dist/clerk.browser.js CDN URL for the Clerk JavaScript library
CLERK_LOGIN_ROUTE str No /login URL path for the login page
CLERK_LOGOUT_ROUTE str No /logout URL path for the logout endpoint
CLERK_LOGIN_REDIRECT_ROUTE str No / Where the user is redirected to after login
CLERK_LOGOUT_REDIRECT_ROUTE str No / Where the user is redirected to after logout

You must set the required environment variables for AirClerk to function properly. Optional variables can be customized as needed.

Usage

To use AirClerk in your Air application, include the middleware and router as shown below:

import air
import airclerk

app = air.Air()
app.add_middleware(air.SessionMiddleware, secret_key="change-me")
app.include_router(airclerk.router)

When you run a development OAuth-powered Air application with AirClerk, don't use localhost as your domain, as Clerk does not support it. Use 127.0.0.1 instead.

Release files for AirClerk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AirClerk 0.2.0
File Size Uploaded
airclerk-0.2.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AirClerk 0.2.0
File Interpreter ABI Platform
airclerk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / airclerk-0.2.0.tar.gz

Download URL airclerk-0.2.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2eed48c1d3f1e35502c9b956781af6105329d7c7503eb24f5571db5b44af3420
BLAKE2b-256 checksum
How to use checksums
fe40497ff4da5cfa9d3046de003d3c4e96c41d9b4cbd1c5472aac2c62fe12929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / airclerk-0.2.0-py3-none-any.whl

Download URL airclerk-0.2.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2916f27d80a504513df9e7a647ca809cfa59c43a7834116bd730e5d84d2cbbb8
BLAKE2b-256 checksum
How to use checksums
33edbf5e0bfeac168ff161901a517b56e0a132e36d1fc3e987a88eaa901a0564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page