A modern dynamic tile server built on top of FastAPI and Rasterio/GDAL.
Project description
titiler.core
Core of Titiler's application. Contains blocks to create dynamic tile servers.
Installation
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
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"])
See titiler.application for a full example.
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
└── utils.py - Titiler utility functions
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
titiler.core-0.19.1.tar.gz
(34.1 kB
view details)
Built Distribution
File details
Details for the file titiler.core-0.19.1.tar.gz
.
File metadata
- Download URL: titiler.core-0.19.1.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 337cc56c387b19a9ae92fe2f06fe9c0038eb4f73a1a81827207db67d240175d0 |
|
MD5 | 190f01aca3fa684b981e1fd4f23ef058 |
|
BLAKE2b-256 | 0a716bc0a8ca679eb712a8d594464ddef384226d0530e55089a89ef37e73f3da |
File details
Details for the file titiler.core-0.19.1-py3-none-any.whl
.
File metadata
- Download URL: titiler.core-0.19.1-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a58d5a8730ad03543c49e12a0a47d4ba032ec71cb498eb424ae9b9ad82bc83e8 |
|
MD5 | df266d0597ef43cdc4182c78ae8cbabd |
|
BLAKE2b-256 | 05c54bc3fdc8159fe527040f44caf62f3149006b0236268b8468837a5c2fdd82 |