arturo-stac-api-1.1.0
توضیحات
Arturo's STAC compliant API implementation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | arturo-stac-api-1.1.0 |
| نام | arturo-stac-api |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Arturo Engineering |
| ایمیل نویسنده | engineering@arturo.ai |
| آدرس صفحه اصلی | https://github.com/arturo-ai/arturo-stac-api |
| آدرس اینترنتی | https://pypi.org/project/arturo-stac-api/ |
| مجوز | MIT |
# arturo-stac-api 
---
**Documentation**: coming soon...
**Source Code**: [https://github.com/arturo-ai/arturo-stac-api](https://github.com/arturo-ai/arturo-stac-api)
---
Python library for building and customizing a STAC compliant API:
```
pip install arturo-stac-api
```
## Usage
```python
# my_app.py
from stac_api.config import ApiSettings
from stac_api.api import create_app
settings = ApiSettings()
app = create_app(settings)
```
```bash
$ 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:
```bash
docker-compose build
docker-compose up
```
For local development it is often more convenient to run the application outside of docker-compose:
```bash
make docker-run
```
### Testing
The database container provided by the docker-compose stack must be running. Run all tests:
```bash
make test
```
Run individual tests by running pytest within the docker container:
```bash
make docker-shell
$ pytest -v
```
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
| - | uvicorn[standard] |
| - | gunicorn |
| >=0.60.0 | fastapi |
| - | alembic |
| - | psycopg2-binary |
| - | shapely |
| - | sqlalchemy |
| <0.8.0 | geoalchemy2 |
| - | sqlakeyset |
| >=1.3.5 | stac-pydantic |
| - | pydantic[dotenv] |
| ==0.1.0a12 | titiler |
| - | fastapi-utils |
| - | pytest |
| - | pytest-cov |
| - | pytest-asyncio |
| - | pre-commit |
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl arturo-stac-api-1.1.0:
pip install arturo-stac-api-1.1.0.whl
نصب پکیج tar.gz arturo-stac-api-1.1.0:
pip install arturo-stac-api-1.1.0.tar.gz