Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stapi_fastapi-0.7.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

stapi_fastapi-0.7.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

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

Hashes for stapi_fastapi-0.7.1.tar.gz
Algorithm Hash digest
SHA256 cb4a544e84562d47f90ec5df475e1532f2db827de4be25a49a6a18ffcf857216
MD5 dccd84cbb60a3f844f04aa31eadfe1ce
BLAKE2b-256 7fb9558a6092c735cca9f660300ae6dd3f2ee890d74ff9afdf741ce031516aea

See more details on using hashes here.

Provenance

The following attestation bundles were made for stapi_fastapi-0.7.1.tar.gz:

Publisher: release.yaml on stapi-spec/pystapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for stapi_fastapi-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8686490c7fad4f7cde7d295937c998534bb4a782863d852e1daa69a3984c396
MD5 a5d148e8b1364ffcfa1d433bb70f57dc
BLAKE2b-256 8831a2e1e3eb9b3d981c497ba143aeddadfb93a77713f6f43df7ee288c15b3ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for stapi_fastapi-0.7.1-py3-none-any.whl:

Publisher: release.yaml on stapi-spec/pystapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page