You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repo is set to use `pre-commit` to run *isort*, *flake8*, *pydocstring*, *black* ("uncompromising Python code formatter") and mypy when committing new code.
Copy file name to clipboardExpand all lines: docs/src/intro.md
+25-22Lines changed: 25 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,14 @@ Users can choose to extend or use `TiTiler` as it is.
10
10
`TiTiler` comes with a default (complete) application with support for COG, STAC, and MosaicJSON. You can install and start the application locally by doing:
> INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
52
-
> INFO: Started reloader process [66665] using statreload
53
-
```
54
-
55
46
## Customized, minimal app
56
47
57
48
`TiTiler` has been developed so users can build their own app using only the portions they need. Using [TilerFactories](advanced/tiler_factories.md), users can create a fully customized application with only the endpoints needed.
58
49
59
50
When building a custom application, you may wish to only install the `core` and/or `mosaic` modules. To install these from PyPI:
60
51
61
52
```bash
62
-
$ python -m pip install -U pip
63
-
$ python -m pip install titiler.core
64
-
$ python -m pip install titiler.mosaic
53
+
# Update pip
54
+
python -m pip install -U pip
55
+
56
+
# Install titiler.core and uvicorn packages
57
+
python -m pip install titiler.core uvicorn
65
58
```
66
59
67
60
These can then be used like:
68
61
69
62
```py
63
+
# app.py
64
+
import uvicorn
70
65
from titiler.core.factory import TilerFactory
71
66
from titiler.core.errors importDEFAULT_STATUS_CODES, add_exception_handlers
0 commit comments