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.1.tar.gz
(24.8 kB
view details)
Built Distribution
File details
Details for the file titiler.core-0.11.1.tar.gz
.
File metadata
- Download URL: titiler.core-0.11.1.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea9a0c39559c0fc2f6273afb830b7b4c9edf4fd8fa022da46a4c25241120a52 |
|
MD5 | a1503c42d4a99d355fd906f639564b4e |
|
BLAKE2b-256 | b7f9bb873bc34d3e595e424b1d5dd52ffecac1121639994a4d896cf2ab2b714d |
File details
Details for the file titiler.core-0.11.1-py3-none-any.whl
.
File metadata
- Download URL: titiler.core-0.11.1-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129884bc289e62f21daa4af3b4f6af4c69f623652027f45609f7f973ba4c4c86 |
|
MD5 | fb62eb44b942d1fb29b4167d2fcb3bc9 |
|
BLAKE2b-256 | 6f0f99b7d628961cec6f24886b191d8a9ae92fccfc856a0494e192f3485e053a |