Arturo的STAC兼容API实现
arturo-stac-api的Python项目详细描述
arturo stac api
Documentation:即将推出。。。在
源代码:https://github.com/arturo-ai/arturo-stac-api
用于构建和定制与STAC兼容的API的Python库:
pip install arturo-stac-api
使用
^{pr2}$$ uvicorn my_app:app --reload
项目结构
.
├── 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
地方发展
使用docker compose部署应用程序,迁移数据库,并摄取一些示例数据:
docker-compose build docker-compose up
对于本地开发,在docker compose之外运行应用程序通常更方便:
make docker-run
测试
docker compose堆栈提供的数据库容器必须正在运行。运行所有测试:
make test
通过在docker容器中运行pytest来运行单个测试:
make docker-shell $ pytest -v
- 项目
标签: