mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
- Tests for get_user, list_users, create_user, update_user, delete_user - Tests for get_user_by_api_key two-step lookup - Tests for sentinel pattern in update_user (None vs not-provided) - Both sync and async facades covered with respx mocks
Stack Auth Python SDK
Python SDK for Stack Auth - authentication, user management, and team management for your Python backend.
Installation
pip install stack-auth
Quick Start
from stack_auth import StackServerApp
app = StackServerApp(
project_id="your-project-id",
secret_server_key="your-secret-key",
)
# Verify a request's access token
user = await app.authenticate_request(request)
Requirements
- Python 3.10+