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
$ pip install -U pip
# From Pypi
$ pip install titiler.core
# Or from sources
$ git clone https://github.com/developmentseed/titiler.git
$ cd titiler && pip install -e 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
├── 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/
| └── wmts.xml - OGC WMTS template
├── dependencies.py - Titiler FastAPI's dependencies
├── errors.py - Errors handler factory
├── 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.11.7.tar.gz
(25.2 kB
view details)
Built Distribution
File details
Details for the file titiler.core-0.11.7.tar.gz
.
File metadata
- Download URL: titiler.core-0.11.7.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a5b7cb27827de7fe9d031285d316de8f52d2e944496aa9e7324efb51b384ad8 |
|
MD5 | e9d895b9f2b082fd744fcb0d007806a4 |
|
BLAKE2b-256 | debe381c9248bd3763b8746167939d8c7a375dff0d25848bc03bcb5956f5a4cb |
File details
Details for the file titiler.core-0.11.7-py3-none-any.whl
.
File metadata
- Download URL: titiler.core-0.11.7-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f69fe86e267515dee648615d4dbab4716470e8b0b2bdb37e5c303964104ef0 |
|
MD5 | efa2cd7daad3ab23b128a46347592257 |
|
BLAKE2b-256 | d5f4caedca1b58809b86cf4be0cc1a820efdc3bf20c336ce6c3dfe6cb856fbe7 |