ws-availability 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ws_availability-1.0.4/Dockerfile.api +16 -0
- ws_availability-1.0.4/Dockerfile.cacher +14 -0
- ws_availability-1.0.4/LICENSE +674 -0
- ws_availability-1.0.4/MANIFEST.in +8 -0
- ws_availability-1.0.4/PKG-INFO +438 -0
- ws_availability-1.0.4/README.md +420 -0
- ws_availability-1.0.4/apps/__init__.py +0 -0
- ws_availability-1.0.4/apps/data_access_layer.py +444 -0
- ws_availability-1.0.4/apps/globals.py +93 -0
- ws_availability-1.0.4/apps/models.py +178 -0
- ws_availability-1.0.4/apps/parameters.py +39 -0
- ws_availability-1.0.4/apps/redis_client.py +31 -0
- ws_availability-1.0.4/apps/restriction.py +161 -0
- ws_availability-1.0.4/apps/root.py +254 -0
- ws_availability-1.0.4/apps/settings.py +88 -0
- ws_availability-1.0.4/apps/utils.py +258 -0
- ws_availability-1.0.4/apps/wfcatalog_client.py +331 -0
- ws_availability-1.0.4/docker-compose.yml +64 -0
- ws_availability-1.0.4/pyproject.toml +35 -0
- ws_availability-1.0.4/setup.cfg +4 -0
- ws_availability-1.0.4/templates/doc.html +27 -0
- ws_availability-1.0.4/templates/wadl.xml +152 -0
- ws_availability-1.0.4/tests/test.py +150 -0
- ws_availability-1.0.4/tests/test_data_access.py +121 -0
- ws_availability-1.0.4/tests/test_merge_parameter.py +295 -0
- ws_availability-1.0.4/tests/test_orderby.py +114 -0
- ws_availability-1.0.4/tests/test_query_no_endtime.py +86 -0
- ws_availability-1.0.4/tests/test_restriction.py +105 -0
- ws_availability-1.0.4/tests/test_settings.py +42 -0
- ws_availability-1.0.4/tests/test_wfcatalog_filtering.py +121 -0
- ws_availability-1.0.4/tests/test_wfcatalog_query.py +134 -0
- ws_availability-1.0.4/views/main.js +121 -0
- ws_availability-1.0.4/ws_availability.egg-info/PKG-INFO +438 -0
- ws_availability-1.0.4/ws_availability.egg-info/SOURCES.txt +35 -0
- ws_availability-1.0.4/ws_availability.egg-info/dependency_links.txt +1 -0
- ws_availability-1.0.4/ws_availability.egg-info/requires.txt +9 -0
- ws_availability-1.0.4/ws_availability.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
FROM python:3.10-slim
|
|
2
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
|
3
|
+
|
|
4
|
+
WORKDIR /appli
|
|
5
|
+
COPY pyproject.toml uv.lock ./
|
|
6
|
+
RUN uv sync --frozen --no-dev --no-progress
|
|
7
|
+
|
|
8
|
+
COPY start.py config.py ./
|
|
9
|
+
COPY apps ./apps/
|
|
10
|
+
COPY templates ./templates/
|
|
11
|
+
COPY tests ./tests/
|
|
12
|
+
|
|
13
|
+
# Place executables in the environment at the front of the path
|
|
14
|
+
ENV PATH="/appli/.venv/bin:$PATH"
|
|
15
|
+
|
|
16
|
+
CMD ["/bin/bash", "-c", "gunicorn --workers 2 --timeout 600 --bind 0.0.0.0:9001 start:app"]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
FROM python:3.10-slim
|
|
2
|
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
|
3
|
+
|
|
4
|
+
WORKDIR /appli
|
|
5
|
+
COPY pyproject.toml uv.lock ./
|
|
6
|
+
RUN uv sync --frozen --no-dev --no-progress
|
|
7
|
+
|
|
8
|
+
COPY cache.py config.py ./
|
|
9
|
+
COPY apps ./apps/
|
|
10
|
+
|
|
11
|
+
# Place executables in the environment at the front of the path
|
|
12
|
+
ENV PATH="/appli/.venv/bin:$PATH"
|
|
13
|
+
|
|
14
|
+
CMD ["python", "cache.py"]
|