dsss.starlette

dsss.starlette#

Starlette implementation of the SDMX REST API.

Todo

per the SDMX REST cheat sheet:

  • Handle HTTP headers:

    • If-Modified-Since Get the data only if something has changed.

    • Accept-Encoding Compress the response.

Functions

build_app(**config_kwargs)

Construct and return a Starlette DSSS app.

handle_exception(request, exc)

Handle errors.

index(request)

Return a bare-bones HTML info page on from the base URL.

dsss.starlette.build_app(**config_kwargs)#

Construct and return a Starlette DSSS app.

async dsss.starlette.handle_exception(request: starlette.requests.Request, exc)#

Handle errors.

async dsss.starlette.index(request: starlette.requests.Request)#

Return a bare-bones HTML info page on from the base URL.

Classes

CustomHeaderMiddleware(app, *, server)

Middleware that sets the Server and Prepared HTTP headers.