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.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file stapi_fastapi-0.7.0.tar.gz.

File metadata

  • Download URL: stapi_fastapi-0.7.0.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.0.tar.gz
Algorithm Hash digest
SHA256 aae6ebec7a764736347dda62333cd37ac400278a343e19e0bf40fb0e6790a53f
MD5 5e64d2e424484acd430b529ade087bf7
BLAKE2b-256 410d5631e1dbe6e14f65e7ffa496f55683efcfeff927babe3382a1632e44f1f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for stapi_fastapi-0.7.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: stapi_fastapi-0.7.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb14c82a918480153c76b526bfe4d323cdc607dfaa6c5cc39095d62b65a1adc
MD5 e3049ead5001a4ca17fa0122ca06791b
BLAKE2b-256 ef66c9ec289336581015718c774b34dda96b8d60e4f3411dbc6e18c114c68e80

See more details on using hashes here.

Provenance

The following attestation bundles were made for stapi_fastapi-0.7.0-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