titiler-core-2.0.0b2


توضیحات

A modern dynamic tile server built on top of FastAPI and Rasterio/GDAL.
ویژگی مقدار
سیستم عامل -
نام فایل titiler-core-2.0.0b2
نام titiler-core
نسخه کتابخانه 2.0.0b2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Vincent Sarago <vincent@developmentseed.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/titiler-core/
مجوز MIT
## titiler.core Core of Titiler's application. Contains blocks to create dynamic tile servers. ## Installation ```bash python -m pip install -U pip # From Pypi python -m pip install titiler.core # Or from sources git clone https://github.com/developmentseed/titiler.git cd titiler && python -m pip install -e src/titiler/core ``` ## How To ```python from fastapi import FastAPI from titiler.core.factory import TilerFactory # Create a FastAPI application app = FastAPI( description="A lightweight Cloud Optimized GeoTIFF tile server", ) # Create a set of COG endpoints cog = TilerFactory() # Register the COG endpoints to the application app.include_router(cog.router, tags=["Cloud Optimized GeoTIFF"]) ``` ## Package structure ``` titiler/ └── core/ ├── tests/ - Tests suite └── titiler/core/ - `core` namespace package ├── algorithm/ | ├── base.py - ABC Base Class for custom algorithms | ├── dem.py - Elevation data related algorithms | └── index.py - Simple band index algorithms ├── models/ | ├── response.py - Titiler's response models | ├── mapbox.py - Mapbox TileJSON pydantic model | └── OGC.py - Open GeoSpatial Consortium pydantic models (TileMatrixSets...) ├── resources/ | ├── enums.py - Titiler's enumerations (e.g MediaType) | └── responses.py - Custom Starlette's responses ├── templates/ | ├── map.html - Simple Map viewer (built with leaflet) | └── wmts.xml - OGC WMTS document template ├── dependencies.py - Titiler FastAPI's dependencies ├── errors.py - Errors handler factory ├── middleware.py - Starlette middlewares ├── factory.py - Dynamic tiler endpoints factories ├── routing.py - Custom APIRoute class ├── telemetry.py - OpenTelemetry tracing functions └── utils.py - Titiler utility functions ```


نیازمندی

مقدار نام
- fastapi>=0.108.0
- geojson-pydantic<3.0,>=1.1.2
- jinja2<4.0.0,>=2.11.2
- morecantile
- numpy
- pydantic~=2.0
- rasterio
- rio-tiler<9.0,>=8.0
- simplejson
- typing-extensions>=4.6.1
xtr opentelemetry-api;
xtr opentelemetry-exporter-otlp;
xtr opentelemetry-instrumentation-fastapi;
xtr opentelemetry-instrumentation-logging;
xtr opentelemetry-sdk;


زبان مورد نیاز

مقدار نام
>=3.11 Python


نحوه نصب


نصب پکیج whl titiler-core-2.0.0b2:

    pip install titiler-core-2.0.0b2.whl


نصب پکیج tar.gz titiler-core-2.0.0b2:

    pip install titiler-core-2.0.0b2.tar.gz