SQLDatabase.create_extension()
.TokenVerifier.force()
for testing purposes.Add scope
kwarg to http_method decorators (get, post, etc.)
Moved the Context
(ctx
) to clean_python.base
and changed its attributes to
path
, user
and tenant
.
The SQLGateway
can now be constructed with multitenant=True
which makes it
automatically filter the tenant
column with the current ctx.tenant
.
Add HTTP Bearer to OpenAPI security schema.
Import debugpy at module level on setup_debugger import. Don't check for DEBUG environment variable when setting up.
Pydantic 2.x support. Drops Pydantic 1.x support, use 0.1.x for Pydantic 1.x. See https://docs.pydantic.dev/latest/migration/
BadRequest
is a subclass of Exception
instead of ValidationError
/ ValueError
.
oauth2.OAuth2Settings
is split into two new objects: TokenVerifierSettings
and
OAuth2SPAClientSettings
. The associated call signature of Service
was changed.
Various import fixes.
Avoid inject==5.* because of its incompatibility with VS Code (pylance / pyright).
Initial project structure created with cookiecutter and cookiecutter-python-template.
Ported base functions from internal raster-service project.