Skip to main content

arturo-stac-api arturo-stac-api


Documentation: coming soon...

Source Code: https://github.com/arturo-ai/arturo-stac-api


Python library for building and customizing a STAC compliant API:

pip install arturo-stac-api

Usage

# my_app.py
from stac_api.config import ApiSettings
from stac_api.api import create_app

settings = ApiSettings()
app = create_app(settings)
$ uvicorn my_app:app --reload

Project Structure

.
├── alembic             # Database migrations
│   └── versions        # Migration versions
├── scripts             # Scripts for local development
├── stac_api
│   ├── api             # API layer
│   ├── clients
│   │   ├── postgres    # Postgres CRUD client
│   │   └── tiles       # OGC Tiles API client
│   ├── models          # Pydantic and ORM models
│   └── utils           # Helper functions
└── tests
    ├── api             # Test api creation
    ├── clients         # Test application logic
    └── resources       # Test api endpoints

Local Development

Use docker-compose to deploy the application, migrate the database, and ingest some example data:

docker-compose build
docker-compose up

For local development it is often more convenient to run the application outside of docker-compose:

make docker-run

Testing

The database container provided by the docker-compose stack must be running. Run all tests:

make test

Run individual tests by running pytest within the docker container:

make docker-shell
$ pytest -v

Release files for arturo-stac-api 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arturo-stac-api 1.1.0
File Size Uploaded
arturo-stac-api-1.1.0.tar.gz 26.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arturo-stac-api 1.1.0
File Interpreter ABI Platform
arturo_stac_api-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 66.3 kB

Release files / arturo-stac-api-1.1.0.tar.gz

Download URL arturo-stac-api-1.1.0.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
00296edbf020a953fb5fa42f666b384df194593c480a5e45bf4f45293d1b8fad
BLAKE2b-256 checksum
How to use checksums
28355d9c80e2eb51254326f91b0dd804453ee55d68c44bc39fd181674ddc4fee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / arturo_stac_api-1.1.0-py3-none-any.whl

Download URL arturo_stac_api-1.1.0-py3-none-any.whl
Size 39.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4dccd0fc24dbbc96b7256bda98f987b6898c7640faac2248b241289ae535acc
BLAKE2b-256 checksum
How to use checksums
7af6b7aa617f6426cb453c9fa3caba28bf404b6ea3a03414607de32d713b2d9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page