The SARA Timeseries provides an automated process to upload data to Omnia Timeseries API. For more information about Omnia Timeseries API, see Omnia
The dependencies used for this package are listed in pyproject.toml and pinned in requirements.txt.
This ensures our builds are predictable and deterministic. This project uses pip-compile (from pip-tools)
pip-compile --output-file=requirements.txt pyproject.tomlTo update the requirements to the latest versions, run the same command with the --upgrade flag:
pip-compile --output-file=requirements.txt pyproject.toml --upgradeApp is running default at localhost:8200/docs
The app can be run locally through this command
python main.pydocker build -t sara-timeseries .Remember to export the environment variables.
docker run -p 8200:8200 --env-file ./.env sara-timeseriesYou can find more information on running the mock here.
For sara-timeseries you have to add this to your .env file:
USE_MOCK_TIMESERIES_API=true