httk.optimade.api

Functions

create_asgi_app(→ starlette.applications.Starlette)

Create an ASGI application serving an OPTIMADE API for the given backend.

serve(→ None)

Serve an OPTIMADE API for the given backend with a development web server.

Module Contents

httk.optimade.api.create_asgi_app(adapter: httk.optimade.backend.adapter.BackendAdapter, config: httk.optimade.model.config.OptimadeConfig | None = None, *, baseurl: str | None = None, debug: bool = False) starlette.applications.Starlette[source]

Create an ASGI application serving an OPTIMADE API for the given backend.

httk.optimade.api.serve(adapter: httk.optimade.backend.adapter.BackendAdapter, config: httk.optimade.model.config.OptimadeConfig | None = None, *, host: str = '127.0.0.1', port: int = 8080, baseurl: str | None = None, debug: bool = False) None[source]

Serve an OPTIMADE API for the given backend with a development web server.