FastAPI vocabulary: Freelancer level
11 FastAPI terms at the Freelancer level, each with a short definition and a link to its full page.
Updated
- Custom Validator
- Your own Pydantic validation rule for a field or the whole model.
- Dependency Override
- Replacing a real dependency with a fake one in tests.
- Dependency with yield
- A dependency that yields a value and then runs cleanup after the response.
- JWT in FastAPI
- A signed token carrying user info, created and checked with a library like PyJWT.
- Lifespan Events
- Setup and cleanup code that runs when the app starts and stops.
- OAuth2 Password Flow
- A login flow that trades a username and password for a token.
- RequestValidationError
- The exception FastAPI raises before a route runs when a request breaks its model's rules; a handler for it can reshape the 422 answer.
- Security Dependencies
- Dependencies that check credentials and return the current user.
- slowapi
- A package that adds rate limits to FastAPI routes, such as 5 sign-in tries a minute from one address, and raises RateLimitExceeded for the rest.
- Streaming Response
- Sends data in pieces as it is produced.
- WebSocket
- A connection that stays open for two-way messages, such as chat.