API Reference#

The public API documented below is accessible through fr, including submodules such as fr.views and fr.objects. Using fr. is the recommended convention:

import fastapi_restly as fr

Module reference#

Module

Contents

fr

Names exported directly by the package, linked to their definitions in the submodules.

fr.views

View classes, route decorators, registration, CRUD methods, and action hooks.

fr.schemas

Pydantic bases, field markers, a field type and a function for times in UTC, relationship references, and schema generation.

fr.models

Defaults for your declarative base, and mixins for IDs and timestamps.

fr.db

Configuration, session dependencies, session context managers, and engine access.

fr.clauses

Reusable query predicates, boolean composition, and request context values.

fr.query

The list params (filter, sort, and pagination), how to apply them to SQLAlchemy queries, and the tools for list params of your own: their keys, their page fields and the primary key as the last sort term.

fr.objects

Functions for building, updating, saving, and deleting ORM objects through a session.

fr.exc

Configuration errors, HTTP errors, and warnings.

fr.testing

Database test setup and synchronous and asynchronous test clients.

Reference pages#

  • Modules documents every module, with complete signatures.

  • View Reference lists everything you can set, override, or call on a view, on one page.

  • Changelog lists the changes in each release.