Reference¶
Here's the reference, or code API: every public class and function, by tool, with its parameters and what it raises. The Tutorial - User Guide tells how to use them, and the examples show them in complete apps.
-
Cache,FastAPICache, the@cachedecorator, key builders and coders. Infastapi_alcazaba.response_cache. -
Where entries and state live: in memory, Redis, Valkey, GLIDE, memcached, DynamoDB, two levels. In
fastapi_alcazaba.backends. -
The seven strategies, with their parameters and pages. In
fastapi_alcazaba.pagination. -
Requests per window and requests at a time, per client or shared, across processes. In
fastapi_alcazaba.rate_limit. -
The middleware that replays the first response to a retried request. In
fastapi_alcazaba.idempotency. -
FastAPIAuth,Strategy, and the JWT, bearer, OAuth2, SAML and session strategies. Infastapi_alcazaba.auth. -
Passwords, API keys stored as digests, revoked tokens, one-time codes, the second factor (TOTP) and passkeys (WebAuthn). In
fastapi_alcazaba.auth. -
A Casbin, Cedar or Open Policy Agent policy per route or for every request:
FastAPIAuthz,AuthzMiddleware,CedarEnforcerandOPAEnforcer. Infastapi_alcazaba.authz. -
Sessions, CSRF and security headers
What a cookie-based app needs: server-side sessions, CSRF protection, headers and body limits. In
fastapi_alcazaba.security. -
FastAPIAccounting, its quotas, usage reports and records, and their sinks. Infastapi_alcazaba.accounting. -
FastAPIAudit, its entries and events, sinks, and the trail's verification. Infastapi_alcazaba.audit. -
The type of a file from its bytes, its size and pixels, safe file names, and signed URLs for object storage. In
fastapi_alcazaba.uploads. -
FastAPIMail, which builds messages nothing can add headers to, andSMTPSender. Infastapi_alcazaba.mail. -
Standard Webhooks in and out, and httpx transports with deadlines, breakers and SSRF checks. In
fastapi_alcazaba.webhooksandfastapi_alcazaba.outbound. -
Problem details, request IDs, request deadlines, health checks and logs as JSON. In
fastapi_alcazaba.observability. -
Scheduled jobs, the task queue, leader election and locks shared by every process, broadcast and the outbox. In
fastapi_alcazaba.background. -
Circuit breakers, maintenance mode and feature flags, switched at runtime. In
fastapi_alcazaba.operations. -
Integrity, resilience and errors
What signs and encrypts entries, RFC 8785 canonical JSON, the backends' circuit breaker, and the exceptions. In
fastapi_alcazaba.core.