Spatio Temporal Asset Tasking with FastAPI
Project description
STAPI FastAPI - Sensor Tasking API with FastAPI
WARNING: The whole STAPI spec is very much work in progress, so things are guaranteed to be not correct.
Usage
STAPI FastAPI provides an fastapi.APIRouter
which must be included in
fastapi.FastAPI
instance.
Development
It's 2024 and we still need to pick our poison for a 2024 dependency management solution. This project picks poetry for now.
Dev Setup
Setup is managed with poetry
and pre-commit
. It's recommended to install
the project into a virtual environment. Bootstrapping a development environment
could look something like this:
python -m venv .venv
source .venv/bin/activate
pip install poetry # if not already installed to the system
poetry install --with dev
pre-commit install
Test Suite
A pytest
based test suite is provided, and can be run simply using the
command pytest
.
Dev Server
This project cannot be run on its own because it does not have any backend
implementations. However, a minimal test implementation is provided in
./bin/server.py
. It can be run with uvicorn
as a way to
interact with the API and to view the OpenAPI documentation. Run it like so
from the project root:
uvicorn server:app --app-dir ./bin --reload
With the uvicorn
defaults the app should be accessible at
http://localhost:8000
.
Implementing a backend
- The test suite assumes the backend can be instantiated without any parameters required by the constructor.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stapi_fastapi-0.1.0.tar.gz
.
File metadata
- Download URL: stapi_fastapi-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69fe3cb9685a17c132e9cf023a59198f5ea821696e98cef733f2833a56e19591 |
|
MD5 | cda5492c5e563749865c1d6e927d4d18 |
|
BLAKE2b-256 | a7eb7e88fee9b2300a40217ced953bd0a9380bc2da23d1b9925930e92fca7032 |
Provenance
The following attestation bundles were made for stapi_fastapi-0.1.0.tar.gz
:
Publisher:
python-publish.yml
on stapi-spec/stapi-fastapi
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
stapi_fastapi-0.1.0.tar.gz
- Subject digest:
69fe3cb9685a17c132e9cf023a59198f5ea821696e98cef733f2833a56e19591
- Sigstore transparency entry: 149186754
- Sigstore integration time:
- Predicate type:
File details
Details for the file stapi_fastapi-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: stapi_fastapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7619bfb866093232092761154eb9442c8d09fe6ab42d84ba7e051667500a55b3 |
|
MD5 | c866e2632c177f662b96cefd68602e12 |
|
BLAKE2b-256 | 69a8b01e09cf059812ba8b5b9df127ccc9f7b9b96641d0447d679751eb819214 |
Provenance
The following attestation bundles were made for stapi_fastapi-0.1.0-py3-none-any.whl
:
Publisher:
python-publish.yml
on stapi-spec/stapi-fastapi
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
stapi_fastapi-0.1.0-py3-none-any.whl
- Subject digest:
7619bfb866093232092761154eb9442c8d09fe6ab42d84ba7e051667500a55b3
- Sigstore transparency entry: 149186756
- Sigstore integration time:
- Predicate type: