fastiot_sample_services.fastapi package

FastAPI Module with uvicorn webserver and UI created with vue.js

This module is a short demo how to create a vue.js based frontend and serve the files using FastAPI and and Uvicorn-Server to serve the files.

Included is a sample to use received fastiot.msg.thing.Thing over nats and use this for requests and also a websocket.

Submodules

fastiot_sample_services.fastapi.env module

class fastiot_sample_services.fastapi.env.FastAPIModuleConstants[source]
property fastapi_port: int

..envvar:: FASTIOT_SAMPLE_FASTIOT_PORT

Set the port for the FastAPI REST interface in the FastAPI sample module.

fastiot_sample_services.fastapi.fastapi_module module

fastiot_sample_services.fastapi.model module

pydantic model fastiot_sample_services.fastapi.model.Response[source]
field resp_value: float [Required]
Validated by:
pydantic model fastiot_sample_services.fastapi.model.Request[source]
field req_value: List[int] [Required]
Validated by:

fastiot_sample_services.fastapi.run module

fastiot_sample_services.fastapi.uvicorn_server module