Skip to main content

A simple mosaik simulation visualization for web browsers.

Installation

$ pip install mosaik-web

Add mosaik-web to sim_config:

sim_config = {
    'WebVis': {
        'cmd': 'mosaik-web -s 127.0.0.1:8000 %(addr)s',
    },
}

Start mosaik-web without SSL:

webvis = world.start('WebVis', start_date='2014-01-01 00:00:00', step_size=60)

Start mosaik-web with SSL:

webvis = world.start('WebVis', start_date='2014-01-01 00:00:00', step_size=60, activate_ssl=True, keyfile=keyfile, certfile=certfile)

CONFIGURATION

The default configuration looks like this:

default_config = {
    'ignore_types': ['Topology'],
    'merge_types': ['Branch', 'Transformer'],
    'merge_nodes': [],
    'disable_heatmap': False,
    'timeline_hours': 24,
    'etypes': {},
    'ignore_names': [],
}

You can find a full example configuration here: https://gitlab.com/mosaik/examples/des_demos/-/blob/master/data/setup_webvis.py

Download files

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

Source Distribution

mosaik_web-0.5.0.tar.gz (121.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosaik_web-0.5.0-py3-none-any.whl (118.7 kB view details)

Uploaded Python 3

File details

Details for the file mosaik_web-0.5.0.tar.gz.

File metadata

  • Download URL: mosaik_web-0.5.0.tar.gz
  • Upload date:
  • Size: 121.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mosaik_web-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b0fca22115b96ba30f4b6551c4083df3426f57978388acf58df0041e9c5128c0
MD5 8b4dccbe6584d10930b62e4287aeb4c2
BLAKE2b-256 f158dcf55878492c8c7a0a01a483abd9de4098255140c6726750ca251045f352

See more details on using hashes here.

File details

Details for the file mosaik_web-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: mosaik_web-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 118.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mosaik_web-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11cdd62a3dd31cc19463eba9c3628760d79324dd647884111bf3994747b1d121
MD5 00cad44048cbdf564cc7c195fb9d710d
BLAKE2b-256 b2e745e4a98337ee8721d2af1ef4ae8e319d64d2aa785983ac7fb8fdab6627ee

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1

2 files

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