Skip to main content

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.13.3.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

titiler.core-0.13.3-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file titiler.core-0.13.3.tar.gz.

File metadata

  • Download URL: titiler.core-0.13.3.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for titiler.core-0.13.3.tar.gz
Algorithm Hash digest
SHA256 a5b9b9c369f28bd2dccc1ea954ab24aad80025dd80e2e2bec56c453c6c6669de
MD5 fc38c78eaf2c6419e2fd922d524bac4c
BLAKE2b-256 eb55dad0d468317cd8675f1d6bd0acda23b12300aad97abdf27afc314fe5196e

See more details on using hashes here.

File details

Details for the file titiler.core-0.13.3-py3-none-any.whl.

File metadata

File hashes

Hashes for titiler.core-0.13.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d11a7e8443af6191db636a16f603aa1c89f7eb73982861633ec5068a94ee1bd
MD5 a4de15fb215e687965fac5c508819038
BLAKE2b-256 42230f83d63a35c3778b32c6e48f09e948761cc47a3bff889a4982aacf15ce3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page