Skip to content

Commit 96e0d8c

Browse files
authored
add /timeseries endpoints (#33)
* add timeseries endpoints * use isodate instead of ciso8601 to get parse_duration function * always pass a temporal tuple to earthaccess.search_data!
1 parent afe8b6d commit 96e0d8c

20 files changed

+3283
-126
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ repos:
3131
additional_dependencies:
3232
- types-cachetools
3333
- types-attrs
34+
- types-python-dateutil
3435
- pydantic>=2.4

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY titiler/ titiler/
99
COPY README.md README.md
1010
COPY LICENSE LICENSE
1111

12-
RUN uv sync --frozen --extra uvicorn
12+
RUN apt-get update && apt-get -y --no-install-recommends install libexpat1 && uv sync --frozen --extra uvicorn
1313

1414
ARG EARTHDATA_USERNAME
1515
ARG EARTHDATA_PASSWORD
@@ -26,5 +26,5 @@ RUN if [ -z "$EARTHDATA_USERNAME" ] || [ -z "$EARTHDATA_PASSWORD" ]; then \
2626
# http://www.uvicorn.org/settings/
2727
ENV HOST 0.0.0.0
2828
ENV PORT 80
29-
CMD uv run uvicorn titiler.cmr.main:app --host ${HOST} --port ${PORT} --log-level debug
29+
CMD uv run uvicorn titiler.cmr.main:app --host ${HOST} --port ${PORT} --log-level debug --reload
3030

docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ services:
1010
EARTHDATA_PASSWORD: ${EARTHDATA_PASSWORD}
1111
ports:
1212
- "8081:8081"
13+
volumes:
14+
- ./titiler:/app/titiler
1315
environment:
1416
# Application
1517
- HOST=0.0.0.0
@@ -49,8 +51,5 @@ services:
4951
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
5052
develop:
5153
watch:
52-
- action: sync+restart
53-
path: ./titiler/cmr/
54-
target: /usr/local/lib/python3.11/site-packages/titiler/cmr/
5554
- action: rebuild
5655
path: ./pyproject.toml

0 commit comments

Comments
 (0)