Skip to main content

The 3Di simulation container hub

Project description

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(). They can be retrieved as a top level import:

from container_hub import up
from container_hub import down

Based on the current settings this gives you a carrier specific function, either from the container_hub.carriers.marathon.container_terminal or the container_hub.carriers.docker.container_terminal.

Credits

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

History

0.0.18 (unreleased)

  • Nothing changed yet.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

container_hub-0.0.18.dev0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

container_hub-0.0.18.dev0-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file container_hub-0.0.18.dev0.tar.gz.

File metadata

  • Download URL: container_hub-0.0.18.dev0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for container_hub-0.0.18.dev0.tar.gz
Algorithm Hash digest
SHA256 a15ed0fa9ad74986e23e9aefa130bbfef058a9f9b4a4633b354e8c8807f8edae
MD5 3d3c412c83da2f5ee5c19485b3c1a1d3
BLAKE2b-256 39374a7e303c38b388fdfa2a58830b2cd03f69f5f80793adf653fcca9f03d7fb

See more details on using hashes here.

File details

Details for the file container_hub-0.0.18.dev0-py2.py3-none-any.whl.

File metadata

  • Download URL: container_hub-0.0.18.dev0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for container_hub-0.0.18.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a58931ecf1b309c8772040ce87c6ee84828316c661bf56bf40e4265933a40040
MD5 a867097a4c28e641a1b342d75a64fc7d
BLAKE2b-256 f380e89efeb9e2b6c2b66fc413966fbb4d7c8e33388c35a160232590e1c15976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page