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.
Files changed (37) hide show
  1. ws_availability-1.0.4/Dockerfile.api +16 -0
  2. ws_availability-1.0.4/Dockerfile.cacher +14 -0
  3. ws_availability-1.0.4/LICENSE +674 -0
  4. ws_availability-1.0.4/MANIFEST.in +8 -0
  5. ws_availability-1.0.4/PKG-INFO +438 -0
  6. ws_availability-1.0.4/README.md +420 -0
  7. ws_availability-1.0.4/apps/__init__.py +0 -0
  8. ws_availability-1.0.4/apps/data_access_layer.py +444 -0
  9. ws_availability-1.0.4/apps/globals.py +93 -0
  10. ws_availability-1.0.4/apps/models.py +178 -0
  11. ws_availability-1.0.4/apps/parameters.py +39 -0
  12. ws_availability-1.0.4/apps/redis_client.py +31 -0
  13. ws_availability-1.0.4/apps/restriction.py +161 -0
  14. ws_availability-1.0.4/apps/root.py +254 -0
  15. ws_availability-1.0.4/apps/settings.py +88 -0
  16. ws_availability-1.0.4/apps/utils.py +258 -0
  17. ws_availability-1.0.4/apps/wfcatalog_client.py +331 -0
  18. ws_availability-1.0.4/docker-compose.yml +64 -0
  19. ws_availability-1.0.4/pyproject.toml +35 -0
  20. ws_availability-1.0.4/setup.cfg +4 -0
  21. ws_availability-1.0.4/templates/doc.html +27 -0
  22. ws_availability-1.0.4/templates/wadl.xml +152 -0
  23. ws_availability-1.0.4/tests/test.py +150 -0
  24. ws_availability-1.0.4/tests/test_data_access.py +121 -0
  25. ws_availability-1.0.4/tests/test_merge_parameter.py +295 -0
  26. ws_availability-1.0.4/tests/test_orderby.py +114 -0
  27. ws_availability-1.0.4/tests/test_query_no_endtime.py +86 -0
  28. ws_availability-1.0.4/tests/test_restriction.py +105 -0
  29. ws_availability-1.0.4/tests/test_settings.py +42 -0
  30. ws_availability-1.0.4/tests/test_wfcatalog_filtering.py +121 -0
  31. ws_availability-1.0.4/tests/test_wfcatalog_query.py +134 -0
  32. ws_availability-1.0.4/views/main.js +121 -0
  33. ws_availability-1.0.4/ws_availability.egg-info/PKG-INFO +438 -0
  34. ws_availability-1.0.4/ws_availability.egg-info/SOURCES.txt +35 -0
  35. ws_availability-1.0.4/ws_availability.egg-info/dependency_links.txt +1 -0
  36. ws_availability-1.0.4/ws_availability.egg-info/requires.txt +9 -0
  37. 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"]