Skip to main content

container-hub

https://img.shields.io/pypi/v/container-hub.svg https://github.com/nens/container-hub/workflows/Python%20application/badge.svg?branch=master Updates

Container Hub

Spiritual successor of the machine manager. Main purpose is starting and stopping threedi simulation containers.

Usage

The container hub solely exposes two functions, up() and down() in backend classes. A backend class can be imported via the get_backend` helper function

from container_hub import get_backend backend = get_backend(settings) # settings is either simple-settings/Django settings or similar object.

Based on provided settings this gives you a carrier backend, either from the container_hub.carriers.marathon.backend or the container_hub.carriers.docker.backend.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.2.2 (2026-09-23)

  • Fix development status in pyproject.toml

0.2.1 (2026-09-23)

  • Update authors in pyproject.toml

0.2.0 (2026-09-23)

  • Convert to pyproject.toml

  • Update github action runner versions

0.1.22 (2026-09-23)

  • Change backoff limit to 0 for Kubernetes jobs.

0.1.21 (2024-12-16)

  • Remove package version pins for hikaru and kubernetes.

  • Remove Marathon backend.

0.1.20 (2024-12-13)

  • Bump docker version

0.1.19 (2024-03-19)

  • Try again to release.

0.1.18 (2024-03-19)

  • Try PyPi release with adjusted GA workflow.

0.1.17 (2024-03-19)

  • Retry release.

0.1.16 (2024-03-19)

  • Try to release to PyPi

0.1.15 (2024-03-19)

  • Filter Kubernetes job: need to start with “simulation-”

0.1.14 (2023-08-29)

  • Added option for getting job status in Kubernetes backend.

0.1.13 (2023-07-10)

  • Kubernetes job should only run once.

  • Allow size limit on EmptyDirVolumeSource.

0.1.12 (2023-03-06)

  • Secret mount options was incorrect.

0.1.11 (2023-03-03)

  • Allow more Kubernetes mounts options.

0.1.10 (2023-03-01)

  • Enable annotations and resources (limits/requests).

0.1.9 (2023-02-13)

  • Added shared EmptyDirVolumeSource with name “shared-data” between simulation and scheduler container.

0.1.8 (2023-02-10)

  • Drop scheduler-worker container in Kubernetes.

0.1.7 (2022-12-07)

  • Need to use V1DeleteOptions from openapi

0.1.6 (2022-09-19)

  • Automically remove pod under job.

  • Add the option of opening a debug port for the docker backend.

0.1.5 (2022-06-24)

  • Added imagePullSecrets, NodeAffinity and Resources options for Kubernetes simulation Job.

0.1.4 (2022-06-17)

  • Kubernetes backend container_list() needs to return simulation-id’s only.

0.1.3 (2022-06-15)

  • Changes in Kubernetes backend after testing.

0.1.2 (2022-05-09)

  • Added kubernetes support.

0.1.1 (2022-04-15)

  • Major refactor: carriers now are available via backend modules.

0.0.19 (2022-04-13)

  • Don’t pick SENTRY settings up from simple-settings. Should be given via up function envs parameter.

0.0.18 (2021-12-21)

  • Updated pypi token.

0.0.17 (2021-12-21)

  • Dynamically set container “LOG_LEVEL” via env parameter.

0.0.16 (2021-09-03)

  • Disable model mount when gridadmin_download_url and tables_download_url parameters are both given.

0.0.15 (2021-07-27)

  • Added options for passing gridadmin_download_url and tables_download_url parameters to the up() function

0.0.14 (2021-06-09)

  • Removed threedi-api-client as requirement.

  • Added a pypi release pipeline to github action workflow.

0.0.13 (2020-10-13)

  • Added the ‘clean_up_files’ arg to ‘up()’ function.

0.0.12 (2020-08-11)

  • Bumped docker version

0.0.11 (2020-05-15)

  • Added the ‘max_rate’ arg to up() function.

0.0.10 (2020-04-20)

  • All MarathonApp args must be strings.

0.0.9 (2020-04-20)

  • Session memory argument mem must be string for marathon strange enough.

0.0.8 (2020-04-16)

  • Added the pause_timeout arg to the up() function.

0.0.7 (2020-02-19)

  • Strip the ‘simulation-’ prefix when querying for the docker container_list to ensure uniformity between all carriers.

0.0.6 (2020-01-27)

  • Use a generic envs arg that will set the container env variables.

  • Added args sim_uid, sim_ref_datetime, end_time, duration and start_mode to container CMD.

0.0.5 (2020-01-17)

  • Use generic marathon constraints settings.

0.0.4 (2019-12-19)

  • Added support for host and ip lookups.

0.0.3 (2019-12-19)

  • Catch also ImportErrors for simple settings.

0.0.2 (2019-12-19)

  • Rename env var only_initialize to scheduler_action.

0.0.1 (2019-12-19)

  • First release on PyPI.

Metadata

Release files for container-hub 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for container-hub 0.2.2
File Size Uploaded
container_hub-0.2.2.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for container-hub 0.2.2
File Interpreter ABI Platform
container_hub-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 38.4 kB

Release files / container_hub-0.2.2.tar.gz

Download URL container_hub-0.2.2.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
42d329bd443cb2e86849c06f0a83daabd76f16fe2923af75c0ff3d07aff3dcd5
BLAKE2b-256 checksum
How to use checksums
46cb0adace671ffcb7e4b39722e122119c859745eabc3b9a06f1b03b4de18d90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / container_hub-0.2.2-py3-none-any.whl

Download URL container_hub-0.2.2-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d19a9f0ba385ea47839585120bf9feb8437c7c742720ad56af057d87a84377d
BLAKE2b-256 checksum
How to use checksums
a7c5170904ce39c4fbba9907e72a63feeead35433b6f036c906caebdc18ca1a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page