Sensor Tasking API (STAPI) with FastAPI
Project description
STAPI FastAPI - Sensor Tasking API with FastAPI
[!WARNING] The whole STAPI spec is very much a 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.
Pagination
4 endpoints currently offer pagination:
GET
:'/orders
,/products
,/orders/{order_id}/statuses
POST
:/opportunities
.
Pagination is token based and follows recommendations in the STAC API pagination.
Limit and token are passed in as query params for GET
endpoints, and via the body as
separate key/value pairs for POST
requests.
If pagination is available and more records remain the response object will contain a
next
link object that can be used to get the next page of results. No next
Link
returned indicates there are no further records available.
limit
defaults to 10 and maxes at 100.
ADRs
ADRs can be found in in the adrs directory.
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.7.1.tar.gz
.
File metadata
- Download URL: stapi_fastapi-0.7.1.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cb4a544e84562d47f90ec5df475e1532f2db827de4be25a49a6a18ffcf857216
|
|
MD5 |
dccd84cbb60a3f844f04aa31eadfe1ce
|
|
BLAKE2b-256 |
7fb9558a6092c735cca9f660300ae6dd3f2ee890d74ff9afdf741ce031516aea
|
Provenance
The following attestation bundles were made for stapi_fastapi-0.7.1.tar.gz
:
Publisher:
release.yaml
on stapi-spec/pystapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
stapi_fastapi-0.7.1.tar.gz
-
Subject digest:
cb4a544e84562d47f90ec5df475e1532f2db827de4be25a49a6a18ffcf857216
- Sigstore transparency entry: 203849438
- Sigstore integration time:
-
Permalink:
stapi-spec/pystapi@0f36066c00a84f0604cf8e6c7ba54e06ed6f484e
-
Branch / Tag:
refs/tags/stapi-fastapi/v0.7.1
- Owner: https://github.com/stapi-spec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yaml@0f36066c00a84f0604cf8e6c7ba54e06ed6f484e
-
Trigger Event:
push
-
Statement type:
File details
Details for the file stapi_fastapi-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: stapi_fastapi-0.7.1-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a8686490c7fad4f7cde7d295937c998534bb4a782863d852e1daa69a3984c396
|
|
MD5 |
a5d148e8b1364ffcfa1d433bb70f57dc
|
|
BLAKE2b-256 |
8831a2e1e3eb9b3d981c497ba143aeddadfb93a77713f6f43df7ee288c15b3ca
|
Provenance
The following attestation bundles were made for stapi_fastapi-0.7.1-py3-none-any.whl
:
Publisher:
release.yaml
on stapi-spec/pystapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
stapi_fastapi-0.7.1-py3-none-any.whl
-
Subject digest:
a8686490c7fad4f7cde7d295937c998534bb4a782863d852e1daa69a3984c396
- Sigstore transparency entry: 203849444
- Sigstore integration time:
-
Permalink:
stapi-spec/pystapi@0f36066c00a84f0604cf8e6c7ba54e06ed6f484e
-
Branch / Tag:
refs/tags/stapi-fastapi/v0.7.1
- Owner: https://github.com/stapi-spec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yaml@0f36066c00a84f0604cf8e6c7ba54e06ed6f484e
-
Trigger Event:
push
-
Statement type: