Arturo's STAC compliant API implementation
Project description
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
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 arturo-stac-api-1.0.0.tar.gz
.
File metadata
- Download URL: arturo-stac-api-1.0.0.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca67fff885231b59c9e8894ed5f01603d044193789b4d054d03d5dec0d9196f |
|
MD5 | 41a7861237f187784c59b65ad4c8db63 |
|
BLAKE2b-256 | 19a38693ef295336a9988784e107b5186d332f769771c0e36777f6daf30f8fc9 |
File details
Details for the file arturo_stac_api-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: arturo_stac_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd029d1a8052b73a9d509ef35734a733b8f6a21f4c8c08225fb89609315a3757 |
|
MD5 | cbf550a0c446891578f3aae31c752384 |
|
BLAKE2b-256 | df1bf1f2364f3866a85307ae26478d28133b1cecf22f11d72b51a40d85d6981d |