diff --git a/.gitignore b/.gitignore index abaac6ad..c365b55d 100644 --- a/.gitignore +++ b/.gitignore @@ -67,9 +67,6 @@ instance/ # Scrapy stuff: .scrapy -# Sphinx documentation -docs/_build/ - # PyBuilder .pybuilder/ target/ @@ -128,7 +125,7 @@ venv.bak/ .ropeproject # mkdocs documentation -/site +_site/ # mypy .mypy_cache/ @@ -151,6 +148,9 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. .idea/ +# Documentation +docs/_build/ + # VSCode .vscode/ @@ -159,7 +159,6 @@ cython_debug/ # personal *.DS_Store -docs/source/api/reference/* # graphify .graphifyignore diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6637e764..d075d879 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,11 +7,10 @@ build: jobs: build: html: - - >- - uv run --no-sync --no-dev - make -C docs html - BUILDDIR="$READTHEDOCS_OUTPUT" - O="-T --keep-going -D language=en" + - uv run --no-sync --no-dev zensical build --strict + post_build: + - mkdir -p "$READTHEDOCS_OUTPUT/html/" + - cp -r _site/. "$READTHEDOCS_OUTPUT/html/" python: install: @@ -19,7 +18,3 @@ python: command: sync groups: - docs - -sphinx: - configuration: docs/conf.py - fail_on_warning: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3554ca58..2bffd634 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -63,18 +63,23 @@ uv run pytest tests/unit/simulation/test_config.py ## Documentation -The documentation is built with Sphinx, treating warnings as errors: +The documentation is built with [Zensical](https://zensical.org/) in strict mode, so warnings such as broken links fail the build: ```bash make docs ``` -The pages are written to `docs/_build/html`. To find classes missing from the documentation, run: +The pages are written to `_site/`. Pages live in `docs/` as Markdown, and the API reference is generated from the docstrings, which use Google style with Markdown. To preview with live reload on port 8000, run: ```bash -uv run --group docs make -C docs coverage +make docs-serve ``` +The API pages and navigation are generated automatically by `api-autonav` and +`mkdocstrings` from the Python modules and Google-style docstrings. Edit the +docstrings to update the reference; no generated reference pages are committed. +The Changelog page includes the root `CHANGELOG.md` directly at build time. + ## Pre-commit Hooks The configured pre-commit hooks check formatting, linting, types, and basic file hygiene: diff --git a/Makefile b/Makefile index f9234532..1c7bd3b8 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,10 @@ patch: uv run cz bump --increment patch docs: - uv run --group docs $(MAKE) -C docs html + uv run --group docs zensical build --strict + +docs-serve: + uv run --group docs zensical serve verify: uvx twine check --strict dist/* @@ -24,4 +27,4 @@ build: publish: build verify uv publish -v -.PHONY: setup check bump patch docs verify build publish +.PHONY: setup check bump patch docs docs-serve verify build publish diff --git a/README.md b/README.md index c020c624..c1696c48 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,17 @@ ECLYPSE is designed for researchers and developers evaluating placement strategi ## Key features -- **Build scenarios:** represent infrastructures and applications as resource-aware graphs, starting from [built-in builders](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/builders.html) or custom topologies. -- **Control placement:** use built-in or custom [placement strategies](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/placement-strategy.html) to map services onto infrastructure nodes. -- **Model change:** define [update policies](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/update-policy.html) and [events](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/events.html) for evolving resources, failures, workloads, and topology. -- **Inspect results:** collect built-in or custom metrics and query [reports](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/inspect-results.html) as dataframes. -- **Run implemented services:** move from abstract scenarios to [remote emulation](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/remote-emulation.html). +- **Build scenarios:** represent infrastructures and applications as resource-aware graphs, starting from [built-in builders](https://eclypse.readthedocs.io/en/latest/overview/concepts/builders/) or custom topologies. +- **Control placement:** use built-in or custom [placement strategies](https://eclypse.readthedocs.io/en/latest/overview/concepts/placement-strategy/) to map services onto infrastructure nodes. +- **Model change:** define [update policies](https://eclypse.readthedocs.io/en/latest/overview/concepts/update-policy/) and [events](https://eclypse.readthedocs.io/en/latest/overview/concepts/events/) for evolving resources, failures, workloads, and topology. +- **Inspect results:** collect built-in or custom metrics and query [reports](https://eclypse.readthedocs.io/en/latest/overview/getting-started/inspect-results/) as dataframes. +- **Run implemented services:** move from abstract scenarios to [remote emulation](https://eclypse.readthedocs.io/en/latest/overview/getting-started/remote-emulation/). ## Simulation and emulation **Local simulation** models services as application graph nodes, without requiring service implementations. Use it to study placement, resource evolution, and deployment behaviour. -**Remote emulation** executes implemented services through Ray, with MPI-style message passing or REST-style communication. It requires Ray, remote-capable services, and remote execution configuration. See the [emulation guide](https://eclypse.readthedocs.io/en/latest/source/overview/advanced/emulation/index.html) for setup and communication details. +**Remote emulation** executes implemented services through Ray, with MPI-style message passing or REST-style communication. It requires Ray, remote-capable services, and remote execution configuration. See the [emulation guide](https://eclypse.readthedocs.io/en/latest/overview/advanced/emulation/) for setup and communication details. ## Installation @@ -42,7 +42,7 @@ Or add it to a uv project: uv add eclypse ``` -See the [installation guide](https://eclypse.readthedocs.io/en/latest/source/overview/install.html) for environment setup. The quickstart uses only the base package; remote emulation and other optional features may need additional dependencies. +See the [installation guide](https://eclypse.readthedocs.io/en/latest/overview/install/) for environment setup. The quickstart uses only the base package; remote emulation and other optional features may need additional dependencies. ## Quickstart @@ -106,24 +106,24 @@ Service report empty: False The application dataframe preview follows. `RandomStrategy` is a baseline, not a guarantee of feasible placement: this scenario can log `Path not found` and `Resetting placement` warnings. Non-empty reports confirm metric collection, not successful deployment; inspect the metric values when comparing strategies. Reports are written under `~/quickstart-results` in your home directory; if that directory already exists, ECLYPSE chooses a timestamped path instead. The default report backend returns pandas dataframes. -To adapt this experiment, replace `RandomStrategy` with your placement strategy, change the infrastructure builder, or add update policies. Continue with [running a local simulation](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/minimal-local-run.html) and [inspecting results](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/inspect-results.html). +To adapt this experiment, replace `RandomStrategy` with your placement strategy, change the infrastructure builder, or add update policies. Continue with [running a local simulation](https://eclypse.readthedocs.io/en/latest/overview/getting-started/minimal-local-run/) and [inspecting results](https://eclypse.readthedocs.io/en/latest/overview/getting-started/inspect-results/). ## Examples Follow these examples in order, or choose the scenario closest to your experiment: -- [Off-the-shelf](https://eclypse.readthedocs.io/en/latest/source/overview/examples/off_the_shelf.html): compose a local simulation from built-in builders, policies, and placement logic. -- [User distribution](https://eclypse.readthedocs.io/en/latest/source/overview/examples/user_distribution.html): add a custom metric and update policy driven by changing user distributions. -- [Grid analysis](https://eclypse.readthedocs.io/en/latest/source/overview/examples/grid_analysis.html): compare topologies, policies, and strategies with a Ray Tune sweep. -- [Sock Shop](https://eclypse.readthedocs.io/en/latest/source/overview/examples/sock_shop.html): explore a microservices application with MPI and REST variants. +- [Off-the-shelf](https://eclypse.readthedocs.io/en/latest/overview/examples/off_the_shelf/): compose a local simulation from built-in builders, policies, and placement logic. +- [User distribution](https://eclypse.readthedocs.io/en/latest/overview/examples/user_distribution/): add a custom metric and update policy driven by changing user distributions. +- [Grid analysis](https://eclypse.readthedocs.io/en/latest/overview/examples/grid_analysis/): compare topologies, policies, and strategies with a Ray Tune sweep. +- [Sock Shop](https://eclypse.readthedocs.io/en/latest/overview/examples/sock_shop/): explore a microservices application with MPI and REST variants. Runnable source is available in [`examples/`](examples/). Individual examples may need additional dependencies or remote setup; check their guides before running them. ## Documentation -- [Getting started](https://eclypse.readthedocs.io/en/latest/source/overview/getting-started/index.html): installation, first run, results, and remote emulation. -- [Core concepts](https://eclypse.readthedocs.io/en/latest/source/overview/concepts/index.html): topology, assets, builders, placement, policies, and events. -- [API reference](https://eclypse.readthedocs.io/en/latest/source/api/index.html): public modules and interfaces. +- [Getting started](https://eclypse.readthedocs.io/en/latest/overview/getting-started/): installation, first run, results, and remote emulation. +- [Core concepts](https://eclypse.readthedocs.io/en/latest/overview/concepts/): topology, assets, builders, placement, policies, and events. +- [API reference](https://eclypse.readthedocs.io/en/latest/reference/eclypse/): public modules and interfaces. - [Changelog](CHANGELOG.md): release history. ## Contributing diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 435ab252..00000000 --- a/docs/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# Minimal makefile for Sphinx documentation - -SPHINXOPTS ?= -W -j auto -SPHINXBUILD ?= sphinx-build -SOURCEDIR = . -BUILDDIR = _build - -# Put it first so that "make" without argument is like "make help". -help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) - -clean: - rm -rf "$(BUILDDIR)" - rm -rf source/api/reference - -livehtml: - sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)"/html $(SPHINXOPTS) $(O) - -open: - open "$(BUILDDIR)"/html/index.html - -.PHONY: help clean livehtml open Makefile - -# Catch-all target: route all unknown targets to Sphinx using make mode. -# $(O) is meant as a shortcut for extra Sphinx options. -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index 2ec3d265..c04c0394 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -5,289 +5,186 @@ --ec-ember-dark: #d87824; --ec-paper: #fbf8f3; --ec-sand: #efe6d9; - --pst-font-family-base: "Montserrat", ui-sans-serif, system-ui, sans-serif; - --pst-font-family-heading: var(--pst-font-family-base); } -html[data-theme="light"] { - --pst-color-primary: var(--ec-ember-dark); - --pst-color-secondary: var(--ec-ember); - --pst-color-link: #bc6518; - --pst-color-link-hover: #8a4610; - --pst-color-accent: var(--ec-ember); - --pst-color-inline-code: #8a4610; - --pst-color-background: var(--ec-paper); - --pst-color-on-background: #ffffff; - --pst-color-surface: #fffdf9; - --pst-color-border: #e8dac5; - --pst-color-text-base: var(--ec-ink); - --pst-color-text-muted: #5e5c57; - --pst-color-heading: var(--ec-ink); +[data-md-color-scheme="default"] { + --md-primary-fg-color: var(--ec-ember-dark); + --md-primary-fg-color--light: var(--ec-ember); + --md-primary-fg-color--dark: #8a4610; + --md-accent-fg-color: #8a4610; + --md-accent-fg-color--transparent: #d878241a; + --md-default-bg-color: var(--ec-paper); + --md-default-bg-color--light: #fbf8f3b3; + --md-typeset-a-color: #bc6518; + --md-code-bg-color: #fffdf9; + --md-typeset-table-color: #e8dac5; + --ec-inline-code: #8a4610; + --ec-border: #e8dac5; +} + +[data-md-color-scheme="slate"] { + --md-primary-fg-color: var(--ec-ember); + --md-primary-fg-color--light: #ffc58a; + --md-primary-fg-color--dark: var(--ec-ember-dark); + --md-accent-fg-color: #ffd2a6; + --md-accent-fg-color--transparent: #ff9e471f; + --md-default-bg-color: var(--ec-ink); + --md-default-bg-color--light: #111111b3; + --md-default-fg-color: #ece6de; + --md-typeset-a-color: #ffbf82; + --md-code-bg-color: #191919; + --md-typeset-table-color: #2d2d2d; + --ec-inline-code: #ffbf82; + --ec-border: #2d2d2d; } -html[data-theme="dark"] { - --pst-color-primary: var(--ec-ember); - --pst-color-secondary: #ffc58a; - --pst-color-link: #ffbf82; - --pst-color-link-hover: #ffd2a6; - --pst-color-accent: var(--ec-ember); - --pst-color-inline-code: #ffbf82; - --pst-color-background: #111111; - --pst-color-on-background: #161616; - --pst-color-surface: #191919; - --pst-color-border: #2d2d2d; - --pst-color-text-base: #ece6de; - --pst-color-text-muted: #c2b9ad; - --pst-color-heading: #ffffff; -} - -.bd-header { - backdrop-filter: blur(10px); - border-bottom: 1px solid color-mix(in srgb, var(--pst-color-border) 75%, transparent); +body { + --md-text-font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; } -.bd-page-width { - max-width: none; +.ec-copyright { + display: flex; + flex: 1; + flex-wrap: wrap; + justify-content: space-between; + align-items: baseline; + gap: 0.5rem 1rem; } -.bd-main .bd-content .bd-article-container { - max-width: none; +.ec-generator { + margin-left: auto; } -.bd-content .sd-card, -.bd-content .sd-tab-set, -.bd-content .admonition, -.bd-content div.literal-block-wrapper { - border-radius: 0.65rem; -} -.bd-content .sd-card { - border-color: color-mix(in srgb, var(--pst-color-border) 80%, transparent); +.md-header, +.md-tabs { + border-bottom: 1px solid color-mix(in srgb, var(--ec-border) 75%, transparent); box-shadow: none; } -.bd-content .sd-card:hover { - border-color: color-mix(in srgb, var(--pst-color-primary) 55%, var(--pst-color-border)); +.md-header__topic:first-child { + font-weight: 700; + letter-spacing: 0.16em; } -.bd-content .highlight, -.bd-content pre { - border-radius: 0.5rem; +.md-typeset h1, +.md-typeset h2, +.md-typeset h3, +.md-typeset h4 { + font-weight: 600; + letter-spacing: -0.02em; } -.bd-content h1, -.bd-content h2, -.bd-content h3, -.bd-content h4 { - letter-spacing: -0.02em; +.md-typeset h1 { + letter-spacing: -0.045em; } -.bd-content a { +.md-typeset a { + text-decoration: underline; text-decoration-thickness: 0.08em; - text-decoration-color: color-mix(in srgb, var(--pst-color-link) 45%, transparent); + text-decoration-color: color-mix(in srgb, var(--md-typeset-a-color) 45%, transparent); } -.bd-content a:hover, -.bd-content a:focus { - text-decoration-color: var(--pst-color-link-hover); +.md-typeset a:hover, +.md-typeset a:focus { + text-decoration-color: var(--md-accent-fg-color); } -.bd-content a code, -.bd-content a .pre, -.bd-content code.xref, -.bd-content a.sig-name, -.bd-content a.reference.internal code { - color: var(--pst-color-link); +.md-typeset .headerlink, +.md-typeset .md-button, +.md-typeset .grid.cards a { + text-decoration: none; } -.bd-content a:hover code, -.bd-content a:hover .pre, -.bd-content code.xref:hover, -.bd-content a.sig-name:hover, -.bd-content a.reference.internal:hover code, -.bd-content a:focus code, -.bd-content a:focus .pre, -.bd-content a.sig-name:focus, -.bd-content a.reference.internal:focus code { - color: var(--pst-color-link-hover); +.md-typeset :not(pre) > code, +.md-typeset a code { + color: var(--ec-inline-code); } -.bd-content .admonition.tip, -.bd-content .admonition.note, -.bd-content .admonition.important { - border-left: 4px solid var(--pst-color-primary); +.md-typeset a:hover code, +.md-typeset a:focus code { + color: var(--md-accent-fg-color); } -.bd-sidebar-primary, -.bd-sidebar-secondary { - background: color-mix(in srgb, var(--pst-color-background) 85%, transparent); +.md-typeset .highlight, +.md-typeset pre > code { + border-radius: 0.5rem; } -.navbar-nav .nav-link:hover, -.navbar-nav .nav-link:focus { - color: var(--pst-color-primary); +.md-typeset .highlight { + border: 1px solid var(--ec-border); } -.bd-footer { - border-top: 1px solid color-mix(in srgb, var(--pst-color-border) 75%, transparent); +.md-typeset .admonition, +.md-typeset details { + box-shadow: none; + border: 1px solid var(--ec-border); } -/* Shared identity with the landing page; article surfaces remain quiet. */ -body { - font-size: 1rem; - line-height: 1.8; +.md-typeset :is(.admonition, details):is(.note, .tip, .info, .example) { + border-left: 4px solid var(--md-primary-fg-color); } -.bd-header { - background: var(--pst-color-background); - box-shadow: none; + +/* Code dropdowns stay neutral, like the old sphinx-design ones. */ +.md-typeset details.example { + background-color: var(--md-code-bg-color); } -.navbar-brand { - gap: 0.6rem; + +.md-typeset details.example > summary { + background-color: color-mix(in srgb, var(--md-primary-fg-color) 8%, transparent); } -.navbar-brand img { - max-height: 3rem; - width: 3rem; - object-fit: contain; + +.md-typeset details.example > summary::before { + background-color: var(--md-primary-fg-color); } -.navbar-brand .logo__title { - font-size: 1.0625rem; - font-weight: 700; - letter-spacing: 0.16em; + +.md-typeset details.example > summary::after { + color: var(--md-primary-fg-color); } -.navbar-nav .nav-link { - font-size: 0.8625rem; - font-weight: 500; + +.md-typeset .grid.cards > ul > li { + border-color: var(--ec-border); + background: var(--md-code-bg-color); } -.search-button-field { - border: 1px solid var(--pst-color-border); - border-radius: 0.5rem; - background: var(--pst-color-surface); + +.md-typeset .grid.cards > ul > li:hover, +.md-typeset .grid.cards > ul > li:focus-within { + border-color: color-mix(in srgb, var(--md-primary-fg-color) 55%, var(--ec-border)); box-shadow: none; - font-size: 0.8625rem; -} -/* Local variables keep the navigation legible in both colour modes. */ -.bd-sidebar-primary { - --pst-color-background: #111111; - --pst-color-on-background: #191919; - --pst-color-surface: #191919; - --pst-color-border: #303030; - --pst-color-text-base: #bfc0c0; - --pst-color-text-muted: #a5a5a5; - --pst-color-heading: #f3f0eb; - --pst-color-primary: #ff9e47; - --pst-color-link: #bfc0c0; - --pst-color-link-hover: #ffbf82; - background: #111111; - color: #bfc0c0; - border-right: 1px solid #2a2a2a; -} -.bd-sidebar-primary .sidebar-primary-items__start { - padding-top: 1.5rem; -} -.bd-sidebar-primary .sidebar-header-items { - color: #bfc0c0; -} -.bd-sidebar-primary .nav-link, -.bd-sidebar-primary .bd-sidenav a { - border-radius: 0.4rem; - padding-block: 0.5rem; - font-size: 0.8425rem; - line-height: 1.6; -} -.bd-sidebar-primary .bd-sidenav a:hover, -.bd-sidebar-primary .bd-sidenav a:focus-visible, -.bd-sidebar-primary .bd-sidenav a.current, -.bd-sidebar-primary .nav-link:hover, -.bd-sidebar-primary .nav-link:focus-visible, -.bd-sidebar-primary li.current > .nav-link, -.bd-sidebar-primary .nav-link.active { - color: #ffbf82; - background: #ff9e4712; -} -.bd-sidebar-primary .caption-text { - color: #999; - font-size: 0.7125rem; - letter-spacing: 0.12em; - text-transform: uppercase; } -.bd-sidebar-secondary { - background: var(--pst-color-background); - font-size: 0.8125rem; -} -.bd-article { - padding-top: 1.75rem; -} -.bd-article h1 { - font-size: clamp(2rem, 4vw, 2.8rem); - font-weight: 600; - line-height: 1.2; - letter-spacing: -0.045em; - margin-bottom: 1.75rem; -} -.bd-article h2 { - font-size: 1.7rem; - font-weight: 600; - margin-top: 2.5rem; -} -.bd-article h3 { - font-size: 1.25rem; - font-weight: 600; -} -.bd-article .highlight { - border: 1px solid var(--pst-color-border); - background: var(--pst-color-surface); -} -.bd-article pre { - padding: 1.2rem; - font-size: 0.8625rem; - line-height: 1.75; + +.md-typeset table:not([class]) th { + background: var(--md-code-bg-color); } -.bd-article .sig { + +/* API signatures get the same ember rule as the old Sphinx pages. */ +.md-typeset .doc-signature { + border-left: 3px solid var(--md-primary-fg-color); border-radius: 0.4rem; - border-left: 3px solid var(--pst-color-primary); -} -.bd-content .sd-card { - background: var(--pst-color-surface); - transition: border-color 0.2s ease; -} -.bd-content .admonition { - box-shadow: none; - border: 1px solid var(--pst-color-border); -} -.bd-content table { - font-size: 0.9125rem; - border-color: var(--pst-color-border); -} -.bd-content table thead { - background: var(--pst-color-surface); -} -.bd-content .sd-btn { - border-radius: 0.45rem; - font-weight: 600; - font-size: 0.8625rem; -} -.prev-next-area a { - border: 1px solid var(--pst-color-border); - border-radius: 0.6rem; - padding: 1rem; -} -.prev-next-area a:hover { - border-color: var(--pst-color-primary); -} -.bd-footer { - font-size: 0.7825rem; - color: var(--pst-color-text-muted); } + a:focus-visible, button:focus-visible { - outline: 2px solid var(--pst-color-primary); + outline: 2px solid var(--md-primary-fg-color); outline-offset: 3px; } -@media (max-width: 767px) { - .bd-article { padding-top: 1rem; } - .bd-article h2 { font-size: 1.4rem; } - .prev-next-area a { padding: 0.65rem; } -} + @media (prefers-reduced-motion: reduce) { - .bd-content .sd-card { transition: none; } + .md-typeset .grid.cards > ul > li { + transition: none; + } +} + +.md-grid { + max-width: 1800px; +} + +@media (min-width: 76.25em) { + .md-sidebar--primary { + width: 18rem; + } + + [dir="ltr"] .md-sidebar--primary .md-sidebar__inner { + padding-right: 0; + } } diff --git a/docs/_static/css/home.css b/docs/_static/css/home.css index c61faf9c..02869b66 100644 --- a/docs/_static/css/home.css +++ b/docs/_static/css/home.css @@ -1,4 +1,4 @@ -/* Scoped because Sphinx loads this stylesheet on article pages too. */ +/* Scoped to .ec-home; only the landing template (overrides/home.html) loads this file. */ .ec-home { --ember:#ff9e47; --fog:#bfc0c0; @@ -87,7 +87,7 @@ .ec-home .hero { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr); - align-items:start; + align-items:stretch; gap:52px; padding:64px 0; } @@ -157,12 +157,19 @@ .ec-home .first-run a span { color:var(--ember); margin-left:6px; } .ec-home .first-run-logo { display:block; width:100%; height:auto; filter:drop-shadow(0 0 18px #ff9e4730); } .ec-home .first-run p { grid-column:1 / -1; margin:4px 0 0; padding-top:14px; border-top:1px solid #ffffff12; color:#999; font-size:11px; line-height:1.8; } +.ec-home .copy { display:flex; flex-direction:column; min-width:0; } +.ec-home .install-cta { margin-top:auto; padding-top:24px; } +.ec-home .install-command { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; border:1px solid #ff9e4760; border-radius:9px; background:#ff9e4710; } +.ec-home .install-command code { color:var(--ember); font-size:16px; user-select:all; } +.ec-home .install-command button { flex-shrink:0; padding:8px 10px; border:1px solid #ff9e4740; border-radius:5px; background:transparent; color:var(--ember); font:inherit; font-size:11px; cursor:pointer; } +.ec-home .install-command button:hover { background:#ff9e4718; } +.ec-home .install-command button:focus-visible { outline:2px solid var(--ember); outline-offset:4px; } @media(max-width:480px) { .ec-home .first-run { grid-template-columns:minmax(0,1fr) 84px; gap:8px; padding:18px; } .ec-home .first-run li { font-size:12px; } } -.ec-home .configuration { min-width:0; } -.ec-home .configuration .cards { grid-template-columns:1fr; gap:12px; margin-top:20px; } +.ec-home .configuration { display:flex; flex-direction:column; min-width:0; } +.ec-home .configuration .cards { flex:1; grid-template-columns:1fr; gap:12px; margin-top:20px; } .ec-home .configuration .card { padding:20px 24px; } .ec-home .configuration h3 { margin:10px 0 8px; } .ec-home .configuration .card p { margin-bottom:12px; } diff --git a/docs/_static/js/home.js b/docs/_static/js/home.js index 084a7cfa..21c59429 100644 --- a/docs/_static/js/home.js +++ b/docs/_static/js/home.js @@ -1,4 +1,14 @@ (() => { + const installCommand = document.querySelector('.install-command'); + installCommand.querySelector('button').addEventListener('click', async () => { + const status = installCommand.querySelector('[aria-live]'); + try { + await navigator.clipboard.writeText(installCommand.querySelector('code').textContent); + status.textContent = 'Copied!'; + } catch { + status.textContent = 'Select command to copy'; + } + }); const reduced = matchMedia('(prefers-reduced-motion: reduce)'); const fine = matchMedia('(hover: hover) and (pointer: fine)'); const logo = document.querySelector('.first-run-logo'); diff --git a/docs/_static/landing/clouds.png b/docs/_static/landing/clouds.png deleted file mode 100644 index c70603dd..00000000 Binary files a/docs/_static/landing/clouds.png and /dev/null differ diff --git a/docs/_static/landing/github.svg b/docs/_static/landing/github.svg deleted file mode 100644 index c679c236..00000000 --- a/docs/_static/landing/github.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/_static/landing/name.png b/docs/_static/landing/name.png deleted file mode 100644 index 6d4a837a..00000000 Binary files a/docs/_static/landing/name.png and /dev/null differ diff --git a/docs/_static/landing/stars.png b/docs/_static/landing/stars.png deleted file mode 100644 index 931d1106..00000000 Binary files a/docs/_static/landing/stars.png and /dev/null differ diff --git a/docs/_static/landing/twinkling.png b/docs/_static/landing/twinkling.png deleted file mode 100644 index 1909d8c0..00000000 Binary files a/docs/_static/landing/twinkling.png and /dev/null differ diff --git a/docs/_templates/autosummary/attribute.rst b/docs/_templates/autosummary/attribute.rst deleted file mode 100644 index a9293352..00000000 --- a/docs/_templates/autosummary/attribute.rst +++ /dev/null @@ -1,6 +0,0 @@ -{{ objname | escape | underline}} - -.. currentmodule:: {{ module }} - -.. autoattribute:: {{ objname }} - :no-index: diff --git a/docs/_templates/autosummary/class.rst b/docs/_templates/autosummary/class.rst deleted file mode 100644 index 8e22ada4..00000000 --- a/docs/_templates/autosummary/class.rst +++ /dev/null @@ -1,37 +0,0 @@ -{{ name | escape | underline}} - -.. currentmodule:: {{ module }} - -.. autoclass:: {{ name }} - :show-inheritance: - :members: - - {% block methods %} - {% if methods %} - .. rubric:: {{ _('Methods') }} - - .. autosummary:: - :toctree: {{ name }} - - {% for item in methods %} - {{ item | filter_out_parent_class_members(name, module) }} - {%- endfor %} - - {% endif %} - {% endblock %} - - - {% block attributes %} - {% if attributes %} - .. rubric:: {{ _('Attributes') }} - - .. autosummary:: - :nosignatures: - :toctree: {{ name }} - - {% for item in attributes %} - {{ item | filter_out_parent_class_members(name, module) }} - {%- endfor %} - - {% endif %} - {% endblock %} diff --git a/docs/_templates/autosummary/function.rst b/docs/_templates/autosummary/function.rst deleted file mode 100644 index 7dea8137..00000000 --- a/docs/_templates/autosummary/function.rst +++ /dev/null @@ -1,5 +0,0 @@ -{{ objname | escape | underline}} - -.. currentmodule:: {{ module }} - -.. autofunction:: {{ objname }} diff --git a/docs/_templates/autosummary/method.rst b/docs/_templates/autosummary/method.rst deleted file mode 100644 index 541b0784..00000000 --- a/docs/_templates/autosummary/method.rst +++ /dev/null @@ -1,6 +0,0 @@ -{{ objname | escape | underline}} - -.. currentmodule:: {{ module }} - -.. automethod:: {{ objname }} - :no-index: diff --git a/docs/_templates/autosummary/module.rst b/docs/_templates/autosummary/module.rst deleted file mode 100644 index 9c014579..00000000 --- a/docs/_templates/autosummary/module.rst +++ /dev/null @@ -1,64 +0,0 @@ -{{ name | escape | underline}} - -.. automodule:: {{ fullname }} - - {% block attributes %} - {% if attributes %} - .. rubric:: {{ _('Module Attributes') }} - - .. autosummary:: - :toctree: {{ name }} - {% for item in attributes %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - - {% block functions %} - {% if functions %} - .. rubric:: {{ _('Functions') }} - - .. autosummary:: - :toctree: {{ name }} - {% for item in functions %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - - {% block classes %} - {% if classes %} - .. rubric:: {{ _('Classes') }} - - .. autosummary:: - :toctree: {{ name }} - {% for item in classes %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - - {% block exceptions %} - {% if exceptions %} - .. rubric:: {{ _('Exceptions') }} - - .. autosummary:: - :toctree: {{ name }} - {% for item in exceptions %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - -{% block modules %} -{% if modules %} -.. rubric:: Modules - -.. autosummary:: - :toctree: {{ name }} - :recursive: -{% for item in modules %} - {{ item }} -{%- endfor %} -{% endif %} -{% endblock %} diff --git a/docs/_templates/autosummary/property.rst b/docs/_templates/autosummary/property.rst deleted file mode 100644 index e464fcd8..00000000 --- a/docs/_templates/autosummary/property.rst +++ /dev/null @@ -1,6 +0,0 @@ -{{ objname | escape | underline}} - -.. currentmodule:: {{ module }} - -.. autoproperty:: {{ objname }} - :no-index: diff --git a/docs/changelog.md b/docs/changelog.md new file mode 100644 index 00000000..005952b3 --- /dev/null +++ b/docs/changelog.md @@ -0,0 +1,7 @@ +--- +title: Changelog +--- + +# Changelog + +--8<-- "CHANGELOG.md" diff --git a/docs/conf.py b/docs/conf.py deleted file mode 100644 index ce70b41f..00000000 --- a/docs/conf.py +++ /dev/null @@ -1,222 +0,0 @@ -# Configuration file for the Sphinx documentation builder. -# -# For the full list of built-in configuration values, see the documentation: -# https://www.sphinx-doc.org/en/master/usage/configuration.html -import os -import sys -from datetime import datetime -from importlib import import_module - -from jinja2.filters import FILTERS - -sys.path.insert(0, os.path.abspath("..")) - -# # -- Core package import ----------------------------------------------------- -# core_dist = distribution("eclypse-core") -# core_path = os.path.join(core_dist.locate_file("."), "eclypse_core-stubs") -# print("Including", core_path) -# sys.path.insert(0, core_path) - - -# -- Project information ----------------------------------------------------- -# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information -project = "ECLYPSE" -author = "Jacopo Massa & Valerio De Caro" -copyright = f"{(datetime.now().year)}, {author}" - -# -- General configuration --------------------------------------------------- -# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration - -extensions = [ - "sphinx.ext.autodoc", - "sphinx.ext.autosummary", - "sphinx.ext.napoleon", - "sphinx.ext.intersphinx", - "sphinx.ext.viewcode", - "sphinx.ext.autosectionlabel", - "sphinx.ext.coverage", - "sphinxcontrib.icon", - "sphinx_copybutton", - "sphinx_favicon", - "sphinx_design", - "myst_parser", -] -viewcode_follow_imported_members = True -autosummary_generate = True -autosectionlabel_prefix_document = True -myst_enable_extensions = ["colon_fence"] - -templates_path = ["_templates"] -exclude_patterns = [ - "_build", - "Thumbs.db", - ".DS_Store", - "images/*.tiff", - "images/legacy", -] -suppress_warnings = ["toc.not_included"] - -coverage_show_missing_items = True -# Automatically extract typehints when specified and place them in -# descriptions of the relevant function/method. -autodoc_typehints = "description" -autodoc_member_order = "bysource" -# Don't show class signature with the class' name. -autodoc_class_signature = "separated" - -autodoc_default_options = {"undoc-members": True} - -# -- Options for HTML output ------------------------------------------------- -# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output - -html_theme = "pydata_sphinx_theme" -html_logo = "_static/images/logo.png" - -html_static_path = ["_static"] -html_extra_path = ["_static/landing"] -html_css_files = [ - "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap", - "css/custom.css", - "css/home.css", -] - -html_context = { - "github_url": "https://github.com", - "github_user": "eclypse-org", - "github_repo": "eclypse", - "github_version": "main", - "doc_path": "docs", -} - - -def landing_page_template(app, pagename, templatename, context, doctree): - """Use the landing template whenever Sphinx rebuilds the root document.""" - if pagename == "index": - return "index.html" - return None - - -def setup(app): - app.connect("html-page-context", landing_page_template) - - -favicons = [ - { - "rel": "icon", - "sizes": "16x16", - "href": "favicon/favicon-16x16.png", - }, - { - "rel": "icon", - "sizes": "32x32", - "href": "favicon/favicon-32x32.png", - }, - { - "rel": "apple-touch-icon", - "sizes": "180x180", - "href": "favicon/apple-touch-icon.png", - "color": "#000000", - }, - { - "rel": "android-chrome", - "sizes": "192x192", - "href": "favicon/android-chrome-192x192.png", - }, - { - "rel": "android-chrome", - "sizes": "512x512", - "href": "favicon/android-chrome-512x512.png", - }, - { - "rel": "manifest", - "href": "favicon/site.webmanifest", - }, - { - "rel": "shortcut icon", - "href": "favicon/favicon.ico", - }, -] - -icon_links = [ - { - "name": "GitHub", - "url": "https://github.com/eclypse-org/eclypse", - "icon": "fa-brands fa-github", - "type": "fontawesome", - }, -] - -html_theme_options = { - "navbar_start": ["navbar-logo"], - "navbar_center": ["navbar-nav"], - "navbar_end": ["theme-switcher", "navbar-icon-links"], - "navbar_persistent": ["search-button-field"], - "navbar_align": "left", - "secondary_sidebar_items": ["page-toc", "edit-this-page"], - "footer_start": ["last-updated", "copyright"], - "footer_center": ["sphinx-version"], - "footer_end": ["theme-version"], - "show_nav_level": 1, - "navigation_depth": 2, - "icon_links": icon_links, - "header_links_before_dropdown": 4, - "logo": { - "text": "ECLYPSE", - "alt_text": "ECLYPSE - Home", - "image_dark": "_static/images/logo.png", - "image_light": "_static/images/logo.png", - }, -} -source_suffix = [".rst", ".pyi"] -html_sidebars = {"**": ["sidebar-nav-bs", "sidebar-ethical-ads"]} - -html_scaled_image_link = False - - -def patch_autosummary_name_collisions(): - """Resolve package-level name collisions for autosummary generation. - - The ``eclypse.workflow.event`` package contains an ``event`` submodule. During - the docs build we point the package attribute to the submodule so the - generated module page documents ``eclypse.workflow.event.event`` reliably. - - Recent autosummary releases also expect package-level attributes for - relative submodule entries such as ``simulation`` under ``eclypse`` and - ``defaults`` under ``eclypse.report.metrics``. We expose those submodules - explicitly during the docs build so the generated package pages keep using - the concise autosummary syntax already present in the source tree. - """ - - root_pkg = import_module("eclypse") - root_pkg.simulation = import_module("eclypse.simulation") - - metrics_pkg = import_module("eclypse.report.metrics") - metrics_pkg.defaults = import_module("eclypse.report.metrics.defaults") - - event_pkg = import_module("eclypse.workflow.event") - event_pkg.event = import_module("eclypse.workflow.event.event") - - -patch_autosummary_name_collisions() - - -def filter_out_undoc_class_members(member_name, class_name, module_name): - module = import_module(module_name) - cls = getattr(module, class_name) - if getattr(cls, member_name).__doc__: - return f"~{class_name}.{member_name}" - else: - return "" - - -def filter_out_parent_class_members(member_name, class_name, module_name): - module = import_module(module_name) - cls = getattr(module, class_name) - if member_name in cls.__dict__: - return f"~{class_name}.{member_name}" - else: - return "" - - -FILTERS["filter_out_undoc_class_members"] = filter_out_undoc_class_members -FILTERS["filter_out_parent_class_members"] = filter_out_parent_class_members diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 00000000..a572d90d --- /dev/null +++ b/docs/index.md @@ -0,0 +1,3 @@ +--- +template: home.html +--- diff --git a/docs/index.rst b/docs/index.rst deleted file mode 100644 index e1ae11e6..00000000 --- a/docs/index.rst +++ /dev/null @@ -1,57 +0,0 @@ -.. toctree:: - :maxdepth: 6 - :hidden: - - Overview - Reference - Changelog - - - -.. image:: _static/images/light-transparent.png - :align: center - :width: 20% - :class: only-light - -.. image:: _static/images/dark-transparent.png - :align: center - :width: 20% - :class: only-dark - -===================== -ECLYPSE documentation -===================== -**ECLYPSE** (Edge-CLoud pYthon Platform for Simulated runtime Environments) -is a Python framework for modelling service-based applications on cloud-edge -infrastructures. - -It represents infrastructures and applications as resource-aware graphs, then -uses placement strategies, update policies, events, and metrics to study how a -deployment behaves over time. - -You can use ECLYPSE in two modes: - -- **local simulation**, where services can remain abstract graph nodes and runs - focus on placement, resource evolution, and reporting; -- **remote emulation**, where services are implemented as concrete runtime - objects and executed through Ray with MPI-style or REST-style communication. - -Key features include: - -- graph-based infrastructures and applications, -- built-in and custom placement strategies, -- dynamic update policies for resources, failures, workload, and topology, -- event, callback, and metric workflows, -- report storage through CSV, JSON, and Parquet, plus TensorBoard-compatible - metric sinks, -- optional remote service emulation with explicit communication interfaces. - -.. button-ref:: source/overview/index - :ref-type: myst - :outline: - :color: secondary - :expand: - :align: center - :shadow: - - :octicon:`play;1em;info` Start using ECLYPSE diff --git a/docs/overrides/404.html b/docs/overrides/404.html new file mode 100644 index 00000000..1310840f --- /dev/null +++ b/docs/overrides/404.html @@ -0,0 +1,27 @@ +{% extends "main.html" %} + +{% block content %} +

404 - Not found

+ +{% endblock %} diff --git a/docs/_templates/index.html b/docs/overrides/home.html similarity index 82% rename from docs/_templates/index.html rename to docs/overrides/home.html index 933bf6c2..2a8d7698 100644 --- a/docs/_templates/index.html +++ b/docs/overrides/home.html @@ -24,14 +24,14 @@
- + ECLYPSEDOCUMENTATION GitHub ↗
@@ -45,28 +45,28 @@

Set up Cloud–Edge scenarios in Python.

the scenario locally and inspect the report before moving to remote emulation.

- Run your first scenario - Installation + Installation

Your first run

  1. - Install ECLYPSE
  2. Create your scenario
  3. - Run and inspect the report
  4. @@ -84,12 +84,20 @@

    Your first run

Start locally: no service implementation required.

+
+
+ pip install eclypse + +
+

WHAT YOU CONFIGURE

Start with three building blocks.

- Looking for runnable examples? Browse the example guides →
@@ -190,7 +198,7 @@

Inspect the report.
Change one assumption.

Query application, service and interaction frames. Keep the seed and configuration explicit when comparing scenarios.

- Read and query results → @@ -216,7 +224,7 @@

Work with service graphs

Explore resource-aware deployment using abstract services, placement strategies and update policies. No service implementation is needed.

- Start locally → @@ -227,24 +235,24 @@

Run implemented services

Provide service logic and execute it through Ray with MPI-style or REST-style communication. This requires additional runtime setup.

- Set up remote emulation → diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 00000000..ea1e0e64 --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block extrahead %} + + + + +{% endblock %} + +{% block scripts %} + {{ super() }} + +{% endblock %} diff --git a/docs/overrides/partials/copyright.html b/docs/overrides/partials/copyright.html new file mode 100644 index 00000000..05edd4df --- /dev/null +++ b/docs/overrides/partials/copyright.html @@ -0,0 +1,8 @@ + diff --git a/docs/overrides/partials/nav.html b/docs/overrides/partials/nav.html new file mode 100644 index 00000000..cae8e0d5 --- /dev/null +++ b/docs/overrides/partials/nav.html @@ -0,0 +1,34 @@ +{% import "partials/nav-item.html" as item with context %} +{% set class = "md-nav md-nav--primary" %} +{% if "navigation.tabs" in features %} + {% set class = class ~ " md-nav--lifted" %} +{% endif %} +{% if "toc.integrate" in features %} + {% set class = class ~ " md-nav--integrated" %} +{% endif %} + diff --git a/docs/overview/advanced/emulation/emulation.md b/docs/overview/advanced/emulation/emulation.md new file mode 100644 index 00000000..4614534c --- /dev/null +++ b/docs/overview/advanced/emulation/emulation.md @@ -0,0 +1,121 @@ +# Emulation + +ECLYPSE supports **emulation mode**, in which service logic is executed as real +concurrent processes distributed over a physical or virtual cluster. This is +built on top of [Ray](https://docs.ray.io/en/latest/). + +Unlike local simulation, where services can remain abstract application nodes, +emulation requires you to implement the actual **runtime behaviour** of each +service. + +In this page, we focus on the elements that differ from standard simulation. + +## Ray Overview + +Ray is based on the concept of **actors**: lightweight, stateful processes that live in a distributed cluster and interact via message passing. + +Each actor: + +- encapsulates state and behaviour, +- runs in parallel with others, +- persists across calls. + +Ray also provides a built-in **object store** that supports asynchronous, shared-memory communication across the cluster. + +ECLYPSE uses Ray actors to represent application services when running in emulation mode. + + +## Enabling Emulation + +To activate emulation from a +[simulation run](../../concepts/simulation-configuration.md), +you must either: + +- set the flag `remote=True` when creating the simulation, or +- pass a [RemoteBootstrap][eclypse.remote.bootstrap.bootstrap.RemoteBootstrap] object, which defines the **Ray cluster configuration**. + +Example: + +```python +from eclypse.remote.bootstrap import RemoteBootstrap +from eclypse.simulation import Simulation, SimulationConfig + +bootstrap = RemoteBootstrap() +config = SimulationConfig(remote=bootstrap) +simulation = Simulation(infrastructure, simulation_config=config) +``` + +## Implementing a Service { #implementing-a-service } + +To define a service in emulation, subclass +[Service][eclypse.remote.service.service.Service] or +[RESTService][eclypse.remote.service.rest.RESTService]. + +These classes wrap a Ray actor that runs a loop on a remote node. + +You must implement the method: + +- [step][eclypse.remote.service.service.Service.step] -- defines one iteration of service behaviour. + +Optionally, you can override: + +- [on_deploy][eclypse.remote.service.service.Service.on_deploy] -- called just before the service starts executing. +- [on_undeploy][eclypse.remote.service.service.Service.on_undeploy] -- called after the service stops. + +If the service is created with `store_step=True`, the return value of +[step][eclypse.remote.service.service.Service.step] is pushed into the +service's step buffer and can later be collected through the default +`step_result` metric. + +??? example "Example: Echo Service" + + The following example shows a simple service that sends a message to its + neighbours via MPI and stores one value per iteration. + + ```python + import asyncio + from eclypse.remote.service import Service + + class EchoService(Service): + def __init__(self, service_id: str): + super().__init__(service_id, store_step=True) + self.i = 0 + + async def step(self): + message = {"msg": f"Hello from {self.id}!"} + for neighbour in await self.mpi.get_neighbors(): + await self.mpi.send(neighbour, message) + self.i += 1 + await asyncio.sleep(1) + return self.i + ``` + + !!! note + + The parameter `store_step=True` ensures that the return value of + [step][eclypse.remote.service.service.Service.step] can be collected + later by reporting tools. + + +## Messaging Protocols + +ECLYPSE currently supports two service communication protocols: + +- a mock **MPI-like interface**, exposed as `self.mpi` inside a service, +- a REST interface, via subclassing [RESTService][eclypse.remote.service.RESTService]. + +In both cases, services may communicate with each other by sending structured messages. Routing and delivery are handled by the runtime. + +### Reporting emulation results + +The default metric `step_result` reports the values returned by the service's +[step][eclypse.remote.service.service.Service.step] method, in the order +they were produced. This is useful for monitoring application-level behaviour +over time. + +The step buffer is a FIFO queue: each time `step_result` is triggered (by +default, once per `enact`), it removes and reports the **oldest** stored +value. If `step` runs more often than the metric is triggered, values +accumulate and the report lags behind the service. The buffer holds up to +`DEFAULT_STEP_QUEUE_SIZE` (1024) values; when it is full, the oldest ones are +dropped. diff --git a/docs/overview/advanced/emulation/index.md b/docs/overview/advanced/emulation/index.md new file mode 100644 index 00000000..462e3c8c --- /dev/null +++ b/docs/overview/advanced/emulation/index.md @@ -0,0 +1,19 @@ +# Emulation + +
+ +- :octicons-codespaces-16: **[Emulation](emulation.md)** + + --- + + Define the logic of your application services and run them as remote + services on a machine or a cluster. + +- :octicons-comment-discussion-16: **[Messaging](messaging.md)** + + --- + + Exchange messages between services in emulation mode using the MPI-like + and REST-style interfaces. + +
diff --git a/docs/overview/advanced/emulation/messaging.md b/docs/overview/advanced/emulation/messaging.md new file mode 100644 index 00000000..6a6cb69c --- /dev/null +++ b/docs/overview/advanced/emulation/messaging.md @@ -0,0 +1,200 @@ +# Messaging + +When running in [emulation mode](emulation.md), ECLYPSE allows services to communicate directly with one another using structured [EclypseCommunicationInterface][eclypse.remote.communication.interface.EclypseCommunicationInterface]. + +Two communication models are currently supported: + +- an **MPI-like interface** ([EclypseMPI][eclypse.remote.communication.mpi.interface.EclypseMPI]), designed for low-latency message passing +- a **REST-style interface** ([EclypseREST][eclypse.remote.communication.rest.interface.EclypseREST]), designed for loosely coupled HTTP interactions + +These APIs can be used from within emulated services to exchange information, +coordinate behaviour, or simulate service-level protocols. + + +## Communication at a glance + +=== "MPI" + + ```mermaid + sequenceDiagram + participant A as Sending service + participant Q as Recipient queue + participant B as Receiving service + A->>Q: await mpi.send(recipient_id, data) + B->>Q: await mpi.recv() + Q-->>B: Message(source, data) + ``` + + The receiver consumes queued messages explicitly. A reply is another send. + +=== "REST" + + ```mermaid + sequenceDiagram + participant A as Calling service + participant B as Registered endpoint + A->>B: await rest.post(service/route, ...) + B-->>A: Response status and body + ``` + + The caller addresses a registered endpoint and inspects the response. + +## MPI-style messaging + +The MPI interface provides basic primitives to send and receive messages among services deployed in the same application. + +Each [Service][eclypse.remote.service.service.Service] has access to an [mpi][eclypse.remote.service.service.Service.mpi] attribute (an instance of the internal communication layer), through which it can: + +- send messages to specific services ([send][eclypse.remote.communication.mpi.interface.EclypseMPI.send]) +- broadcast messages to all neighbours ([bcast][eclypse.remote.communication.mpi.interface.EclypseMPI.bcast]) +- receive incoming messages ([recv][eclypse.remote.communication.mpi.interface.EclypseMPI.recv]) + +All methods are **asynchronous** and simulate network cost using the placement and topology of the infrastructure. +The send and broadcast requests must be awaited explicitly. + +```python title="Example: Use MPI interface" +""" ... inside the step() method of service-A """ + +# Send to one neighbour +await self.mpi.send("service-B", {"msg": "ping"}) + +# Broadcast to all neighbours +await self.mpi.bcast({"msg": "update"}) + +# Receive next message +message = await self.mpi.recv() + +# Wait at most 5 seconds; raises TimeoutError if nothing arrives +message = await self.mpi.recv(timeout=5.0) + +# Receive immediately; raises queue.Empty if no matching message is queued +message = await self.mpi.recv(source="service-B", block=False) + +# Receive this sender's oldest message; other senders stay queued +message = await self.mpi.recv(timeout=5.0, source="service-B") +``` + +`recv()` returns the oldest queued message as a `Message` object. +Its `source` attribute identifies the sending service, while `data` contains +the application data unchanged, including any application-defined `source` key. +For example, use `message.source` and `message.data["msg"]`. Pass `source` to receive +the oldest message from a specific service, leaving other messages queued. +By default, reception waits until a matching message arrives; +`timeout` limits this wait in seconds and raises `TimeoutError` if it expires. +Use `block=False` to receive immediately or raise `queue.Empty` if no matching +message is available; in this mode, `timeout` is ignored. Cancelling or timing +out a receive leaves later messages available for the next call. + +### @exchange() decorator + +In addition to direct calls, the +[EclypseMPI][eclypse.remote.communication.mpi.interface.EclypseMPI] interface +provides a decorator +([`@exchange()`][eclypse.remote.communication.mpi.interface.exchange]) +to define communication behaviour declaratively inside service methods. + +You can decorate a method to: + +- receive a message before it runs (`receive=True`) +- send the return value to a target (`send=True`) +- broadcast the return value to all neighbours (`broadcast=True`) + +**Sending and broadcasting are mutually exclusive.** + +```python title="Example: Using the exchange decorator" +from eclypse.remote.service import Service +from eclypse.remote.communication.mpi import exchange + +class EchoService(Service): + + @exchange(receive=True, send=True) + async def step(self, source, message): + reply = {"msg": f"Echo: {message['msg']}"} + return source, reply +``` + +## REST-style Messaging + +ECLYPSE also provides a REST-style communication interface for services. This +mode models service interaction using HTTP-like semantics and is better suited +for stateless, loosely coupled communication patterns. + +To use this style, your service must subclass +[RESTService][eclypse.remote.service.rest.RESTService]. + +### @register_endpoint() decorator + +You define REST endpoints inside your service by decorating methods with +[`@register_endpoint()`][eclypse.remote.communication.rest.interface.register_endpoint]. + +Each endpoint: + +- is associated with a URL pattern and an HTTP method (`GET`, `POST`, `PUT`, `DELETE`) +- receives the request data as keyword arguments +- must return a tuple: `(HTTPStatusCode, response_dict)` + +Example: + +```python +from eclypse.remote.communication.rest.codes import HTTPStatusCode +from eclypse.remote.communication.rest.interface import register_endpoint +from eclypse.remote.service import RESTService + +class StoreService(RESTService): + + def __init__(self, service_id: str): + super().__init__(service_id) + self.store = {} + + @register_endpoint("/data", method="POST") + async def store_data(self, key: str, value: Any): + self.store[key] = value + return HTTPStatusCode.CREATED, {"status": "ok"} + + @register_endpoint("/data", method="GET") + def get_data(self, key: str): + value = self.store.get(key, None) + return HTTPStatusCode.OK, {"value": value} +``` + +### Making Requests + +From within a service, you can send requests using: + +- [get][eclypse.remote.communication.rest.interface.EclypseREST.get] +- [post][eclypse.remote.communication.rest.interface.EclypseREST.post] +- [put][eclypse.remote.communication.rest.interface.EclypseREST.put] +- [delete][eclypse.remote.communication.rest.interface.EclypseREST.delete] + +```python title="Example: Make a POST request to another service" +""" ... inside the step() method of service-A """ + +await self.rest.post("StoreService/data", key="item1", value=42) +``` + +Each method returns an HTTP request object. When awaited, the request is +executed and the object exposes: + +- `status_code` +- `body` +- `response` +- `route` + +For example: + +```python +request = await self.rest.post("StoreService/data", key="item1", value=42) +print(request.status_code) +print(request.body) +``` + +### Endpoint Resolution + +When a REST service starts, it scans all decorated methods using +[`@register_endpoint()`][eclypse.remote.communication.rest.interface.register_endpoint] +and registers them dynamically. Endpoint URLs are scoped per service ID: the +final URL is prefixed by the service name. + +For example, if a service `s1` exposes `/data`, the full URL is: `s1/data`. + +Routing and delivery are managed by the infrastructure runtime. diff --git a/docs/overview/advanced/index.md b/docs/overview/advanced/index.md new file mode 100644 index 00000000..02d4a12d --- /dev/null +++ b/docs/overview/advanced/index.md @@ -0,0 +1,26 @@ +# Advanced topics + +
+ +- :octicons-workflow-16: **[Triggers](triggers.md)** + + --- + + Learn how to define and use **triggers** to activate complex workflows in your simulation. + Explore built-in triggers or create your own custom triggers to suit your simulation needs. + +- :octicons-codespaces-16: **[Emulation](emulation/index.md)** + + --- + + Move from abstract simulations to remote service execution with + real service logic and explicit communication interfaces. + +- :octicons-log-16: **[Reporting](reporting.md)** + + --- + + Define metrics, choose storage formats, and access results through + the report API and dataframe backends. + +
diff --git a/docs/overview/advanced/reporting.md b/docs/overview/advanced/reporting.md new file mode 100644 index 00000000..0d8420d2 --- /dev/null +++ b/docs/overview/advanced/reporting.md @@ -0,0 +1,213 @@ +# Reporting + +ECLYPSE provides a reporting pipeline with three moving parts: + +1. **Define what to report** through metrics, +2. **choose how to persist it** through report formats and reporters, +3. **load and query the results** through [Report][eclypse.report.report.Report]. + +## Defining Metrics + +Metrics are reportable events that collect and return structured data during the simulation. +Technically, they are events with the +[METRIC][eclypse.workflow.event.role.EventRole.METRIC] role, exposed through the +`@metric.` decorators provided in [eclypse.report.metrics][eclypse.report.metrics]. + +Metrics, callbacks, and regular events all share the same event engine, but they serve +different purposes: + +- regular events drive the workflow, +- callbacks attach post-event logic without making reporting the primary goal, +- metrics attach post-event logic whose output is intended to be written by reporters. + +This distinction matters because a metric is both: + +- a post-event hook, so it can access the triggering event payload, +- a reporting primitive, so its return value is prepared for the reporting pipeline. + +By contrast, a plain callback can inspect the same context, but it is mainly meant for +workflow composition or transient post-processing. + +There are 7 decorators corresponding to different metric types: + +- [simulation][eclypse.report.metrics.metric.simulation] +- [infrastructure][eclypse.report.metrics.metric.infrastructure] +- [node][eclypse.report.metrics.metric.node] +- [link][eclypse.report.metrics.metric.link] +- [application][eclypse.report.metrics.metric.application] +- [service][eclypse.report.metrics.metric.service] +- [interaction][eclypse.report.metrics.metric.interaction] + +See [Scheduled event decorators](../concepts/events.md#event-decorator) for details on scheduled event helpers. A metric lets +you specify: + +- **What data to collect** +- **How often to report** (using [triggers](triggers.md)) +- **How to report it** (via the `report` argument) + +Example: + +```python title="Example of an application metric returning the number of its services" +from eclypse.report.metrics import metric + +@metric.application(activates_on=["step"], report=["csv", "json"]) +def my_metric(application, placement, infrastructure): + return len(application.nodes) +``` + +!!! note + + Metrics are executed like events, and use the same underlying logic, including support for cascade triggers and trigger conditions. + +### Custom metric recipe + +Use the metric decorator that matches the object you want to inspect, choose +when it activates, and return a single scalar value. + +```python title="Custom service metric" +from eclypse.report.metrics import metric + +@metric.service(activates_on="step", report=["csv"]) +def requested_cpu(service_id, requirements, placement, infrastructure): + return requirements["cpu"] +``` + +The reporting pipeline fills the identifier columns of the report itself (for a +service metric, `application_id` and `service_id`), records the event +metadata, and stores the returned value in the `value` column. Returning +`None` skips the row. + +!!! warning + + Every report has a single `value` column, so a metric must not return a + mapping or a tuple: their items would become extra fields that do not fit + the report schema. To report several quantities, define one metric for each. + +### Metric and callback types + +The metric decorators mirror the same event types used by regular events. The event type +still determines what your logic receives: + +- `simulation` metrics receive `triggering_event`, +- `application` metrics receive `application`, `placement`, and `infrastructure`, +- `service` metrics receive `service_id`, `requirements`, `placement`, and + `infrastructure`, +- `service` metrics with `remote=True` receive a remote + [Service][eclypse.remote.service.service.Service] instance, +- `interaction` metrics receive `source_id`, `target_id`, `requirements`, + `placement`, and `infrastructure`, +- `infrastructure` metrics receive `infrastructure` and `placement_view`, +- `node` metrics receive `node_id`, `resources`, `placements`, + `infrastructure`, and `placement_view`, +- `link` metrics receive `source_id`, `target_id`, `resources`, + `placements`, `infrastructure`, and `placement_view`. + +Callbacks follow the same type-based signatures. The difference is therefore not the +arguments they receive, but the role they play in the workflow and whether their output +is meant to be reported. + + +## Report storage formats and reporters + +ECLYPSE separates **storage formats** from **reporters**. + +The storage format is selected through +[SimulationConfig][eclypse.simulation.config.SimulationConfig] and controls how report +frames are written on disk: + +- `csv` for human-readable tabular files, +- `json` for JSONL outputs, +- `parquet` for analytical workloads and larger runs. + +The `report` argument on an event or metric selects one or more reporter +types for that specific event. Built-in reporter types cover the common sinks: + +- `csv` for human-readable tabular files, +- `json` for JSONL outputs, +- `parquet` for analytical workloads and larger runs, +- `tensorboard` for TensorBoard-compatible metrics. + +For CSV, JSON, and Parquet, the reporter type usually matches the configured +storage format. TensorBoard is different: it is a reporter sink, not a dataframe +storage format loaded later through [Report][eclypse.report.report.Report]. + +You can also implement your own +[Reporter][eclypse.report.reporter.Reporter] subclass if you want to persist data +to a different sink such as a database or a live dashboard. + +## Default Reporters + +ECLYPSE includes a set of built-in reporters: + +- [Reporter][eclypse.report.reporter.Reporter] +- [CSVReporter][eclypse.report.reporters.csv.CSVReporter] +- [JSONReporter][eclypse.report.reporters.json.JSONReporter] +- [ParquetReporter][eclypse.report.reporters.parquet.ParquetReporter] +- [TensorBoardReporter][eclypse.report.reporters.tensorboard.TensorBoardReporter] + +In most cases you do not instantiate them manually. Instead, you select the +desired reporter types through metric/event configuration and let the +simulation resolve the built-in reporters automatically. + +!!! info "Important" + + When implementing custom reporters that write to the filesystem, use + [aiofiles](https://github.com/Tinche/aiofiles) for asynchronous file + operations. This keeps reporting from blocking the simulation loop. + + ```python title="Example: usage of aiofiles" + import aiofiles + + async with aiofiles.open(self.report_path / "data.csv", "a") as f: + await f.write("some,data,to,write\n") + ``` + +## Choosing a report backend + +The [Report][eclypse.report.report.Report] class can use multiple dataframe +backends: + +- `pandas` +- `polars` +- `polars_lazy` + +Choose the backend through +[SimulationConfig][eclypse.simulation.config.SimulationConfig] or directly when loading a +report from disk. + +## Accessing reports + +After the simulation, you can access the results using the +[Report][eclypse.report.report.Report] object. + +Example usage: + +```python title="Accessing reported data" +from eclypse.report import Report + +report = Report("./output") +df = report.service(application_ids="app1", service_ids="srv2") +``` + +For a quick run summary, call +[describe][eclypse.report.report.Report.describe]: + +```python +print(report.describe()) +# 84 rows x 10 steps x 12 metrics | 5 applications | ... +``` + +Each accessor method supports filtering by: + +- `report_range` (e.g., only events between 10 and 100) +- `report_step` (e.g., one point every N events) +- event IDs, application IDs, node/service/link IDs, etc. + +!!! tip + + If you need a generic entry point, use + [frame][eclypse.report.report.Report.frame]: + + ```python + report.frame("application") + ``` diff --git a/docs/overview/advanced/triggers.md b/docs/overview/advanced/triggers.md new file mode 100644 index 00000000..5c30a183 --- /dev/null +++ b/docs/overview/advanced/triggers.md @@ -0,0 +1,135 @@ +# Triggers + +Triggers are conditions that determine **when an event should fire** during the simulation. + +Each trigger must implement a [trigger][eclypse.workflow.trigger.trigger.Trigger.trigger] +method that returns `True` if the event should be executed at that moment. +Triggers that need internal state can also override +[prepare][eclypse.workflow.trigger.trigger.Trigger.prepare] and +[reset][eclypse.workflow.trigger.trigger.Trigger.reset]. + +ECLYPSE provides both: + +- **basic triggers**, which depend on time, probability, or simulation conditions. +- **cascade triggers**, which depend on the firing of **other events**. + +The tables below compares all available trigger types: + +**Base Triggers** + +| Type | Description | Parameters | +| --- | --- | --- | +| [Trigger][eclypse.workflow.trigger.trigger.Trigger] | Abstract base class. Must override `trigger()`. | *(none)* | +| [PeriodicTrigger][eclypse.workflow.trigger.trigger.PeriodicTrigger] | Fires every fixed amount of wall-clock time. | `trigger_every_ms: float` | +| [ScheduledTrigger][eclypse.workflow.trigger.trigger.ScheduledTrigger] | Fires at predefined wall-clock offsets. | `scheduled_timedelta: timedelta \| List[timedelta]` | +| [RandomTrigger][eclypse.workflow.trigger.trigger.RandomTrigger] | Fires randomly with given probability at each evaluation. | `probability: float`
`seed: int (optional)` | + +**Cascade Triggers** + +| Type | Description | Parameters | +| --- | --- | --- | +| [CascadeTrigger][eclypse.workflow.trigger.cascade.CascadeTrigger] | Fires when another event (by name) is triggered. | `trigger_event: str` | +| [PeriodicCascadeTrigger][eclypse.workflow.trigger.cascade.PeriodicCascadeTrigger] | Fires every N times a specific event is triggered. | `trigger_event: str`
`every_n_triggers: int` | +| [ScheduledCascadeTrigger][eclypse.workflow.trigger.cascade.ScheduledCascadeTrigger] | Fires at specific counts of another event's triggers. | `trigger_event: str`
`scheduled_times: List[int]` | +| [RandomCascadeTrigger][eclypse.workflow.trigger.cascade.RandomCascadeTrigger] | Fires randomly when a specific event is triggered. | `trigger_event: str`
`probability: float`
`seed: int (optional)` | + +## Define triggers in scheduled decorators + +You can define cascade triggers more compactly, using the `activates_on` parameter +in the [scheduled event decorators](../concepts/events.md#event-decorator): + +| Syntax | Equivalent trigger | +| --- | --- | +| `"event_name"` | CascadeTrigger("event_name") | +| `("event_name", 3)` | PeriodicCascadeTrigger("event_name", 3) | +| `("event_name", [5, 10])` | ScheduledCascadeTrigger("event_name", [5, 10]) | +| `("event_name", 0.2)` | RandomCascadeTrigger("event_name", 0.2) | + +## Schedule helpers + +For the most common scheduling cases, import the helper decorators directly +from [eclypse.workflow][eclypse.workflow]: + +```python +from eclypse.workflow import after, every, once_at + +@every(steps=5, event_type="simulation") +def heartbeat(triggering_event): + return {"value": triggering_event.n_triggers} + +@after(step=10) +def warmup_complete(): + return {"value": True} + +@once_at(step=60) +def final_checkpoint(): + return {"value": True} +``` + +`@every` creates a +[PeriodicCascadeTrigger][eclypse.workflow.trigger.cascade.PeriodicCascadeTrigger] on the default +simulation driving event. +`@after` and `@once_at` create +[ScheduledCascadeTrigger][eclypse.workflow.trigger.cascade.ScheduledCascadeTrigger] instances and +default to one firing. + +## Trigger lifecycle + +The simulator prepares every registered trigger bucket before the run starts. +The state machine is: + +1. `prepare()`: allocate state such as scheduled timestamps or random-number + generators. +2. `trigger(...)`: evaluate whether the event should fire. +3. event execution. +4. `reset()`: update post-execution state before the next evaluation. + +If you implement a custom trigger that depends on prepared state, raise a clear +error from `trigger()` when `prepare()` has not been called. This mirrors the +built-in scheduled and random triggers. + +## Having multiple triggers + +When an event is associated with **multiple triggers**, the `activates_on` parameter determines how they combine to activate the event: + +- `any` (default): the event will fire if **at least one** of the triggers fires. +- `all`: the event will fire **only if all** triggers fire at the same time. + +```python title="Example: Using multiple triggers with different conditions" +from eclypse.workflow import every +from eclypse.workflow.trigger import CascadeTrigger + +@every( + steps=5, + event_type="application", + triggers=[ + CascadeTrigger("check_resources"), + ], + trigger_condition="any" # event fires on either +) +def log_app_health(application, placement, infrastructure, **event_data): + ... +``` + +For more particular workflows, subclass +[EclypseEvent][eclypse.workflow.event.event.EclypseEvent] and pass custom triggers to +`super().__init__`: + +```python +from eclypse.workflow.event import EclypseEvent +from eclypse.workflow.trigger import CascadeTrigger, PeriodicCascadeTrigger + +class Monitor(EclypseEvent): + def __init__(self): + super().__init__( + name="monitor", + triggers=[ + PeriodicCascadeTrigger("enact", 5), + CascadeTrigger("step"), + ], + trigger_condition="all", # fires only if both trigger + ) + + def __call__(self, triggering_event): + return {"source": triggering_event.name} +``` diff --git a/docs/overview/concepts/assets.md b/docs/overview/concepts/assets.md new file mode 100644 index 00000000..a13b7bf3 --- /dev/null +++ b/docs/overview/concepts/assets.md @@ -0,0 +1,191 @@ +# Assets + +In ECLYPSE, an [Asset][eclypse.graph.assets.asset.Asset] represents either: + +- a *capability* of a network node or link (e.g. CPU, bandwidth, availability), or +- a *requirement* of an application service or communication (e.g. latency constraint, required RAM) + +Assets are central to the simulation's logic, as they define how infrastructure and applications interact and match over time. + +There are two ways to choose which asset to use: + +
+ +- **[Extend the Asset class](#extend-assets)** + + --- + + Subclass the abstract [Asset][eclypse.graph.assets.asset.Asset] base class or one of the built-in specialisations. + +- **[Default assets](#default-assets)** + + --- + + Leverage ready-made implementations (e.g., CPU, RAM, latency, bandwidth, ...). + +
+ +## Extend the Asset class { #extend-assets } + +The base class [Asset][eclypse.graph.assets.asset.Asset] defines the interface and behaviour of all asset types. It provides: + +- **initialisation** via value, function, or sampling space. +- a **total ordering** for comparison. +- abstract methods for logic: [aggregate][eclypse.graph.assets.asset.Asset.aggregate], [satisfies][eclypse.graph.assets.asset.Asset.satisfies], [is_consistent][eclypse.graph.assets.asset.Asset.is_consistent]. + +!!! info "Important" + + When implementing the logic of a custom asset, always define it from the perspective of a **resource**, not a **requirement**. + + This means you are modelling the available capability of a node or link. ECLYPSE automatically handles the dual interpretation—by calling [flip][eclypse.graph.assets.asset.Asset.flip], when assets are used as service requirements during placement. + + Designing assets as requirements will lead to incorrect compatibility or aggregation behaviour. + +You can extend it to implement your own logic: + +```python +from eclypse.graph.assets import Asset + +class ThresholdAsset(Asset): + def aggregate(self, *assets): + return max(assets) + + def satisfies(self, asset, constraint): + return asset <= constraint + + def is_consistent(self, asset): + return self.lower_bound <= asset <= self.upper_bound +``` + +The method [flip][eclypse.graph.assets.asset.Asset.flip] can be overridden to define how the asset changes perspective from *capability* to *requirement*, and vice versa. + + +### Predefined types + +ECLYPSE provides several built-in asset classes, each modelling a specific kind of algebra: + +- [Additive][eclypse.graph.assets.additive.Additive]: values are aggregated via summation (e.g., cpu, ram). +- [Multiplicative][eclypse.graph.assets.multiplicative.Multiplicative]: values are aggregated via product (e.g., availability). +- [Concave][eclypse.graph.assets.concave.Concave]: models assets where the **largest value dominates** the aggregation (e.g. latency). +- [Convex][eclypse.graph.assets.convex.Convex]: models assets where the **smallest value dominates**. For instance the ingress bandwidth on a node is the minimum of all the featured bandwidths of the links connected to it. +- [Symbolic][eclypse.graph.assets.symbolic.Symbolic]: for categorical compatibility (e.g. region, label). + +??? example "Example: Using an additive asset" + + ```python + from eclypse.graph.assets import Additive + + cpu = Additive( + lower_bound=0.0, + upper_bound=16.0, + init_fn_or_value=2.0, + functional=False, + ) + ``` + +!!! tip + + The `functional` flag indicates whether the asset must be considered in placement decisions. + By default it is set to `True`. + + +### Initialisation + +When defining an asset, you must specify **how its initial value is generated** at the start of the simulation. + +This can be done in three ways: + +- by providing a **fixed value** (e.g., `2.0`) +- by passing a **callable** with no arguments (e.g., `lambda: random.choice(...)`) +- by using an [AssetSpace][eclypse.graph.assets.space.AssetSpace] (e.g., + [Uniform][eclypse.graph.assets.space.Uniform], + [Choice][eclypse.graph.assets.space.Choice], etc.) + +??? example "Example: Using an AssetSpace" + + ```python + from eclypse.graph.assets import Additive + from eclypse.graph.assets.space import Uniform + + cpu = Additive( + lower_bound=0.0, + upper_bound=16.0, + init_fn_or_value=Uniform(2.0, 8.0), + ) + ``` + +Initialisers are used when the graph's initialisation policy (`resource_init` or `requirement_init`) is `"asset_init"`, the default. They are evaluated when a node or edge is added, using the graph's seeded random generator, so sampling is reproducible across runs. + +!!! tip + + Values given explicitly to `add_node`/`add_edge` always take precedence. Any other asset takes its initialiser's value (`"asset_init"`, which requires every asset to have one), its lower bound (`"min"`) or its upper bound (`"max"`). + + +### Asset Spaces + +An [AssetSpace][eclypse.graph.assets.space.AssetSpace] defines the domain from which an asset's initial value is sampled. These can be subclassed for custom behaviour, or you can use one of the predefined asset spaces included in ECLYPSE: + +- [Choice][eclypse.graph.assets.space.Choice]: pick a value from a list of options. +- [Uniform][eclypse.graph.assets.space.Uniform]: pick a float from a continuous uniform distribution. +- [IntUniform][eclypse.graph.assets.space.IntUniform]: pick an integer from a uniform range, with optional step. +- [Sample][eclypse.graph.assets.space.Sample]: pick a sample (list of values) from a population. + +??? example "Example: Using a Choice" + + ```python + from eclypse.graph.assets.space import Choice + + storage_class = Choice(["fast", "standard", "archival"]) + + asset = Symbolic( + lower_bound="fast", + upper_bound="archival", + init_fn_or_value=storage_class, + ) + ``` + +These classes all implement the `__call__` interface and expect a +`random.Random` generator, provided automatically by the simulation engine. + +!!! note + + You can define your own asset spaces by subclassing [AssetSpace][eclypse.graph.assets.space.AssetSpace] and overriding the `__call__` method. + +## Default Assets { #default-assets } + +ECLYPSE provides out-of-the-box functions to obtain default asset sets for both nodes and links. These functions simplify the initial setup of simulations by supplying a standard collection of assets. + +The available default asset sets are: + +- **Node Assets** (provided by the function [get_default_node_assets][eclypse.graph.assets.defaults.get_default_node_assets]): + + - [cpu][eclypse.graph.assets.defaults.cpu] + - [gpu][eclypse.graph.assets.defaults.gpu] + - [ram][eclypse.graph.assets.defaults.ram] + - [storage][eclypse.graph.assets.defaults.storage] + - [availability][eclypse.graph.assets.defaults.availability] + - [processing_time][eclypse.graph.assets.defaults.processing_time] + +- **Edge Assets** (provided by the function [get_default_edge_assets][eclypse.graph.assets.defaults.get_default_edge_assets]): + + - [latency][eclypse.graph.assets.defaults.latency] + - [bandwidth][eclypse.graph.assets.defaults.bandwidth] + +??? example "Example: Retrieving default Assets" + + ```python + from eclypse.graph.assets.defaults import ( + get_default_node_assets, + get_default_edge_assets + ) + + # Retrieve default assets for a node (e.g. CPU, RAM, GPU, etc.) + node_assets = get_default_node_assets() + + # Retrieve default assets for an edge (e.g. latency, bandwidth) + edge_assets = get_default_edge_assets() + + # Access individual assets by name + print(node_assets["cpu"]) + print(edge_assets["latency"]) + ``` diff --git a/docs/overview/concepts/builders.md b/docs/overview/concepts/builders.md new file mode 100644 index 00000000..8b8375c2 --- /dev/null +++ b/docs/overview/concepts/builders.md @@ -0,0 +1,75 @@ +# Builders + +Builders create ready-to-use infrastructures, applications, and workflow graphs +without hiding the underlying model. They return regular +[Infrastructure][eclypse.graph.infrastructure.Infrastructure] and +[Application][eclypse.graph.application.Application] objects, so you can still add +nodes, edges, assets, update policies, and flows afterwards. + +## Infrastructure builders + +Infrastructure builders live in [eclypse.builders.infrastructure][eclypse.builders.infrastructure]. They +cover generic graph generators, cloud-edge architecture patterns, and reference +topologies. + +| Category | Builders | +| --- | --- | +| Generic generators | [get_star][eclypse.builders.infrastructure.get_star], [get_random][eclypse.builders.infrastructure.get_random], [get_hierarchical][eclypse.builders.infrastructure.get_hierarchical], [get_fat_tree][eclypse.builders.infrastructure.get_fat_tree], [get_b_cube][eclypse.builders.infrastructure.get_b_cube], [get_small_world][eclypse.builders.infrastructure.get_small_world], [get_scale_free][eclypse.builders.infrastructure.get_scale_free] | +| Architecture patterns | [get_continuum_tiered][eclypse.builders.infrastructure.get_continuum_tiered], [get_mec_5g][eclypse.builders.infrastructure.get_mec_5g], [get_multi_region_wan][eclypse.builders.infrastructure.get_multi_region_wan], [get_industrial_tsn][eclypse.builders.infrastructure.get_industrial_tsn], [get_factory_cells][eclypse.builders.infrastructure.get_factory_cells], [get_vehicular_edge][eclypse.builders.infrastructure.get_vehicular_edge] | +| References | [get_orion_cev][eclypse.builders.infrastructure.get_orion_cev], [get_topohub][eclypse.builders.infrastructure.get_topohub], [get_topology_zoo][eclypse.builders.infrastructure.get_topology_zoo], [get_sndlib][eclypse.builders.infrastructure.get_sndlib], [get_backbone][eclypse.builders.infrastructure.get_backbone], [get_caida][eclypse.builders.infrastructure.get_caida], [get_gabriel][eclypse.builders.infrastructure.get_gabriel] | + +Example: + +```python +from eclypse.builders.infrastructure import get_hierarchical + +infrastructure = get_hierarchical( + n=30, + include_default_assets=True, + seed=42, +) +``` + +## Application builders + +Application builders live in [eclypse.builders.application][eclypse.builders.application]. They provide +reference microservice applications and domain-specific pipelines. + +Sock Shop is the main reference application used in examples: + +```python +from eclypse.builders.application import get_sock_shop + +application = get_sock_shop( + include_default_assets=True, + seed=42, +) +``` + +For emulation, choose the communication interface when the builder supports +runtime services: + +```python +application = get_sock_shop( + communication_interface="mpi", + include_default_assets=True, +) +``` + +## Workflow builders + +For simulation-only task DAGs, ECLYPSE also provides +[get_workflow][eclypse.builders.workflow.get_workflow] in +[eclypse.builders.workflow][eclypse.builders.workflow]. These builders use WfCommons to generate +workflow-shaped applications and normalise file-size-derived `storage` and +dependency `bandwidth` values from bytes to MiB before assigning them to the +default ECLYPSE assets. + +## When to use builders + +Use builders when you need a stable scenario quickly: a benchmark, a smoke +test, or a baseline for policy and placement experiments. + +Use manual graph construction when the topology itself is the object of study, +or when you need exact control over node identities, edge attributes, and asset +definitions. diff --git a/docs/overview/concepts/events.md b/docs/overview/concepts/events.md new file mode 100644 index 00000000..40673555 --- /dev/null +++ b/docs/overview/concepts/events.md @@ -0,0 +1,217 @@ +# Events + +In ECLYPSE, the simulation workflow is fully driven by **events**. +Events define units of logic that are executed when one or more **triggers** activate. +They can be used to update the simulation state, compute metrics, or execute callbacks. + +An event can be periodic, conditionally activated, or triggered by another event. + +```mermaid +flowchart TD + T["Trigger conditions met"] --> E["Regular event executes"] + E --> D["Event payload"] + D --> C["Activated callbacks"] + D --> M["Activated metrics"] + M --> R["Configured reporters"] + R --> Q["Report queries"] +``` + +An update event can apply configured policies. Callbacks and metrics run after +the event that activates them. This diagram shows their roles, not a fixed +ordering between individual callbacks and metrics. + + +ECLYPSE distinguishes between an event's **role** and its **type**: + +- the **role** defines *how the event participates in the workflow*, +- the **type** defines *which objects are passed to the event logic*. + +## Roles: events, callbacks, and metrics + +Every [EclypseEvent][eclypse.workflow.event.event.EclypseEvent] has an +[EventRole][eclypse.workflow.event.role.EventRole]. + +| Role | Meaning | +| --- | --- | +| [EVENT][eclypse.workflow.event.role.EventRole.EVENT] | The default role for regular workflow logic. These events are triggered directly by the simulation or by other triggers, and their payload can be consumed by downstream callbacks and metrics. | +| [CALLBACK][eclypse.workflow.event.role.EventRole.CALLBACK] | A post-event hook. It runs immediately after the event that activated it and has access to that triggering event through `triggering_event` and `**event_data`. Callbacks are primarily useful for chaining logic or reacting to another event. | +| [METRIC][eclypse.workflow.event.role.EventRole.METRIC] | A reportable post-event hook. Metrics share the same execution model as callbacks, but they are intended to produce rows that reporters can persist and that [Report][eclypse.report.report.Report] can load afterwards. | + +In practice: + +- use a regular event when you want to drive the workflow, +- use a callback when you want post-event logic that is mainly internal to the + simulation, +- use a metric when you want post-event logic whose output should be reported. + +## Defining an Event + +An event can be defined by: + +- decorating a function or a class with a `__call__` method +- subclassing [EclypseEvent][eclypse.workflow.event.event.EclypseEvent] and overriding the `__call__` method + +!!! note "See also" + + Events are activated by **Triggers**, which define *when* and *under what + conditions* an event should fire, thus at least one trigger must be defined + for an event to be activated. + + You can use built-in triggers (e.g., cascade or periodic) or define your own. + + See the [Triggers](../advanced/triggers.md) page for more on how to configure and combine them. + +### Event Parameters + +Here are the most relevant parameters to control event behaviour: + +- `name` *(str)*: The event name. +- `event_type`: The context where the event executes, such as `"node"` or + `"service"`. It can also be `None`. +- `triggers`: A list of [Trigger][eclypse.workflow.trigger.trigger.Trigger] + objects, modelling the conditions that can activate the event. +- `activates_on`: A more compact way to specify triggers, using a list of strings and tuples +- `trigger_condition`: Whether all triggers must activate or just one (*"all"* or *"any"*). +- `role`: The workflow role of the event, chosen from + [EventRole][eclypse.workflow.event.role.EventRole]. +- `remote`: If `True`, the event is executed on remote infrastructure nodes or services. +- `report`: Types of reports to generate for this event, such as `"csv"` or `"json"`. + In practice, this is mainly relevant for metrics. +- `verbose`: If `True`, log detailed event triggering and firing info. + +The event **type** determines the arguments passed to its logic function. +The role does not change the signature; it changes *when* the event runs and *how* +its output is interpreted. + +Specifically: + +| Event Type | Parameters | +| --- | --- | +| simulation (or None) | `triggering_event` ([EclypseEvent][eclypse.workflow.event.event.EclypseEvent]) | +| application | `application` ([Application][eclypse.graph.application.Application])
`placement` ([Placement][eclypse.placement.placement.Placement])
`infrastructure` ([Infrastructure][eclypse.graph.infrastructure.Infrastructure])
`**event_data` (*Dict[str, Any]*) | +| service | `service_id` (*str*)
`requirements` (*Dict[str, Any]*)
`placement` ([Placement][eclypse.placement.placement.Placement])
`infrastructure` ([Infrastructure][eclypse.graph.infrastructure.Infrastructure])
`**event_data` (*Dict[str, Any]*) | +| service (with `remote=True`) | `service` ([Service][eclypse.remote.service.service.Service]) | +| interaction | `source_id` (*str*)
`target_id` (*str*)
`requirements` (*Dict[str, Any]*)
`placement` ([Placement][eclypse.placement.placement.Placement])
`infrastructure` ([Infrastructure][eclypse.graph.infrastructure.Infrastructure])
`**event_data` (*Dict[str, Any]*) | +| infrastructure | `infrastructure` ([Infrastructure][eclypse.graph.infrastructure.Infrastructure])
`placement_view` ([PlacementView][eclypse.placement.view.PlacementView])
`**event_data` (*Dict[str, Any]*) | +| node | `node_id` (*str*)
`resources` (*Dict[str, Any]*)
`placements` (*Dict[str,* [Placement][eclypse.placement.placement.Placement] *]*)
`infrastructure` ([Infrastructure][eclypse.graph.infrastructure.Infrastructure])
`placement_view` ([PlacementView][eclypse.placement.view.PlacementView])
`**event_data` (*Dict[str, Any]*) | +| link | `source_id` (*str*)
`target_id` (*str*)
`resources` (*Dict[str, Any]*)
`placements` (*Dict[str,* [Placement][eclypse.placement.placement.Placement] *]*)
`infrastructure` ([Infrastructure][eclypse.graph.infrastructure.Infrastructure])
`placement_view` ([PlacementView][eclypse.placement.view.PlacementView])
`**event_data` (*Dict[str, Any]*) | + +!!! note + + `**event_data` contains the payload produced by the event that triggered the + current callback or metric. It is therefore most relevant for post-event roles. + +When an event is defined for a specific component type, it is automatically executed **once for each matching component** in the model. +For instance, an `application` event is called once per application in the simulation; a `node` event is called once per infrastructure node, ... + +As a result, the event logic should be written as if it handles a **single instance** of the component, not a collection. +This behavior applies to all events and is especially relevant when defining [metrics](../advanced/reporting.md). + +Regular events, callbacks, and metrics can all use the same event types. For example: + +- an `application` event can mutate application-level state, +- an `application` callback can react to the payload of another event, +- an `application` metric can return application-level report rows. + +### Scheduled event decorators { #event-decorator } + +The public decorator API exposes the common scheduling shapes directly: + +- [`@every(steps=...)`][eclypse.workflow.event.decorator.every] for periodic events, +- [`@after(step=...)`][eclypse.workflow.event.decorator.after] for delayed events, +- [`@once_at(step=...)`][eclypse.workflow.event.decorator.once_at] for one-shot events. + +These decorators allow you to register both functions and callable classes as +**simulation events**. You can apply them to: + +- a **function**, which becomes the logic of the event, +- a **class** with a `__call__` method, to maintain internal state. + +```python title="Example: Decorating a function" +from eclypse.workflow.event import every + +@every(steps=5, name="step_logger", event_type="simulation") +def log_step(): + print("Simulation step") +``` + +```python title="Example: Decorating a class" +from eclypse.workflow.event import once_at + +@once_at(step=10, name="step_counter", event_type="simulation") +class StepCounter: + def __init__(self): + self.counter = 0 + + def __call__(self): + self.counter += 1 + print(f"Step: {self.counter}") +``` + +## Callbacks + +Callbacks use the same scheduled decorators as regular events, but with a +different role: + +```python title="Example: Defining a callback" +from eclypse.workflow.event import EventRole, after + +@after( + step=0, + name="after_step", + event_type="simulation", + activates_on=["step"], + role=EventRole.CALLBACK, +) +def after_step(triggering_event): + print(f"{triggering_event.name} produced {triggering_event.data}") +``` + +Callbacks are best suited for: + +- chaining workflow logic after another event, +- deriving transient information from the triggering event, +- reacting to another event without necessarily reporting the result. + +If the scheduling decorators do not fit a particular workflow, define a custom +event by subclassing [EclypseEvent][eclypse.workflow.event.event.EclypseEvent] and +overriding `__call__`. This gives full control over construction, state, and +trigger configuration: + +```python title="Example: Custom event class" +from eclypse.workflow.event import EclypseEvent +from eclypse.workflow.trigger import CascadeTrigger + +class StepAudit(EclypseEvent): + def __init__(self): + super().__init__( + name="step_audit", + event_type="simulation", + triggers=[CascadeTrigger("step")], + ) + + def __call__(self, triggering_event): + return {"source": triggering_event.name} +``` + +## Metrics { #event-metrics } + +Metrics are a specialized type of event used to collect simulation data at +different levels of abstraction (e.g., per iteration, per application, per +node). Under the hood they are post-event events with the +[METRIC][eclypse.workflow.event.role.EventRole.METRIC] role, but the +recommended public API is the set of convenience decorators in +[eclypse.report.metrics][eclypse.report.metrics]. + +Compared with callbacks, metrics differ mainly in their intent: + +- callbacks are primarily workflow hooks, +- metrics are reporting hooks and are meant to produce persistable output. + +For the practical metric API, built-in report types, custom reporters, and +report loading, see [Reporting](../advanced/reporting.md). + +!!! note "See also" + + - [Reporting](../advanced/reporting.md) + - [Triggers](../advanced/triggers.md) diff --git a/docs/overview/concepts/import-export.md b/docs/overview/concepts/import-export.md new file mode 100644 index 00000000..19ac6736 --- /dev/null +++ b/docs/overview/concepts/import-export.md @@ -0,0 +1,277 @@ +# Import and Export + +ECLYPSE provides an import/export layer for moving +[Infrastructure][eclypse.graph.infrastructure.Infrastructure] and +[Application][eclypse.graph.application.Application] objects between simulations, +external tools, and standard infrastructure descriptions. + +The IO package is intentionally separated from reporting. Reporters persist data +produced *during* a simulation. Importers and exporters persist the graph objects +that are needed *to build* a simulation. + +## Basic usage + +The public API exposes specialised functions for applications and +infrastructures: + +=== "Application" + + ```python + from eclypse.io import dump_application, load_application + + dump_application(application, "application.json") + loaded = load_application("application.json") + ``` + +=== "Infrastructure" + + ```python + from eclypse.io import dump_infrastructure, load_infrastructure + + dump_infrastructure(infrastructure, "infrastructure.graphml") + loaded = load_infrastructure("infrastructure.graphml") + ``` + +In most cases, ECLYPSE infers the format from the file extension. You can also +select a format explicitly with the `using` argument: + +```python +dump_application(application, "application.yaml", using="docker-compose") +application = load_application("application.yaml", using="docker-compose") + +dump_infrastructure(infrastructure, "infrastructure.yaml", using="tosca") +infrastructure = load_infrastructure("infrastructure.yaml", using="tosca") +``` + +## Supported formats + +The built-in [eclypse.io.defaults][eclypse.io.defaults] registry provides default importers and +exporters for common graph and cloud-edge formats. + +| Format | Application | Infrastructure | Main use | +| --- | --- | --- | --- | +| [`eclypse-json`][eclypse.io.defaults.json] | :octicons-check-16: | :octicons-check-16: | Lossless ECLYPSE round-trip through [JSONImporter][eclypse.io.defaults.json.JSONImporter] and [JSONExporter][eclypse.io.defaults.json.JSONExporter]. | +| [`node-link-json`][eclypse.io.defaults.node_link] | :octicons-check-16: | :octicons-check-16: | Portable NetworkX-style graph data. | +| [`gml`][eclypse.io.defaults.gml] | :octicons-check-16: | :octicons-check-16: | Graph exchange with simple attributes. | +| [`graphml`][eclypse.io.defaults.graphml] | :octicons-check-16: | :octicons-check-16: | Graph exchange with XML-based tooling. | +| [`docker-compose`][eclypse.io.defaults.docker_compose] | :octicons-check-16: | :octicons-x-16: | Import or export service-level applications. | +| [`tosca`][eclypse.io.defaults.tosca] | :octicons-check-16: | :octicons-check-16: | Import or export cloud/service topology templates. | + +[`eclypse-json`][eclypse.io.defaults.json] is the canonical ECLYPSE format. +It stores the graph kind, identifier, graph attributes, node and edge assets, +nodes, edges, and kind-specific metadata such as application flows or +infrastructure path aggregators. + +Graph formats such as GML, GraphML, and node-link JSON focus on topology and +serialisable graph attributes. They are useful for interoperability, but they do +not carry the complete ECLYPSE model in the same way as +[`eclypse-json`][eclypse.io.defaults.json]. + +## Docker Compose + +Docker Compose files are imported as +[Application][eclypse.graph.application.Application] objects. + +```yaml title="docker-compose.yaml" +name: video-pipeline + +services: + camera: + image: camera-gateway:latest + + inference: + image: inference-service:latest + depends_on: + - camera +``` + +When loaded, each service becomes an application node. The service `image` is +stored as a node attribute, and Docker Compose `depends_on` becomes a +directed interaction: + +```python +from eclypse.io import load_application + +application = load_application("docker-compose.yaml", using="docker-compose") + +application.nodes["camera"]["image"] +# "camera-gateway:latest" + +list(application.edges) +# [("inference", "camera")] +``` + +When exporting to Docker Compose, each application node must define either an +`image`, a `container_image`, or a `build` attribute. This mirrors the +operational nature of Docker Compose: ECLYPSE does not silently invent container +images by default. + +```python +application.add_node("frontend", image="nginx:latest", strict=False) +dump_application(application, "docker-compose.yaml", using="docker-compose") +``` + +If you explicitly want to use the node identifier as a fallback image, pass a +[DockerComposeContext][eclypse.io.context.DockerComposeContext]: + +```python +from eclypse.io import DockerComposeContext + +dump_application( + application, + "docker-compose.yaml", + using="docker-compose", + application_context=DockerComposeContext(allow_image_fallback_to_node=True), +) +``` + +ECLYPSE writes optional `x-eclypse` extension fields to preserve metadata such +as graph attributes, flows, and edge attributes. These fields are standard +Compose extension fields and are ignored by Docker Compose implementations that +do not understand them. + +## TOSCA + +TOSCA files are exported using standard TOSCA Simple Profile YAML types. +ECLYPSE-specific metadata is stored only under optional `x-eclypse` extension +fields. + +Applications are represented as software components with dependency +requirements: + +```yaml title="application.tosca.yaml" +tosca_definitions_version: tosca_simple_yaml_1_3 +metadata: + template_name: app +topology_template: + node_templates: + frontend: + type: tosca.nodes.SoftwareComponent + requirements: + - dependency: + node: worker + relationship: tosca.relationships.DependsOn + worker: + type: tosca.nodes.SoftwareComponent +``` + +Infrastructures are represented with TOSCA compute, network, and port node +templates: + +```yaml title="infrastructure.tosca.yaml" +tosca_definitions_version: tosca_simple_yaml_1_3 +metadata: + template_name: infra +topology_template: + node_templates: + node_a: + type: tosca.nodes.Compute + capabilities: + host: + properties: + num_cpus: 4 + mem_size: 8 GB + private_net: + type: tosca.nodes.network.Network + port_a: + type: tosca.nodes.network.Port + requirements: + - binding: + node: node_a + relationship: tosca.relationships.HostedOn + - link: + node: private_net + relationship: tosca.relationships.network.LinksTo +``` + +By default, [TOSCAImporter][eclypse.io.defaults.tosca.TOSCAImporter] validates fields +required by the service template: `tosca_definitions_version` must be present, +and each node template must define a `type`. + +## Contexts + +Contexts customise import and export without changing the graph classes. Common +options live in [IOContext][eclypse.io.context.IOContext]; application and +infrastructure-specific options live in specialised contexts. + +| Context | Purpose | +| --- | --- | +| [ApplicationContext][eclypse.io.context.ApplicationContext] | Application import/export defaults, including services and requirement initialisation. | +| [InfrastructureContext][eclypse.io.context.InfrastructureContext] | Infrastructure import/export defaults, including resource initialisation and path aggregators. | +| [DockerComposeContext][eclypse.io.context.DockerComposeContext] | Docker Compose validation and image/build fallback behaviour. | +| [TOSCAApplicationContext][eclypse.io.context.TOSCAApplicationContext] | TOSCA validation options for applications. | +| [TOSCAInfrastructureContext][eclypse.io.context.TOSCAInfrastructureContext] | TOSCA validation options for infrastructures. | + +For example, a TOSCA file without the mandatory version can be accepted only by +making that choice explicit: + +```python +from eclypse.io import TOSCAApplicationContext, load_application + +application = load_application( + "legacy.yaml", + using="tosca", + application_context=TOSCAApplicationContext( + require_definitions_version=False, + ), +) +``` + +## Custom importers and exporters + +Importers and exporters are regular classes based on abstract base classes: + +- [GraphImporter][eclypse.io.base.GraphImporter] +- [GraphExporter][eclypse.io.base.GraphExporter] + +An exporter converts a graph to an intermediate representation and writes it to +a target. An importer reads a source into an intermediate representation and +builds a graph from it. + +```python +from eclypse.io import GraphExporter + +class MyApplicationExporter(GraphExporter): + def to_data(self, graph, *, context=None): + return {"nodes": list(graph.nodes)} + + def write_data(self, data, target, *, context=None): + ... +``` + +You can pass custom classes directly, without registering them globally: + +```python +dump_application(application, "application.myfmt", using=MyApplicationExporter) +``` + +If you want reusable names, create or extend an +[IORegistry][eclypse.io.registry.IORegistry]. Registries are immutable: methods such +as [with_exporter][eclypse.io.registry.IORegistry.with_exporter] return a new +registry instead of changing the existing one. The default registry stores +handler classes rather than handler instances, so importers and exporters are +created only when they are used. + +```python +from eclypse.io import IORegistry, dump_application + +registry = IORegistry().with_exporter( + "application", + "my-format", + MyApplicationExporter, +) + +dump_application( + application, + "application.myfmt", + using="my-format", + registry=registry, +) +``` + +!!! tip + + Use [`eclypse-json`][eclypse.io.defaults.json] when you need a complete + ECLYPSE round-trip. Use Docker Compose, TOSCA, GraphML, GML, or node-link + JSON when interoperability with external tools matters more than preserving + every simulator-specific detail. diff --git a/docs/overview/concepts/index.md b/docs/overview/concepts/index.md new file mode 100644 index 00000000..b3264f89 --- /dev/null +++ b/docs/overview/concepts/index.md @@ -0,0 +1,64 @@ +# Concepts + +This section collects the building blocks of ECLYPSE. + +Use these pages once you already know the basic workflow and want to customise +how a simulation behaves, what it models, and how it is configured. + +
+ +- **[Topology](topology.md)** + + --- + + Build graph-based infrastructures and applications, either manually or + through builders. + +- **[Assets](assets.md)** + + --- + + Understand how capabilities and requirements are represented, validated, + and sampled. + +- **[Builders](builders.md)** + + --- + + Start from built-in infrastructures, applications, and workflow-shaped + task graphs. + +- **[Import and export](import-export.md)** + + --- + + Persist, exchange, and reload infrastructures and applications using + ECLYPSE-native and standard graph formats. + +- **[Placement strategies](placement-strategy.md)** + + --- + + Control how services are mapped onto the available infrastructure. + +- **[Update policies](update-policy.md)** + + --- + + Model how infrastructure and application resources evolve during the run. + +- **[Events, callbacks, and metrics](events.md)** + + --- + + Learn the event model, event roles, event types, and trigger-based + execution. + +- **[Simulation configuration](simulation-configuration.md)** + + --- + + Configure timing, reporting, logging, remote execution, and the event + set used by a simulation run. + +
diff --git a/docs/overview/concepts/placement-strategy.md b/docs/overview/concepts/placement-strategy.md new file mode 100644 index 00000000..0adebe16 --- /dev/null +++ b/docs/overview/concepts/placement-strategy.md @@ -0,0 +1,127 @@ +# Placement Strategy + +In ECLYPSE, a [PlacementStrategy][eclypse.placement.strategies.PlacementStrategy] +defines how application services are assigned to infrastructure nodes. +Placement can be performed globally across the infrastructure, or separately +for each application. + +Placement strategies are responsible for implementing the logic that maps application *requirements* to infrastructure *capabilities*. These strategies are executed during the simulation setup or runtime to compute service-to-node allocations. + +There are two ways to choose which strategy to use: + +
+ +- **[Extend the PlacementStrategy class](#extend-strategy)** + + --- + + Subclass the abstract + [PlacementStrategy][eclypse.placement.strategies.PlacementStrategy] base + class or one of the built-in specialisations. + +- **[Default strategies](#default-strategies)** + + --- + + Leverage ready-made strategies for common placement scenarios. + +
+ +## Extend the PlacementStrategy class { #extend-strategy } + +To define a custom placement strategy, subclass the base class +[PlacementStrategy][eclypse.placement.strategies.PlacementStrategy] and override +the +[place][eclypse.placement.strategies.PlacementStrategy.place] +method. + +This method must return a mapping from **service IDs** to **node IDs**, +representing where each service in the application should be deployed. + +```python +from eclypse.placement.strategies import PlacementStrategy + +class RandomStrategy(PlacementStrategy): + def place(self, infrastructure, application, placements, placement_view): + import random + candidate_nodes = list(placement_view.residual.nodes) + return { + service_id: random.choice(candidate_nodes) + for service_id in application.nodes + } + + # Optionally override feasibility check + def is_feasible(self, infrastructure, application): + return len(list(infrastructure.available.nodes)) > 0 +``` + +!!! info "Important" + + The `infrastructure` parameter passed to the + [place][eclypse.placement.strategies.PlacementStrategy.place] + method is **already filtered** to include only the available portion of the + infrastructure. + + This corresponds to calling the + [available][eclypse.graph.infrastructure.Infrastructure.available] property + on the [Infrastructure][eclypse.graph.infrastructure.Infrastructure] instance. + Therefore, you do not need to manually filter out unavailable resources. + +## Default strategies { #default-strategies } + +ECLYPSE provides a collection of predefined placement strategies that can be +used out of the box. These strategies implement common policies and heuristics +for mapping application services onto available nodes. + +The available default strategies are: + +- [RoundRobinStrategy][eclypse.placement.strategies.RoundRobinStrategy] — assigns services to nodes in a round-robin fashion. +- [RandomStrategy][eclypse.placement.strategies.RandomStrategy] — randomly selects a node for each service. +- [StaticStrategy][eclypse.placement.strategies.StaticStrategy] — expects service-to-node mappings to be provided statically. +- [FirstFitStrategy][eclypse.placement.strategies.FirstFitStrategy] — places services on the first node that satisfies their requirements. +- [BestFitStrategy][eclypse.placement.strategies.BestFitStrategy] — selects the node with the tightest fit (smallest surplus) for each service. + +## Attaching a Placement Strategy + +To use a placement strategy during simulation, provide it either as the +simulation default or for a specific application registration. + +There are two ways to attach a strategy: + +- **Via + [default_strategy][eclypse.simulation.config.SimulationConfig.default_strategy]:** + Use this when most applications should share the same placement policy: + + ```python + from eclypse.placement.strategies import RandomStrategy + from eclypse.simulation import Simulation, SimulationConfig + + config = SimulationConfig(default_strategy=RandomStrategy()) + sim = Simulation(infrastructure, config) + sim.register(application) + ``` + +- **Via the application registration:** + You can associate a strategy when registering the application with the + simulation using the + [register][eclypse.simulation.simulation.Simulation.register] + method: + + ```python + from eclypse.simulation import Simulation + from eclypse.placement.strategies import FirstFitStrategy + + sim = Simulation(...) + sim.register(application, FirstFitStrategy()) + ``` + +!!! info "Important" + + If no strategy is provided through + [default_strategy][eclypse.simulation.config.SimulationConfig.default_strategy] or + [register][eclypse.simulation.simulation.Simulation.register], the + simulation raises an error. + + If both are provided, the strategy passed to + [register][eclypse.simulation.simulation.Simulation.register] takes + precedence for that application. diff --git a/docs/overview/concepts/simulation-configuration.md b/docs/overview/concepts/simulation-configuration.md new file mode 100644 index 00000000..00d9948e --- /dev/null +++ b/docs/overview/concepts/simulation-configuration.md @@ -0,0 +1,212 @@ +# Simulation configuration + +The simulation represents the environment where you can deploy and emulate your +application on the given infrastructure. + +After you [define your application(s) and infrastructure](topology.md), a +simulation run is controlled through +[SimulationConfig][eclypse.simulation.config.SimulationConfig]. + +At a high level, the configuration answers four questions: + +- how the run advances and stops, +- which events and metrics are included, +- how logs and reports are written, +- whether execution is local or remote. + +## Typical workflow + +The usual flow is: + +1. create a [SimulationConfig][eclypse.simulation.config.SimulationConfig], +2. create a [Simulation][eclypse.simulation.simulation.Simulation], +3. register one or more applications with a placement strategy, +4. run the simulation and wait for completion. + +```python +from eclypse.placement.strategies import RandomStrategy +from eclypse.simulation import Simulation, SimulationConfig + +config = SimulationConfig( + max_steps=50, + include_default_metrics=True, + report_format="parquet", + report_backend="polars", + path="my-simulation", + seed=42, +) + +simulation = Simulation(example_infra, config) +simulation.register(example_app, RandomStrategy(seed=42)) + +simulation.run() + +application_frame = simulation.report.application() +``` + +## Configuration reference + +The table below summarises every public parameter of +[SimulationConfig][eclypse.simulation.config.SimulationConfig]. + +| Parameter | Default | Meaning | +| --- | --- | --- | +| `step_every_ms` | `"auto"` | Controls how the driving `enact` event is scheduled. Use `"auto"` for continuous local progression, `"manual"` or `None` for fully manual stepping, or a numeric value for a fixed periodic step. In remote mode, `"auto"` resolves to manual stepping unless a numeric cadence is provided. | +| `timeout` | `None` | Stops the simulation after the given number of seconds. | +| `max_steps` | `None` | Stops the simulation after the given number of driving-event triggers. | +| `reporters` | `None` | Additional reporter classes to merge with the built-in reporter set. This is mainly useful when writing custom reporting sinks. | +| `events` | `None` | Explicit event list for the simulation. Default lifecycle events are still added automatically when missing. | +| `include_default_metrics` | `False` | Adds the built-in metrics shipped by ECLYPSE to the event set. | +| `default_strategy` | `None` | Placement strategy used for applications registered without an explicit strategy. Per-application strategies passed to [register][eclypse.simulation.simulation.Simulation.register] take precedence. | +| `seed` | random | Seed used for deterministic sampling and reproducible scenarios. | +| `path` | default simulation path | Output directory used for logs, reports, and `config.json`. | +| `log_to_file` | `False` | If enabled, runtime logs are also written to the simulation output path. | +| `log_level` | `"ECLYPSE"` | Minimum log level used by the runtime logger. | +| `report_chunk_size` | `100` | Number of report entries buffered before each reporter flush. | +| `report_format` | `"csv"` | On-disk report format. Built-in options are `"csv"`, `"json"`, and `"parquet"`. | +| `report_backend` | `"pandas"` | Dataframe backend used when querying reports through [Report][eclypse.report.report.Report]. | +| `remote` | `False` | Enables emulation mode. It can be a boolean or a [RemoteBootstrap][eclypse.remote.bootstrap.bootstrap.RemoteBootstrap] instance for custom remote cluster setup. | + +### Timing and stopping + +Use `step_every_ms`, `timeout`, and `max_steps` together to control how a +run advances and when it stops. + +```python +config = SimulationConfig( + step_every_ms=500, + timeout=60, + max_steps=120, +) +``` + +This configuration asks the simulation to: + +- progress every half second, +- stop after one minute, +- or stop earlier if 120 steps are reached first. + +If you want manual progression instead, opt in explicitly: + +```python +config = SimulationConfig(step_every_ms=None) +``` + +and then advance the run explicitly with +[step][eclypse.simulation.simulation.Simulation.step]. + +### Events and metrics + +By default, you can supply your own event list through `events` and decide +whether to include the built-in metrics: + +```python +from eclypse.report.metrics.defaults import get_default_metrics + +config = SimulationConfig( + events=[my_event, my_callback, my_metric], + include_default_metrics=False, +) +``` + +If you prefer the default metrics as a starting point: + +```python +config = SimulationConfig(include_default_metrics=True) +``` + +For more on event roles and event types, see [Events](events.md). + +### Logging and output paths + +The output path and logging parameters are useful when you want reproducible, +inspectable runs: + +```python +config = SimulationConfig( + path="runs/baseline-a", + log_level="INFO", + log_to_file=True, + seed=42, +) +``` + +!!! tip + + ECLYPSE uses [Loguru](https://loguru.readthedocs.io/) under the hood for + logging. It preserves the standard levels (`DEBUG`, `INFO`, + `WARNING`, etc.) and adds `ECLYPSE` between `DEBUG` and `INFO` for + framework-specific runtime messages. + +### Reporting + +Two parameters shape the reporting workflow: + +- `report_format` controls what is written to disk, +- `report_backend` controls what kind of frame object you get back later. + +```python +config = SimulationConfig( + report_format="parquet", + report_backend="polars_lazy", + report_chunk_size=500, + include_default_metrics=True, +) +``` + +This is a good fit for larger runs where you want efficient on-disk storage and +lazy analytical queries afterwards. + +See also: + +- [Inspect the results](../getting-started/inspect-results.md) +- [Reporting](../advanced/reporting.md) + +### Remote execution + +Set `remote=True` to enable the default emulation bootstrap: + +```python +config = SimulationConfig(remote=True) +``` + +If you need more control, pass a +[RemoteBootstrap][eclypse.remote.bootstrap.bootstrap.RemoteBootstrap] instance: + +```python +from eclypse.remote.bootstrap import RemoteBootstrap + +bootstrap = RemoteBootstrap() +config = SimulationConfig(remote=bootstrap) +``` + +This is the entry point for running remote services over Ray. For the runtime +details, see [Emulation](../advanced/emulation/emulation.md). + +## Using the configuration in a simulation + +Once the configuration is ready, pass it to +[Simulation][eclypse.simulation.simulation.Simulation], then register your +applications together with a placement strategy: + +```python +from eclypse.placement.strategies import RandomStrategy +from eclypse.simulation import Simulation + +simulation = Simulation(example_infra, config) +simulation.register(example_app, RandomStrategy(seed=42)) + +simulation.run() +``` + +When the run finishes, the [report][eclypse.simulation.simulation.Simulation.report] +property exposes a [Report][eclypse.report.report.Report] object: + +```python +application_frame = simulation.report.application() +generic_frame = simulation.report.frame("service") +``` + +!!! note + + Looking for complete runnable scenarios? See [Examples](../examples/index.md). diff --git a/docs/overview/concepts/topology.md b/docs/overview/concepts/topology.md new file mode 100644 index 00000000..c4779aec --- /dev/null +++ b/docs/overview/concepts/topology.md @@ -0,0 +1,200 @@ +# Infrastructure and Application(s) + +In ECLYPSE, both the **infrastructure** and **applications** are modelled as graphs enriched with resource-related attributes ([assets](assets.md)) and dynamic behaviour (update policies). These are represented using two core classes: + +- [Infrastructure][eclypse.graph.infrastructure.Infrastructure] -- models a multi-layered infrastructure, made of nodes and links with their capabilities +- [Application][eclypse.graph.application.Application] -- models a multi-service application, made of services and interactions with their requirements + +The two classes share many structural similarities, but differ in purpose and in the parameters used at initialisation. + +```mermaid +flowchart TD + I["Infrastructure: nodes, links and capabilities"] --> P["Placement strategy"] + A["Application: services, interactions and requirements"] --> P + P --> M["Placement: services mapped to nodes"] +``` + +Placement matches application requirements against infrastructure capabilities. + + +=== "Infrastructure" + + ```python + from eclypse import policies + from eclypse.graph.infrastructure import Infrastructure + + infrastructure = Infrastructure( + infrastructure_id="infra", + include_default_assets=True, + update_policies=[ + policies.failure.availability_flap(0.01, up_probability=0.2), + policies.distribution.uniform( + node_assets=["cpu", "ram"], + edge_assets=["latency", "bandwidth"], + node_distribution=(0.95, 1.05), + edge_distribution=(0.95, 1.05), + ), + ], + resource_init="min", + seed=42, + ) + ``` + + **Key parameters:** + + - `infrastructure_id`: identifier of the infrastructure + - `update_policies`: list of [update policies](update-policy.md) for infrastructure resources + - `node_assets` / `edge_assets`: available capabilities ([asset](assets.md) values) of nodes and links + - `include_default_assets`: include the built-in CPU, RAM, storage, availability, latency, and bandwidth assets + - `resource_init`: initialisation of resources not given explicitly (*min*, *max* or *asset_init*, see [assets](assets.md)) + - `seed`: random seed for reproducibility + - `path_assets_aggregators`: aggregators for *each link asset* evaluation across paths + +=== "Application" + + ```python + from eclypse import policies + from eclypse.graph.application import Application + + application = Application( + application_id="app", + include_default_assets=True, + update_policies=[ + policies.after( + 50, + policies.degrade.reduce( + factor=0.6, + epochs=200, + node_assets=["cpu", "ram"], + edge_assets=["bandwidth"], + ), + ), + policies.after( + 50, + policies.degrade.increase( + factor=1.6667, + epochs=200, + edge_assets=["latency"], + ), + ), + ], + requirement_init="min", + seed=42, + flows=[["frontend", "worker"]], + ) + ``` + + **Key parameters:** + + - `application_id`: identifier of the application. Defaults to `"Application"` + - `update_policies`: list of [update policies](update-policy.md) for application requirements + - `node_assets` / `edge_assets`: resource requirements ([asset](assets.md) values) of services and links + - `include_default_assets`: include the built-in requirement assets + - `requirement_init`: initialisation of requirements not given explicitly (*min*, *max* or *asset_init*, see [assets](assets.md)) + - `seed`: random seed for reproducibility + - `flows`: list of service chains or communication flows + +These classes inherit from a common base ([AssetGraph][eclypse.graph.asset_graph.AssetGraph]) and can be extended or composed via utility functions and default builders. + +## Defining the topologies { #define-topology } + +Once you have defined an Infrastructure or an Application object, you can incrementally add **nodes** (or services) and **edges** (or interactions) to describe its structure. + +Both classes expose two methods: + +- [add_node][eclypse.graph.asset_graph.AssetGraph.add_node] — to add a node or service +- [add_edge][eclypse.graph.asset_graph.AssetGraph.add_edge] — to add a link or interaction + +These methods allow you to associate assets and automatically validate their values, according to the asset definitions you provided during initialisation. + +=== "Infrastructure" + + ```python + from eclypse.graph.infrastructure import Infrastructure + from eclypse.graph.assets.defaults import cpu, ram, latency, bandwidth + + infra = Infrastructure( + infrastructure_id="my-infra", + node_assets={"cpu": cpu(), "ram": ram()}, + edge_assets={"latency": latency(), "bandwidth": bandwidth()}, + path_assets_aggregators={"latency": sum, "bandwidth": min}, + resource_init="min", # these assets have no initialiser + ) + + # Add two compute node + infra.add_node("node-1", cpu=4.0, ram=8.0) + infra.add_node("node-2", cpu=8.0, ram=16.0, strict=False) + + # Add a link with latency and bandwidth + infra.add_edge( + "node-1", "node-2", + latency=10.0, + bandwidth=100.0, + symmetric=True # optional bidirectional link + ) + ``` + + - `strict=True` (default): raises an error if asset values are inconsistent + - `symmetric=True`: adds the edge in both directions + +=== "Application" + + ```python + from eclypse.graph.application import Application + from eclypse.graph.assets.defaults import cpu, ram, latency, bandwidth + + app = Application( + application_id="my-app", + node_assets={"cpu": cpu(), "ram": ram()}, + edge_assets={"latency": latency(), "bandwidth": bandwidth()}, + requirement_init="min", # these assets have no initialiser + ) + + # Add a service with specific resource requirements + app.add_node("service-A", cpu=1.0, ram=0.5) + app.add_node("service-B", cpu=2.0, ram=1.0, strict=False) + + # Add a directional communication between services + app.add_edge( + "service-A", "service-B", + latency=5.0, + bandwidth=10.0, + symmetric=False + ) + ``` + + - `strict=True` (default): raises an error if requirements are outside defined bounds + - `symmetric=False` (default): adds the edge in one direction only + + If you're building an application to run in **emulation mode** rather than *simulation*, + each service must be implemented with actual logic and remote execution support. + + See the [Emulation guide](../advanced/emulation/index.md) for details. + +!!! note + + All assets passed to [add_node][eclypse.graph.asset_graph.AssetGraph.add_node] or [add_edge][eclypse.graph.asset_graph.AssetGraph.add_edge] are checked against the declared asset definitions. + If validation fails and `strict` is `True`, an exception is raised. Otherwise, a warning is logged. + +## Default builders + +ECLYPSE provides several built-in builder functions that allow you to quickly +instantiate commonly used topologies and reference applications. +They return mutable [Application][eclypse.graph.application.Application] or +[Infrastructure][eclypse.graph.infrastructure.Infrastructure] objects with sensible +asset defaults and, for applications, representative flows. + +```python +from eclypse.builders.application import get_sock_shop +from eclypse.builders.infrastructure import get_fat_tree + +infra = get_fat_tree(k=4, include_default_assets=True) +app = get_sock_shop(include_default_assets=True) +``` + +!!! tip + + Builders are useful for prototyping or benchmarking standard scenarios. All + returned graphs are mutable and can be extended using the + [standard interface](#define-topology). See [Builders](builders.md) for the + available builder families. diff --git a/docs/overview/concepts/update-policy.md b/docs/overview/concepts/update-policy.md new file mode 100644 index 00000000..b7c34f2f --- /dev/null +++ b/docs/overview/concepts/update-policy.md @@ -0,0 +1,284 @@ +# Update policies + +In ECLYPSE, an update policy is a function that defines how the state of the +infrastructure or application evolves over time. It enables dynamic +simulations by modifying node or edge assets at each simulation step. + +Unlike assets, update policies are not tied to separate node- or edge-specific +interfaces. They are simple graph-oriented callables that receive the graph +being updated. + +## Function Signature + +```python +from eclypse.graph import AssetGraph + +def my_policy(graph: AssetGraph): + ... +``` + +The graph exposes the standard NetworkX views through `graph.nodes` and +`graph.edges`. Each node or edge has an associated data dictionary containing +its current asset values. + +## Built-in Policies + +ECLYPSE also provides a catalogue of off-the-shelf policies in +[eclypse.policies][eclypse.policies]. The module groups reusable policies into a few common +families: + +- **failure**: node and edge failures, availability flapping, correlated + failures, partitions, resource exhaustion, and latency spikes +- **noise**: bounded and momentum random walks, additive or multiplicative + jitter, Gaussian jitter, correlated noise, seasonal noise, dropout, and + impulse shocks +- **distribution**: uniform, normal, lognormal, triangular, beta, gamma, + truncated-normal, categorical, constant, Bernoulli, Poisson, exponential, + Weibull, Pareto, empirical, and weighted discrete multiplicative + perturbations +- **degrade**: progressive increase or reduction, direct assignment, scaling, + and ramping of selected assets +- **replay**: replay of node, edge, graph, and event values from records, + dataframes, CSV files, or parquet files, with optional cyclic replay +- **schedule**: wrappers such as [every][eclypse.policies.schedule.every], + [after][eclypse.policies.schedule.after], + [between][eclypse.policies.schedule.between], + [at][eclypse.policies.schedule.at], + [until][eclypse.policies.schedule.until], + [repeat][eclypse.policies.schedule.repeat], + [with_probability][eclypse.policies.schedule.with_probability], + [jittered_every][eclypse.policies.schedule.jittered_every], and + [cooldown][eclypse.policies.schedule.cooldown] +- **compose**: reusable policy composition with + [chain][eclypse.policies.compose.chain], + [one_of][eclypse.policies.compose.one_of], + [weighted_choice][eclypse.policies.compose.weighted_choice], and + [conditional][eclypse.policies.compose.conditional] +- **workload**: arrival processes, traffic matrices, and diurnal load +- **topology**: graph mutation policies for adding, removing, rewiring, and + churn +- **constraints**: invariant-enforcing policies such as clamping, + normalisation, and rounding + +For most simulations, the easiest workflow is to compose a few built-in +policies and only fall back to a custom callable when the behaviour is +scenario-specific. + +## Using Built-in Policies + +Built-in policies are regular graph callables, so you use them exactly like any +custom update policy. + +```python title="Example: Infrastructure policies composed from eclypse.policies" +from eclypse import policies +from eclypse.graph import Infrastructure + +infrastructure = Infrastructure( + "edge-cloud", + update_policies=[ + policies.failure.availability_flap( + down_probability=0.02, + up_probability=0.5, + node_filter=lambda _, data: data["availability"] > 0, + ), + policies.distribution.uniform( + node_assets=["cpu", "ram", "storage"], + edge_assets=["latency", "bandwidth"], + node_asset_distributions={ + "cpu": (0.95, 1.05), + "ram": (0.9, 1.1), + "storage": (0.98, 1.02), + }, + edge_asset_distributions={ + "latency": (0.95, 1.05), + "bandwidth": (0.98, 1.02), + }, + ), + ], +) +``` + +## Selectors and Assets + +Most built-in policies separate **what** to change from **where** to change it. + +- `node_assets` / `edge_assets` select which graph assets are updated +- `node_ids` / `edge_ids` target specific nodes or links +- `node_filter` / `edge_filter` let you target assets dynamically + +```python title="Example: Apply noise only to edge nodes and WAN links" +from eclypse import policies + +policy = policies.distribution.uniform( + node_assets=["cpu", "ram"], + edge_assets=["latency"], + node_filter=lambda node_id, data: data.get("tier") == "edge", + edge_filter=lambda source, target, data: data.get("kind") == "wan", +) +``` + +## Scheduling Policies + +Scheduling wrappers let you activate a policy only during part of the run. + +```python title="Example: Start value adjustments after step 100" +from eclypse import policies + +update_policies = [ + policies.after( + 100, + policies.degrade.reduce( + factor=0.5, + epochs=200, + node_assets=["cpu", "ram", "storage"], + edge_assets=["bandwidth"], + ), + ), + policies.after( + 100, + policies.degrade.increase( + factor=2.0, + epochs=200, + edge_assets=["latency"], + ), + ), + policies.with_probability( + 0.2, + policies.failure.resource_exhaustion( + factor=0.75, + node_assets=["cpu", "ram"], + ), + ), + policies.jittered_every( + 10, + policies.noise.additive_jitter( + edge_ranges={"latency": (-1.0, 2.0)}, + lower=0.0, + ), + jitter=2, + ), +] +``` + +## Replay Policies + +Replay helpers are useful when you want the simulation to follow observed +or synthetic measurements over time. + +```python title="Example: Replay node load from a parquet trace" +from eclypse import policies + +replay_users = policies.replay.from_parquet( + "examples/user_distribution/dataset.parquet", + target="nodes", + node_id_column="node_id", + time_column="time", + value_columns=["user_count"], + start_step=0, + cyclic=True, +) +``` +```python title="Example: Replay node and edge values together" +from eclypse import policies + +replay_trace = policies.replay.replay_graph( + node_records=[ + {"time": 0, "node_id": "edge-1", "users": 10}, + {"time": 1, "node_id": "edge-1", "users": 18}, + ], + edge_records=[ + {"time": 0, "source": "edge-1", "target": "cloud", "latency": 12}, + {"time": 1, "source": "edge-1", "target": "cloud", "latency": 20}, + ], + node_value_columns=["users"], + edge_value_columns=["latency"], + cyclic=True, +) +``` + +## Composition, Workloads, Topology, and Constraints + +The higher-level families help keep scenario code small when multiple effects +must be combined. + +```python title="Example: Compose workload, topology, and constraints" +from eclypse import policies + +update_policy = policies.compose.chain( + policies.workload.arrival_process( + rate=20, + node_assets="users", + node_filter=lambda node_id, data: data.get("tier") == "edge", + ), + policies.workload.traffic_matrix( + {("edge-1", "cloud"): 120.0}, + asset="traffic", + ), + policies.constraints.clamp_values( + lower=1.0, + edge_assets="bandwidth", + ), + policies.topology.churn( + add_probability=0.1, + candidate_nodes={ + "burst-edge": {"cpu": 16, "ram": 32, "availability": 1.0}, + }, + ), +) +``` + +## Current vs Initial Basis + +Numeric policies that can compound over repeated calls accept `basis`: + +- `basis="current"` uses the value at each call. This preserves cumulative + drift and is the default. +- `basis="initial"` uses the first value seen by that policy for each selected + asset. ECLYPSE stores only those touched asset values, not a copy of the graph. + +Use `basis="initial"` for oscillations or shocks around a nominal value: + +```python +stable_latency_noise = policies.noise.seasonal_noise( + amplitude=2.0, + period=24, + edge_assets="latency", + basis="initial", +) +``` + +## Writing Custom Policies + +You can define your own update policies by modifying the relevant asset values +within the graph. + +```python title="Example: A node policy that caps CPU to a fixed maximum" +from eclypse.graph import AssetGraph + +def cap_cpu(graph: AssetGraph): + for _, data in graph.nodes.items(): + if "cpu" in data: + data["cpu"] = min(data["cpu"], 2.0) +``` +```python title="Example: An edge policy that increases latency" +from eclypse.graph import AssetGraph + +def add_latency(graph: AssetGraph): + for _, _, data in graph.edges.data(): + if "latency" in data: + data["latency"] += 1.0 +``` + +## Custom vs built-in + +Built-in policies are ideal for common patterns such as failures, distributions, +explicit value adjustments, and replay from traces. When an example or scenario couples +multiple effects in a very specific way, keeping a custom callable is still the +right choice. Several examples in the repository intentionally do that to +preserve their original behaviour. + +!!! info "Important" + + Update policies must always ensure that modified asset values remain consistent. + Use the asset's [is_consistent()][eclypse.graph.assets.asset.Asset.is_consistent] method if needed. + Otherwise, placement and simulation logic may occur on inconsistent data. diff --git a/docs/source/overview/examples/echo.rst b/docs/overview/examples/echo.md similarity index 60% rename from docs/source/overview/examples/echo.rst rename to docs/overview/examples/echo.md index 8e1d0b73..152ac654 100644 --- a/docs/source/overview/examples/echo.rst +++ b/docs/overview/examples/echo.md @@ -1,5 +1,4 @@ -Echo -==== +# Echo The Echo example showcases a small service-based application in which messages are exchanged repeatedly among neighbouring services. @@ -7,85 +6,82 @@ are exchanged repeatedly among neighbouring services. Use it when you want to understand: - how to build an application and an infrastructure from Python code, -- how to run a local simulation end to end, +- how to run a remote emulation end to end, - how MPI-style communication behaves in a simple topology. The full code lives in the -`examples/echo `_ +[examples/echo](https://github.com/eclypse-org/eclypse/tree/main/examples/echo) directory. Run it from the repository root with: -.. code-block:: bash +```bash +uv run python -m examples.echo.main +``` - uv run python -m examples.echo.main - -Application ------------ +## Application The Echo Application consists of several identical services, each of which receives a message and echoes it back to all of its neighbors. This symmetrical architecture ensures that each service behaves identically. As each service echoes messages both by broadcasting to all neighbors and unicasting individually to each neighbour, it is useful to compare the expected results of these two communication methods. Broadcasting is expected to be faster than unicasting, as it involves sending messages to all neighbors simultaneously. Unicasting, on the other hand, requires sending a separate message to each neighbor, which can result in a longer total communication time. -.. dropdown:: Application code - - .. literalinclude:: ../../../../examples/echo/application.py - :language: python +??? example "Application code" + ```python + --8<-- "examples/echo/application.py" + ``` -Echo Service ------------- +## Echo Service -The ``EchoService`` class is the runtime component responsible for sending +The `EchoService` class is the runtime component responsible for sending messages to neighbour services and measuring the difference between unicast and broadcast communication. -.. dropdown:: Service code +??? example "Service code" - .. literalinclude:: ../../../../examples/echo/echo.py - :language: python - :linenos: + ```python linenums="1" + --8<-- "examples/echo/echo.py" + ``` The service inherits from -:class:`~eclypse.remote.service.service.Service` and implements -:py:meth:`~eclypse.remote.service.service.Service.step`, which is the unit of +[Service][eclypse.remote.service.service.Service] and implements +[step][eclypse.remote.service.service.Service.step], which is the unit of behaviour executed during emulation. - -Infrastructure --------------- +## Infrastructure The Echo application is deployed on a small infrastructure made of heterogeneous nodes connected through links with different latency and bandwidth values. -.. dropdown:: Infrastructure code +??? example "Infrastructure code" - .. literalinclude:: ../../../../examples/echo/infrastructure.py - :language: python + ```python + --8<-- "examples/echo/infrastructure.py" + ``` The infrastructure is also updated at each iteration through a graph update policy that mutates both nodes and links to simulate changing runtime conditions. -.. dropdown:: Update policy code +??? example "Update policy code" - .. literalinclude:: ../../../../examples/echo/update_policy.py - :language: python + ```python + --8<-- "examples/echo/update_policy.py" + ``` -Simulation ----------- +## Simulation The example configures a reproducible run with metrics enabled and stores the results under the default simulation path. -.. dropdown:: Simulation code +??? example "Simulation code" - .. literalinclude:: ../../../../examples/echo/main.py - :language: python + ```python + --8<-- "examples/echo/main.py" + ``` -What to inspect ---------------- +## What to inspect After the run, compare the communication metrics produced by unicast and broadcast exchanges. This example is a good template when you want to test a @@ -93,5 +89,5 @@ small emulated service loop before moving to a larger application. Related concepts: -- :doc:`../advanced/emulation/messaging` -- :doc:`../advanced/reporting` +- [Messaging](../advanced/emulation/messaging.md) +- [Reporting](../advanced/reporting.md) diff --git a/docs/overview/examples/grid_analysis.md b/docs/overview/examples/grid_analysis.md new file mode 100644 index 00000000..1999481a --- /dev/null +++ b/docs/overview/examples/grid_analysis.md @@ -0,0 +1,55 @@ +# Grid analysis + +The grid analysis example runs a Ray Tune sweep over infrastructure topology, +load, failure policy, random seed, and placement strategy choices. + +Use it when you want to understand: + +- how to wrap an ECLYPSE simulation in a parameter-search function, +- how to compare placement strategies across many generated infrastructures, +- how to write custom infrastructure assets and policies for experiments. + +The full code lives in the +[examples/grid_analysis](https://github.com/eclypse-org/eclypse/tree/main/examples/grid_analysis) +directory. + +Run it from the repository root with: + +```bash +uv run --with-requirements examples/grid_analysis/requirements.txt python -m examples.grid_analysis.main +``` + +## Simulation sweep + +??? example "Main sweep code" + + ```python + --8<-- "examples/grid_analysis/main.py" + ``` + +## Infrastructure + +??? example "Infrastructure code" + + ```python + --8<-- "examples/grid_analysis/infrastructure.py" + ``` + +## Placement strategy + +??? example "Strategy code" + + ```python + --8<-- "examples/grid_analysis/strategy.py" + ``` + +## What to inspect + +Use this example as a template for repeated experiments. The main result is not +a single simulation trace, but a grid of runs that lets you compare placement +strategies and infrastructure choices under the same sweep logic. + +Related concepts: + +- [Placement Strategy](../concepts/placement-strategy.md) +- [Update policies](../concepts/update-policy.md) diff --git a/docs/overview/examples/image_prediction.md b/docs/overview/examples/image_prediction.md new file mode 100644 index 00000000..1c362bec --- /dev/null +++ b/docs/overview/examples/image_prediction.md @@ -0,0 +1,56 @@ +# Image prediction + +The image prediction example shows a remote application with trainer, +predictor, and end-user services. It combines service implementations, custom +metrics, and a degradation policy in emulation mode. + +Use it when you want to understand: + +- how to attach concrete service implementations to an application, +- how to configure a remote simulation, +- how to collect custom metrics from remote service behaviour. + +The full code lives in the +[examples/image_prediction](https://github.com/eclypse-org/eclypse/tree/main/examples/image_prediction) +directory. + +Run it from the repository root with: + +```bash +uv run --with-requirements examples/image_prediction/requirements.txt python -m examples.image_prediction.main +``` + +## Application + +??? example "Application code" + + ```python + --8<-- "examples/image_prediction/application.py" + ``` + +## Simulation + +??? example "Simulation code" + + ```python + --8<-- "examples/image_prediction/main.py" + ``` + +## Metrics + +??? example "Metrics code" + + ```python + --8<-- "examples/image_prediction/metrics.py" + ``` + +## What to inspect + +This example is useful when the application behaviour matters, not only the +placement. Inspect the custom metrics together with the service implementations +to see how emulated runtime state becomes reportable simulation data. + +Related concepts: + +- [Emulation](../advanced/emulation/emulation.md) +- [Reporting](../advanced/reporting.md) diff --git a/docs/overview/examples/index.md b/docs/overview/examples/index.md new file mode 100644 index 00000000..7fdec303 --- /dev/null +++ b/docs/overview/examples/index.md @@ -0,0 +1,62 @@ +# Examples + +The examples section complements the getting-started guides with runnable +scenarios you can inspect and adapt. + +The code for the documented examples is available in the +:fontawesome-brands-github: +[examples](https://github.com/eclypse-org/eclypse/tree/main/examples/) +subdirectory of the repository. + +
+ +- :octicons-megaphone-16: **[Echo](echo.md)** + + --- + + A small service-based application that compares unicast and broadcast + communication patterns. + +- :octicons-tools-16: **[Off-the-shelf](off_the_shelf.md)** + + --- + + A local simulation composed only from built-in builders, policies, + and placement logic. + +- :octicons-package-dependents-16: **[SockShop](sock_shop.md)** + + --- + + A microservices application that simulates an online shop and is + provided in both MPI and REST variants. + +- :octicons-graph-16: **[Grid analysis](grid_analysis.md)** + + --- + + A Ray Tune sweep over infrastructure topologies, update policies, and + placement strategies. + +- :octicons-iterations-16: **[IO round trip](io_round_trip.md)** + + --- + + An import/export matrix that loads graph files through the default + IO importers and writes them back through every compatible exporter. + +- :octicons-image-16: **[Image prediction](image_prediction.md)** + + --- + + A remote image-prediction pipeline with custom services, metrics, and + degradation policies. + +- :octicons-people-16: **[User distribution](user_distribution.md)** + + --- + + A custom metric and update-policy example driven by changing user + distributions. + +
diff --git a/docs/overview/examples/io_round_trip.md b/docs/overview/examples/io_round_trip.md new file mode 100644 index 00000000..916031b8 --- /dev/null +++ b/docs/overview/examples/io_round_trip.md @@ -0,0 +1,115 @@ +# IO round trip + +This example focuses on the [eclypse.io][eclypse.io] package. It is not a simulation +scenario. Instead, it shows how ECLYPSE graph objects can move between external +files and the in-memory [Application][eclypse.graph.application.Application] and +[Infrastructure][eclypse.graph.infrastructure.Infrastructure] classes. + +Use it when you want to inspect the default importers and exporters side by +side, compare what each format preserves, or create a starting point for your +own graph exchange workflow. + +The full code lives in the +[examples/io_round_trip](https://github.com/eclypse-org/eclypse/tree/main/examples/io_round_trip) +directory. + +Run it from the repository root with: + +```bash +uv run python -m examples.io_round_trip.main +``` + +## What it shows + +The example ships small input files under `examples/io_round_trip/input` and +loads each one with the matching default importer: + +- application inputs: ECLYPSE JSON, Docker Compose, GML, GraphML, node-link JSON, + and TOSCA +- infrastructure inputs: ECLYPSE JSON, GML, GraphML, node-link JSON, and TOSCA + +Each loaded graph is then exported to every compatible default output format. +Docker Compose is only available for applications, so the grid contains: + +- `6 x 6` application conversions +- `5 x 5` infrastructure conversions +- `61` generated output files in total + +The generated files are written under `examples/io_round_trip/output` using a +path that makes each conversion explicit: + +```text +output//from-/to-. +``` + +For example: + +```text +output/application/from-gml/to-tosca.yaml +output/application/from-eclypse_json/to-docker_compose.yaml +output/infrastructure/from-graphml/to-node_link_json.json +output/infrastructure/from-tosca/to-eclypse_json.json +``` + +The example also writes `output/manifest.json` with one row per generated +conversion. + +## Input cases + +The input cases are declared once and reused by the grid runner. The case name +is the input format in snake case, while the parent folder carries the graph +kind. + +??? example "Input case definitions" + + ```python + --8<-- "examples/io_round_trip/cases.py" + ``` + +## Conversion grid + +The grid does the same thing for every case: + +1. load the source file through [load_application][eclypse.io.load_application] or + [load_infrastructure][eclypse.io.load_infrastructure] +2. ask [default_registry][eclypse.io.default_registry] for compatible output formats +3. dump the loaded graph through [dump_application][eclypse.io.dump_application] or + [dump_infrastructure][eclypse.io.dump_infrastructure] + +The example uses only default importers and exporters. It does not register +custom handlers. + +??? example "Grid code" + + ```python + --8<-- "examples/io_round_trip/grid.py" + ``` + +## Entrypoint + +The entrypoint runs the grid, writes the manifest, and prints a short summary of +the available formats and generated files. + +??? example "Entrypoint code" + + ```python + --8<-- "examples/io_round_trip/main.py" + ``` + +## What to inspect + +Start from `output/manifest.json` to see the full conversion matrix. Then +compare the outputs for the same input format, for example +`output/application/from-tosca` or `output/infrastructure/from-graphml`. + +The canonical ECLYPSE JSON output is the most complete round-trip format. Graph +formats such as GML, GraphML, and node-link JSON are useful for graph tooling and +topology exchange. Docker Compose and TOSCA show how ECLYPSE applications and +infrastructures can be projected into cloud-edge oriented formats. + +Related concepts: + +- [Import and Export](../concepts/import-export.md) +- [Application][eclypse.graph.application.Application] +- [Infrastructure][eclypse.graph.infrastructure.Infrastructure] +- [eclypse.io][eclypse.io] diff --git a/docs/source/overview/examples/off_the_shelf.rst b/docs/overview/examples/off_the_shelf.md similarity index 54% rename from docs/source/overview/examples/off_the_shelf.rst rename to docs/overview/examples/off_the_shelf.md index 1f20b29c..f98002d6 100644 --- a/docs/source/overview/examples/off_the_shelf.rst +++ b/docs/overview/examples/off_the_shelf.md @@ -1,72 +1,68 @@ -Off-the-shelf -============= +# Off-the-shelf This example shows a complete local simulation built only from reusable ECLYPSE components: -- the :func:`~eclypse.builders.application.get_hotel_reservation` application builder -- an infrastructure builder from :mod:`eclypse.builders.infrastructure` -- built-in update policies from :mod:`eclypse.policies` +- the [get_hotel_reservation][eclypse.builders.application.get_hotel_reservation] application builder +- an infrastructure builder from [eclypse.builders.infrastructure][eclypse.builders.infrastructure] +- built-in update policies from [eclypse.policies][eclypse.policies] - a built-in placement strategy Use it when you want a minimal reference for composing existing building blocks without writing custom services, topologies, or policy callables. The full code lives in the -`examples/off_the_shelf `_ +[examples/off_the_shelf](https://github.com/eclypse-org/eclypse/tree/main/examples/off_the_shelf) directory. Run it from the repository root with: -.. code-block:: bash +```bash +uv run python -m examples.off_the_shelf.main +``` - uv run python -m examples.off_the_shelf.main - -Application ------------ +## Application The application is the built-in hotel reservation graph, paired with built-in uniform-distribution and degradation policies that progressively make placement harder. ECLYPSE also provides several other ready-made application builders collected -in :mod:`eclypse.builders.application`. - -.. dropdown:: Application code +in [eclypse.builders.application][eclypse.builders.application]. - .. literalinclude:: ../../../../examples/off_the_shelf/application.py - :language: python +??? example "Application code" + ```python + --8<-- "examples/off_the_shelf/application.py" + ``` -Infrastructure --------------- +## Infrastructure The infrastructure is a generated hierarchical topology using the default assets and a built-in policy mix for flapping availability, uniform perturbations, periodic latency spikes, and scheduled degradation. ECLYPSE also provides several other off-the-shelf infrastructure builders collected in -:mod:`eclypse.builders.infrastructure`. Together with ``BestFitStrategy``, this +[eclypse.builders.infrastructure][eclypse.builders.infrastructure]. Together with `BestFitStrategy`, this example exercises repeated placement under a changing environment. -.. dropdown:: Infrastructure code - - .. literalinclude:: ../../../../examples/off_the_shelf/infrastructure.py - :language: python +??? example "Infrastructure code" + ```python + --8<-- "examples/off_the_shelf/infrastructure.py" + ``` -Simulation ----------- +## Simulation The simulation registers the built-in application on the generated infrastructure with a built-in placement strategy and runs it locally. -.. dropdown:: Simulation code +??? example "Simulation code" - .. literalinclude:: ../../../../examples/off_the_shelf/main.py - :language: python + ```python + --8<-- "examples/off_the_shelf/main.py" + ``` -What to inspect ---------------- +## What to inspect This example is the quickest template for a local experiment built from existing components. Inspect placement changes and application-level metrics as @@ -74,6 +70,6 @@ the infrastructure policies make resources less stable. Related concepts: -- :doc:`../concepts/builders` -- :doc:`../concepts/update-policy` -- :doc:`../concepts/placement-strategy` +- [Builders](../concepts/builders.md) +- [Update policies](../concepts/update-policy.md) +- [Placement Strategy](../concepts/placement-strategy.md) diff --git a/docs/overview/examples/sock_shop.md b/docs/overview/examples/sock_shop.md new file mode 100644 index 00000000..a594bdfb --- /dev/null +++ b/docs/overview/examples/sock_shop.md @@ -0,0 +1,89 @@ +# SockShop + +[SockShop](https://github.com/ocp-power-demos/sock-shop-demo) is a +microservices-based e-commerce application that simulates an online sock store. +It is composed of multiple services responsible for catalog browsing, user +management, cart updates, payment, shipping, and order handling. + +ECLYPSE provides two versions of the application that share the same abstract +application model and infrastructure, but differ in the communication +interface used by the services: + +1. **MPI**: this version uses the Message Passing Interface (MPI) for communication between services. MPI is a high-performance communication protocol that is well-suited for distributed computing environments, enabling efficient message passing and synchronization between services. + +2. **REST**: this version uses Representational State Transfer (REST) for communication between services. RESTful APIs promote simplicity and standardization, making it easier to develop, maintain, and integrate services within the microservices architecture. + +Below, we focus on the `FrontendService` implementation in both variants, +because it highlights the practical differences between MPI and REST +communication in ECLYPSE. + +The full code lives in the +[examples/sock_shop/mpi.py](https://github.com/eclypse-org/eclypse/blob/main/examples/sock_shop/mpi.py) +and +[examples/sock_shop/rest.py](https://github.com/eclypse-org/eclypse/blob/main/examples/sock_shop/rest.py) +directories. + +Run either variant from the repository root with: + +```bash +uv run python -m examples.sock_shop.mpi +uv run python -m examples.sock_shop.rest +``` + +!!! warning + + Both interfaces are asynchronous. When you call the low-level request APIs + directly, await the returned request object so that route and delivery + failures surface immediately. + +## FrontendService (MPI version) + +```python linenums="1" +--8<-- "eclypse/builders/application/sock_shop/mpi_services/frontend.py" +``` + +The MPI interface revolves around the methods `send`, `bcast`, and +`recv`. It is useful when you want to model explicit message passing between +services. + +We can notice two ways of sending a message: + +- At lines 64 -- 72 we use the + [exchange][eclypse.remote.communication.mpi.interface.exchange] decorator. + This is convenient for common `recv`/`send` patterns. + + A complete example of such a pattern is the following, where the service receives a message and sends a response to the sender: + + ```python + @mpi.exchange(receive=True, send=True) + def my_request(self, sender_id, body): + + response = ... # process the body + + return sender_id, response + ``` + +- At lines 36, 44, and 58 we use `mpi.send` directly, specifying the + recipient and the message body. +- `recv` waits for the next message in the internal queue. + +## FrontendService (REST version) + +```python linenums="1" +--8<-- "eclypse/builders/application/sock_shop/rest_services/frontend.py" +``` + +In this example, the REST interface uses endpoint-oriented methods such as +`get` and `post`. This style is a better fit when you want to model +request/response interactions explicitly. + +## What to inspect + +Use Sock Shop to compare the same abstract application under two communication +interfaces. The MPI variant is useful for explicit message-passing workflows; +the REST variant is useful for endpoint-oriented microservice interactions. + +Related concepts: + +- [Messaging](../advanced/emulation/messaging.md) +- [Run a remote emulation](../getting-started/remote-emulation.md) diff --git a/docs/overview/examples/user_distribution.md b/docs/overview/examples/user_distribution.md new file mode 100644 index 00000000..9637f540 --- /dev/null +++ b/docs/overview/examples/user_distribution.md @@ -0,0 +1,57 @@ +# User distribution + +The user distribution example customises a generated infrastructure with a +`user_count` asset and updates latency and placement conditions as the user +distribution evolves. + +Use it when you want to understand: + +- how to add a custom infrastructure asset, +- how to write metrics around domain-specific infrastructure state, +- how update policies can drive a longer-running simulation. + +The full code lives in the +[examples/user_distribution](https://github.com/eclypse-org/eclypse/tree/main/examples/user_distribution) +directory. + +Run it from the repository root with: + +```bash +uv run --with-requirements examples/user_distribution/requirements.txt python -m examples.user_distribution.main +``` + +## Infrastructure + +??? example "Infrastructure code" + + ```python + --8<-- "examples/user_distribution/infrastructure.py" + ``` + +## Metrics + +??? example "Metrics code" + + ```python + --8<-- "examples/user_distribution/metric.py" + ``` + +## Simulation + +??? example "Simulation code" + + ```python + --8<-- "examples/user_distribution/main.py" + ``` + +## What to inspect + +Use this example when the infrastructure has domain-specific state. The +`user_count` asset shows how custom node attributes can drive metrics and +update policies without changing the core simulator. + +Related concepts: + +- [Assets](../concepts/assets.md) +- [Update policies](../concepts/update-policy.md) +- [Reporting](../advanced/reporting.md) diff --git a/docs/overview/getting-started/index.md b/docs/overview/getting-started/index.md new file mode 100644 index 00000000..62940fa8 --- /dev/null +++ b/docs/overview/getting-started/index.md @@ -0,0 +1,41 @@ +# Getting started + +Let's get started with ECLYPSE. + +If you want to get to a first successful run quickly, begin with one of the +guided paths below. Once you are comfortable with the workflow, move to the +[concept pages](../concepts/index.md) to customise assets, placement +strategies, events, infrastructure models, and simulation parameters. + +## Happy paths + +
+ +- **[1. Run a minimal local simulation](minimal-local-run.md)** + + --- + + Build a small scenario with the built-in builders, run it locally, + and retrieve the resulting report. + +- **[2. Inspect and query the report](inspect-results.md)** + + --- + + Learn how to load report frames, choose a backend, and work with the + collected metrics. + +- **[3. Move to remote emulation](remote-emulation.md)** + + --- + + Run remote services with the MPI or REST communication interfaces and + understand how the setup differs from a local simulation. + +
+ +!!! tip + + If you have not yet installed ECLYPSE, refer to the [Installation](../install.md) page. + If you want the conceptual map after your first run, continue with + [Concepts](../concepts/index.md). diff --git a/docs/overview/getting-started/inspect-results.md b/docs/overview/getting-started/inspect-results.md new file mode 100644 index 00000000..dd63806f --- /dev/null +++ b/docs/overview/getting-started/inspect-results.md @@ -0,0 +1,88 @@ +# Inspect the results + +ECLYPSE stores simulation outputs on disk and exposes them through the +[Report][eclypse.report.report.Report] interface. + +The report API gives you two main choices: + +- the **report format**, which controls how data is written to disk, +- the **report backend**, which controls the dataframe implementation returned + when you query the report. + +## Choose the report format + +Use the `report_format` parameter of +[SimulationConfig][eclypse.simulation.config.SimulationConfig] to choose how the raw data +is written: + +- `"csv"`: easy to inspect manually, +- `"json"`: useful for structured debugging and integration, +- `"parquet"`: best suited to larger runs and analytical workloads. + +```python +from eclypse.simulation import SimulationConfig + +config = SimulationConfig( + report_format="parquet", + include_default_metrics=True, +) +``` + +## Choose the report backend + +Use `report_backend` to control the in-memory dataframe implementation used +by [Report][eclypse.report.report.Report]: + +- `"pandas"` +- `"polars"` +- `"polars_lazy"` + +```python +config = SimulationConfig( + report_backend="polars", + report_format="parquet", + include_default_metrics=True, +) +``` + +## Query report frames + +Once a simulation has completed, you can retrieve report frames either through +the convenience methods or through the generic +[frame][eclypse.report.report.Report.frame] entry point: + +```python +report = simulation.report + +application_frame = report.application() +service_frame = report.service() +generic_frame = report.frame("interaction") +``` + +You can also restrict the data by report range: + +```python +recent_steps = report.service(report_range=(10, 20)) +``` + +## Standalone report loading + +Reports can also be loaded later from disk: + +```python +from eclypse.report import Report + +report = Report("path/to/simulation") +frame = report.application() +``` + +If needed, you can explicitly set the format when loading: + +```python +report = Report("path/to/simulation", report_format="parquet") +``` + +!!! note "See also" + + - [Simulation configuration](../concepts/simulation-configuration.md) + - [Reporting](../advanced/reporting.md) diff --git a/docs/overview/getting-started/minimal-local-run.md b/docs/overview/getting-started/minimal-local-run.md new file mode 100644 index 00000000..1679f38a --- /dev/null +++ b/docs/overview/getting-started/minimal-local-run.md @@ -0,0 +1,96 @@ +# Run a local simulation + +This page shows the shortest path to a first successful ECLYPSE run. + +We will: + +1. create an infrastructure with a built-in builder, +2. create an application with a built-in builder, +3. configure a local simulation, +4. run it and inspect the report. + +This path uses only local simulation components. No remote services or +communication interfaces are required. + +## Build the scenario + +The following example uses: + +- [get_hierarchical][eclypse.builders.infrastructure.get_hierarchical] to build a + small infrastructure, +- [get_sock_shop][eclypse.builders.application.sock_shop.application.get_sock_shop] to + build a reference application, +- [RandomStrategy][eclypse.placement.strategies.RandomStrategy] for placement. + +```python +from eclypse.builders.application import get_sock_shop +from eclypse.builders.infrastructure import get_hierarchical +from eclypse.placement.strategies import RandomStrategy +from eclypse.simulation import Simulation, SimulationConfig + +seed = 22 # (1)! + +infrastructure = get_hierarchical( + n=20, + include_default_assets=True, # (2)! + seed=seed, +) + +application = get_sock_shop( + include_default_assets=True, + seed=seed, +) + +config = SimulationConfig( + seed=seed, + max_steps=20, + include_default_metrics=True, # (3)! + default_strategy=RandomStrategy(seed=seed), # (4)! +) + +simulation = Simulation(infrastructure, simulation_config=config) +simulation.register(application) +``` + +1. Reuse the same seed in builders and placement to make repeated runs reproducible. +2. Include the built-in resource assets instead of defining CPU, RAM and link assets yourself. +3. Collect the default metrics so the report contains data to inspect after the run. +4. Choose how services are placed on infrastructure nodes; replace this strategy to compare placement decisions. + +## Run the simulation + +Once the infrastructure, application, and configuration are ready, start the +simulation and wait for it to finish: + +```python +simulation.run() +``` + +## Inspect the report + +After the run, the [report][eclypse.simulation.simulation.Simulation.report] +property exposes the collected data through the +[Report][eclypse.report.report.Report] interface: + +```python +application_frame = simulation.report.application() +service_frame = simulation.report.service() + +print(application_frame.head()) +print(service_frame.head()) +``` + +The exact object type depends on the selected report backend. By default, +ECLYPSE uses the backend configured in +[SimulationConfig][eclypse.simulation.config.SimulationConfig]. + +!!! note "See also" + + - [Inspect the results](inspect-results.md) + - [Infrastructure and Application(s)](../concepts/topology.md) + - [Simulation configuration](../concepts/simulation-configuration.md) + +!!! note + + Looking for a larger runnable example? See the [Echo](../examples/echo.md) and + [SockShop](../examples/sock_shop.md) pages. diff --git a/docs/overview/getting-started/remote-emulation.md b/docs/overview/getting-started/remote-emulation.md new file mode 100644 index 00000000..3f0b473d --- /dev/null +++ b/docs/overview/getting-started/remote-emulation.md @@ -0,0 +1,77 @@ +# Run a remote emulation + +Remote emulation is the next step after a local simulation. + +In this mode, application services are instantiated as remote services and can +communicate through one of the supported interfaces: + +- `"mpi"` +- `"rest"` + +The overall simulation flow remains the same, but the application must be built +with remote-capable services and the simulation configuration must enable +`remote=True`. + +## Minimal setup + +```python +from eclypse.builders.application import get_sock_shop +from eclypse.builders.infrastructure import get_hierarchical +from eclypse.placement.strategies import RandomStrategy +from eclypse.simulation import Simulation, SimulationConfig + +seed = 22 + +infrastructure = get_hierarchical( + n=30, + include_default_assets=True, + seed=seed, +) + +application = get_sock_shop( + communication_interface="mpi", + include_default_assets=True, + seed=seed, +) + +config = SimulationConfig( + remote=True, + seed=seed, + max_steps=100, + step_every_ms=500, + include_default_metrics=True, + default_strategy=RandomStrategy(seed=seed), +) + +simulation = Simulation(infrastructure, simulation_config=config) +simulation.register(application) +simulation.run() +``` + +## Choosing the communication interface + +Use `communication_interface="mpi"` or `communication_interface="rest"` +when building the application. + +The two interfaces remain intentionally different: + +- MPI models explicit message passing with `send` and `recv` semantics. +- REST models endpoint-oriented request/response interactions. + +Choose the one that best matches the system you want to emulate. + +## What changes compared to a local run + +Compared to the [Run a local simulation](minimal-local-run.md) path: + +- services are remote service objects instead of plain application nodes, +- the simulation configuration must set `remote=True`, +- communication failures and deployment issues become part of the emulation + behaviour, +- remote messaging patterns depend on the chosen interface. + +!!! note "See also" + + - [Emulation](../advanced/emulation/emulation.md) + - [Messaging](../advanced/emulation/messaging.md) + - [SockShop](../examples/sock_shop.md) diff --git a/docs/overview/index.md b/docs/overview/index.md new file mode 100644 index 00000000..b0c6d93d --- /dev/null +++ b/docs/overview/index.md @@ -0,0 +1,42 @@ +# Overview + +
+ +- :octicons-desktop-download-16: **[Installation](install.md)** + + --- + + Learn how to install ECLYPSE. + +- :octicons-repo-16: **[Getting Started](getting-started/index.md)** + + --- + + Start your first simulation with ECLYPSE. + +- :octicons-book-16: **[Concepts](concepts/index.md)** + + --- + + Learn the core building blocks behind assets, events, placement, and + simulation configuration. + +- :octicons-terminal-16: **[Advanced](advanced/index.md)** + + --- + + Learn more about advanced features of ECLYPSE. + +- :octicons-code-16: **[Examples](examples/index.md)** + + --- + + Explore example simulations to use ECLYPSE effectively. + +- :octicons-history-16: **[Changelog](https://github.com/eclypse-org/eclypse/blob/main/CHANGELOG.md)** + + --- + + Track released versions and the latest published framework changes. + +
diff --git a/docs/overview/install.md b/docs/overview/install.md new file mode 100644 index 00000000..6aa4fbe9 --- /dev/null +++ b/docs/overview/install.md @@ -0,0 +1,47 @@ +# Install ECLYPSE + +ECLYPSE can be installed from [PyPI](https://pypi.org/project/eclypse/). +It requires Python `>=3.11,<3.15`. + +!!! note + + Do not use the global environment to install ECLYPSE. + It is recommended to create a [virtual environment](https://docs.python.org/3/library/venv.html) first. + +## Using pip + +Create and activate a virtual environment, then install the package: + +```shell +python -m venv .venv +source .venv/bin/activate +pip install eclypse +``` + +## Using uv + +If your project uses [uv](https://docs.astral.sh/uv/), add ECLYPSE to the +project dependencies: + +```shell +uv add eclypse +``` + +## Installing from source + +For development, clone the repository and install the dependency groups you +need: + +```shell +git clone https://github.com/eclypse-org/eclypse.git +cd eclypse +uv sync --group dev --group test +``` + +The documentation dependencies live in the `docs` group: + +```shell +uv sync --group docs +``` + +Now you are ready to run [your first ECLYPSE simulation](getting-started/index.md)! diff --git a/docs/source/api/index.rst b/docs/source/api/index.rst deleted file mode 100644 index 35f2a8a9..00000000 --- a/docs/source/api/index.rst +++ /dev/null @@ -1,19 +0,0 @@ -Reference -========= - -.. currentmodule:: eclypse - -.. autosummary:: - :recursive: - :toctree: reference - - builders - graph - io - placement - policies - remote - report - simulation - workflow - utils diff --git a/docs/source/overview/advanced/emulation/emulation.rst b/docs/source/overview/advanced/emulation/emulation.rst deleted file mode 100644 index 5aa2afe3..00000000 --- a/docs/source/overview/advanced/emulation/emulation.rst +++ /dev/null @@ -1,129 +0,0 @@ -Emulation -========= - -ECLYPSE supports **emulation mode**, in which service logic is executed as real -concurrent processes distributed over a physical or virtual cluster. This is -built on top of `Ray `_. - -Unlike local simulation, where services can remain abstract application nodes, -emulation requires you to implement the actual **runtime behaviour** of each -service. - -In this page, we focus on the elements that differ from standard simulation. - -Ray Overview ------------- - -Ray is based on the concept of **actors**: lightweight, stateful processes that live in a distributed cluster and interact via message passing. - -Each actor: - -- encapsulates state and behaviour, -- runs in parallel with others, -- persists across calls. - -Ray also provides a built-in **object store** that supports asynchronous, shared-memory communication across the cluster. - -ECLYPSE uses Ray actors to represent application services when running in emulation mode. - - -Enabling Emulation ------------------- - -To activate emulation from a -:doc:`simulation run <../../concepts/simulation-configuration>`, -you must either: - -- set the flag ``remote=True`` when creating the simulation, or -- pass a :class:`~eclypse.remote.bootstrap.bootstrap.RemoteBootstrap` object, which defines the **Ray cluster configuration**. - -Example: - -.. code-block:: python - - from eclypse.remote.bootstrap import RemoteBootstrap - from eclypse.simulation import Simulation, SimulationConfig - - bootstrap = RemoteBootstrap() - config = SimulationConfig(remote=bootstrap) - simulation = Simulation(infrastructure, simulation_config=config) - -.. _implementing-a-service: - -Implementing a Service ----------------------- - -To define a service in emulation, subclass -:class:`~eclypse.remote.service.service.Service` or -:class:`~eclypse.remote.service.rest.RESTService`. - -These classes wrap a Ray actor that runs a loop on a remote node. - -You must implement the method: - -- :py:meth:`~eclypse.remote.service.service.Service.step` -- defines one iteration of service behaviour. - -Optionally, you can override: - -- :py:meth:`~eclypse.remote.service.service.Service.on_deploy` -- called just before the service starts executing. -- :py:meth:`~eclypse.remote.service.service.Service.on_undeploy` -- called after the service stops. - -If the service is created with ``store_step=True``, the return value of -:py:meth:`~eclypse.remote.service.service.Service.step` is pushed into the -service's step buffer and can later be collected through the default -``step_result`` metric. - -.. dropdown:: Example: Echo Service - - The following example shows a simple service that sends a message to its - neighbours via MPI and stores one value per iteration. - - .. code-block:: python - - import asyncio - from eclypse.remote.service import Service - - class EchoService(Service): - def __init__(self, service_id: str): - super().__init__(service_id, store_step=True) - self.i = 0 - - async def step(self): - message = {"msg": f"Hello from {self.id}!"} - for neighbour in await self.mpi.get_neighbors(): - await self.mpi.send(neighbour, message) - self.i += 1 - await asyncio.sleep(1) - return self.i - - .. note:: - - The parameter ``store_step=True`` ensures that the return value of - :py:meth:`~eclypse.remote.service.service.Service.step` can be collected - later by reporting tools. - - -Messaging Protocols -------------------- - -ECLYPSE currently supports two service communication protocols: - -- a mock **MPI-like interface**, exposed as ``self.mpi`` inside a service, -- a REST interface, via subclassing :class:`~eclypse.remote.service.RESTService`. - -In both cases, services may communicate with each other by sending structured messages. Routing and delivery are handled by the runtime. - -Reporting emulation results -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The default metric ``step_result`` reports the values returned by the service's -:py:meth:`~eclypse.remote.service.service.Service.step` method, in the order -they were produced. This is useful for monitoring application-level behaviour -over time. - -The step buffer is a FIFO queue: each time ``step_result`` is triggered (by -default, once per ``enact``), it removes and reports the **oldest** stored -value. If ``step`` runs more often than the metric is triggered, values -accumulate and the report lags behind the service. The buffer holds up to -``DEFAULT_STEP_QUEUE_SIZE`` (1024) values; when it is full, the oldest ones are -dropped. diff --git a/docs/source/overview/advanced/emulation/index.rst b/docs/source/overview/advanced/emulation/index.rst deleted file mode 100644 index aa838e2e..00000000 --- a/docs/source/overview/advanced/emulation/index.rst +++ /dev/null @@ -1,29 +0,0 @@ -Emulation -========= - -.. toctree:: - :maxdepth: 3 - :hidden: - - emulation - messaging - -.. grid:: 2 - - .. grid-item:: - - .. card:: :octicon:`codespaces;1em;info` **Emulation** - :link-type: doc - :link: emulation - - Define the logic of your application services and run them as remote - services on a machine or a cluster. - - .. grid-item:: - - .. card:: :octicon:`comment-discussion;1em;info` **Messaging** - :link-type: doc - :link: messaging - - Exchange messages between services in emulation mode using the MPI-like - and REST-style interfaces. diff --git a/docs/source/overview/advanced/emulation/messaging.rst b/docs/source/overview/advanced/emulation/messaging.rst deleted file mode 100644 index ad7c74e4..00000000 --- a/docs/source/overview/advanced/emulation/messaging.rst +++ /dev/null @@ -1,182 +0,0 @@ -Messaging -========= - -When running in :doc:`emulation mode `, ECLYPSE allows services to communicate directly with one another using structured :class:`~eclypse.remote.communication.interface.EclypseCommunicationInterface`. - -Two communication models are currently supported: - -- an **MPI-like interface** (:class:`~eclypse.remote.communication.mpi.interface.EclypseMPI`), designed for low-latency message passing -- a **REST-style interface** (:class:`~eclypse.remote.communication.rest.interface.EclypseREST`), designed for loosely coupled HTTP interactions - -These APIs can be used from within emulated services to exchange information, -coordinate behaviour, or simulate service-level protocols. - - -MPI-style messaging -------------------- - -The MPI interface provides basic primitives to send and receive messages among services deployed in the same application. - -Each :class:`~eclypse.remote.service.service.Service` has access to an :py:attr:`~eclypse.remote.service.service.Service.mpi` attribute (an instance of the internal communication layer), through which it can: - -- send messages to specific services (:py:meth:`~eclypse.remote.communication.mpi.interface.EclypseMPI.send`) -- broadcast messages to all neighbours (:py:meth:`~eclypse.remote.communication.mpi.interface.EclypseMPI.bcast`) -- receive incoming messages (:py:meth:`~eclypse.remote.communication.mpi.interface.EclypseMPI.recv`) - -All methods are **asynchronous** and simulate network cost using the placement and topology of the infrastructure. -The send and broadcast requests must be awaited explicitly. - -.. code-block:: python - :caption: **Example:** Use MPI interface - - """ ... inside the step() method of service-A """ - - # Send to one neighbour - await self.mpi.send("service-B", {"msg": "ping"}) - - # Broadcast to all neighbours - await self.mpi.bcast({"msg": "update"}) - - # Receive next message - message = await self.mpi.recv() - - # Wait at most 5 seconds; raises TimeoutError if nothing arrives - message = await self.mpi.recv(timeout=5.0) - - # Receive immediately; raises queue.Empty if no matching message is queued - message = await self.mpi.recv(source="service-B", block=False) - - # Receive this sender's oldest message; other senders stay queued - message = await self.mpi.recv(timeout=5.0, source="service-B") - -``recv()`` returns the oldest queued message as a ``Message`` object. -Its ``source`` attribute identifies the sending service, while ``data`` contains -the application data unchanged, including any application-defined ``source`` key. -For example, use ``message.source`` and ``message.data["msg"]``. Pass ``source`` to receive -the oldest message from a specific service, leaving other messages queued. -By default, reception waits until a matching message arrives; -``timeout`` limits this wait in seconds and raises ``TimeoutError`` if it expires. -Use ``block=False`` to receive immediately or raise ``queue.Empty`` if no matching -message is available; in this mode, ``timeout`` is ignored. Cancelling or timing -out a receive leaves later messages available for the next call. - -@exchange() decorator -~~~~~~~~~~~~~~~~~~~~~ - -In addition to direct calls, the -:class:`~eclypse.remote.communication.mpi.interface.EclypseMPI` interface -provides a decorator -(:py:func:`@exchange() `) -to define communication behaviour declaratively inside service methods. - -You can decorate a method to: - -- receive a message before it runs (``receive=True``) -- send the return value to a target (``send=True``) -- broadcast the return value to all neighbours (``broadcast=True``) - -**Sending and broadcasting are mutually exclusive.** - -.. code-block:: python - :caption: **Example:** Using the :py:func:`~eclypse.remote.communication.mpi.interface.exchange` decorator - - from eclypse.remote.service import Service - from eclypse.remote.communication.mpi import exchange - - class EchoService(Service): - - @exchange(receive=True, send=True) - async def step(self, source, message): - reply = {"msg": f"Echo: {message['msg']}"} - return source, reply - -REST-style Messaging --------------------- - -ECLYPSE also provides a REST-style communication interface for services. This -mode models service interaction using HTTP-like semantics and is better suited -for stateless, loosely coupled communication patterns. - -To use this style, your service must subclass -:class:`~eclypse.remote.service.rest.RESTService`. - -@register_endpoint() decorator -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You define REST endpoints inside your service by decorating methods with -:py:func:`@register_endpoint() `. - -Each endpoint: - -- is associated with a URL pattern and an HTTP method (``GET``, ``POST``, ``PUT``, ``DELETE``) -- receives the request data as keyword arguments -- must return a tuple: ``(HTTPStatusCode, response_dict)`` - -Example: - -.. code-block:: python - - from eclypse.remote.communication.rest.codes import HTTPStatusCode - from eclypse.remote.communication.rest.interface import register_endpoint - from eclypse.remote.service import RESTService - - class StoreService(RESTService): - - def __init__(self, service_id: str): - super().__init__(service_id) - self.store = {} - - @register_endpoint("/data", method="POST") - async def store_data(self, key: str, value: Any): - self.store[key] = value - return HTTPStatusCode.CREATED, {"status": "ok"} - - @register_endpoint("/data", method="GET") - def get_data(self, key: str): - value = self.store.get(key, None) - return HTTPStatusCode.OK, {"value": value} - -Making Requests -~~~~~~~~~~~~~~~ - -From within a service, you can send requests using: - -- :py:func:`~eclypse.remote.communication.rest.interface.EclypseREST.get` -- :py:func:`~eclypse.remote.communication.rest.interface.EclypseREST.post` -- :py:func:`~eclypse.remote.communication.rest.interface.EclypseREST.put` -- :py:func:`~eclypse.remote.communication.rest.interface.EclypseREST.delete` - -.. code-block:: python - :caption: **Example:** Make a POST request to another service - - """ ... inside the step() method of service-A """ - - await self.rest.post("StoreService/data", key="item1", value=42) - -Each method returns an HTTP request object. When awaited, the request is -executed and the object exposes: - -- ``status_code`` -- ``body`` -- ``response`` -- ``route`` - -For example: - -.. code-block:: python - - request = await self.rest.post("StoreService/data", key="item1", value=42) - print(request.status_code) - print(request.body) - -Endpoint Resolution -~~~~~~~~~~~~~~~~~~~ - -When a REST service starts, it scans all decorated methods using -:py:func:`@register_endpoint() ` -and registers them dynamically. Endpoint URLs are scoped per service ID: the -final URL is prefixed by the service name. - -For example, if a service ``s1`` exposes ``/data``, the full URL is: ``s1/data``. - -Routing and delivery are managed by the infrastructure runtime. diff --git a/docs/source/overview/advanced/index.rst b/docs/source/overview/advanced/index.rst deleted file mode 100644 index 6d62b48f..00000000 --- a/docs/source/overview/advanced/index.rst +++ /dev/null @@ -1,39 +0,0 @@ -Advanced topics -=============== - -.. toctree:: - :maxdepth: 2 - :hidden: - - triggers - emulation/index - reporting - -.. grid:: 2 - - .. grid-item:: - - .. card:: :octicon:`workflow;1em;info` **Triggers** - :link-type: doc - :link: triggers - - Learn how to define and use **triggers** to activate complex workflows in your simulation. - Explore built-in triggers or create your own custom triggers to suit your simulation needs. - - .. grid-item:: - - .. card:: :octicon:`codespaces;1em;info` **Emulation** - :link-type: doc - :link: emulation/index - - Move from abstract simulations to remote service execution with - real service logic and explicit communication interfaces. - - .. grid-item:: - - .. card:: :octicon:`log;1em;info` **Reporting** - :link-type: doc - :link: reporting - - Define metrics, choose storage formats, and access results through - the report API and dataframe backends. diff --git a/docs/source/overview/advanced/reporting.rst b/docs/source/overview/advanced/reporting.rst deleted file mode 100644 index bd9b28a6..00000000 --- a/docs/source/overview/advanced/reporting.rst +++ /dev/null @@ -1,224 +0,0 @@ -Reporting -========= - -ECLYPSE provides a reporting pipeline with three moving parts: - -#. **Define what to report** through metrics, -#. **choose how to persist it** through report formats and reporters, -#. **load and query the results** through :class:`~eclypse.report.report.Report`. - -Defining Metrics ----------------- - -Metrics are reportable events that collect and return structured data during the simulation. -Technically, they are events with the -:class:`~eclypse.workflow.event.role.EventRole.METRIC` role, exposed through the -``@metric.`` decorators provided in :mod:`eclypse.report.metrics`. - -Metrics, callbacks, and regular events all share the same event engine, but they serve -different purposes: - -- regular events drive the workflow, -- callbacks attach post-event logic without making reporting the primary goal, -- metrics attach post-event logic whose output is intended to be written by reporters. - -This distinction matters because a metric is both: - -- a post-event hook, so it can access the triggering event payload, -- a reporting primitive, so its return value is prepared for the reporting pipeline. - -By contrast, a plain callback can inspect the same context, but it is mainly meant for -workflow composition or transient post-processing. - -There are 7 decorators corresponding to different metric types: - -- :py:func:`~eclypse.report.metrics.metric.simulation` -- :py:func:`~eclypse.report.metrics.metric.infrastructure` -- :py:func:`~eclypse.report.metrics.metric.node` -- :py:func:`~eclypse.report.metrics.metric.link` -- :py:func:`~eclypse.report.metrics.metric.application` -- :py:func:`~eclypse.report.metrics.metric.service` -- :py:func:`~eclypse.report.metrics.metric.interaction` - -See :ref:`event-decorator` for details on scheduled event helpers. A metric lets -you specify: - -- **What data to collect** -- **How often to report** (using :doc:`triggers `) -- **How to report it** (via the `report` argument) - -Example: - -.. code-block:: python - :caption: Example of an application metric returning the number of its services - - from eclypse.report.metrics import metric - - @metric.application(activates_on=["step"], report=["csv", "json"]) - def my_metric(application, placement, infrastructure): - return len(application.nodes) - -.. note:: - Metrics are executed like events, and use the same underlying logic, including support for cascade triggers and trigger conditions. - -Custom metric recipe -~~~~~~~~~~~~~~~~~~~~ - -Use the metric decorator that matches the object you want to inspect, choose -when it activates, and return a single scalar value. - -.. code-block:: python - :caption: Custom service metric - - from eclypse.report.metrics import metric - - @metric.service(activates_on="step", report=["csv"]) - def requested_cpu(service_id, requirements, placement, infrastructure): - return requirements["cpu"] - -The reporting pipeline fills the identifier columns of the report itself (for a -service metric, ``application_id`` and ``service_id``), records the event -metadata, and stores the returned value in the ``value`` column. Returning -``None`` skips the row. - -.. warning:: - - Every report has a single ``value`` column, so a metric must not return a - mapping or a tuple: their items would become extra fields that do not fit - the report schema. To report several quantities, define one metric for each. - -Metric and callback types -~~~~~~~~~~~~~~~~~~~~~~~~~ - -The metric decorators mirror the same event types used by regular events. The event type -still determines what your logic receives: - -- ``simulation`` metrics receive ``triggering_event``, -- ``application`` metrics receive ``application``, ``placement``, and ``infrastructure``, -- ``service`` metrics receive ``service_id``, ``requirements``, ``placement``, and - ``infrastructure``, -- ``service`` metrics with ``remote=True`` receive a remote - :class:`~eclypse.remote.service.service.Service` instance, -- ``interaction`` metrics receive ``source_id``, ``target_id``, ``requirements``, - ``placement``, and ``infrastructure``, -- ``infrastructure`` metrics receive ``infrastructure`` and ``placement_view``, -- ``node`` metrics receive ``node_id``, ``resources``, ``placements``, - ``infrastructure``, and ``placement_view``, -- ``link`` metrics receive ``source_id``, ``target_id``, ``resources``, - ``placements``, ``infrastructure``, and ``placement_view``. - -Callbacks follow the same type-based signatures. The difference is therefore not the -arguments they receive, but the role they play in the workflow and whether their output -is meant to be reported. - - -Report storage formats and reporters ------------------------------------- - -ECLYPSE separates **storage formats** from **reporters**. - -The storage format is selected through -:class:`~eclypse.simulation.config.SimulationConfig` and controls how report -frames are written on disk: - -- ``csv`` for human-readable tabular files, -- ``json`` for JSONL outputs, -- ``parquet`` for analytical workloads and larger runs. - -The ``report`` argument on an event or metric selects one or more reporter -types for that specific event. Built-in reporter types cover the common sinks: - -- ``csv`` for human-readable tabular files, -- ``json`` for JSONL outputs, -- ``parquet`` for analytical workloads and larger runs, -- ``tensorboard`` for TensorBoard-compatible metrics. - -For CSV, JSON, and Parquet, the reporter type usually matches the configured -storage format. TensorBoard is different: it is a reporter sink, not a dataframe -storage format loaded later through :class:`~eclypse.report.report.Report`. - -You can also implement your own -:class:`~eclypse.report.reporter.Reporter` subclass if you want to persist data -to a different sink such as a database or a live dashboard. - -Default Reporters ------------------ - -ECLYPSE includes a set of built-in reporters: - -- :class:`~eclypse.report.reporter.Reporter` -- :class:`~eclypse.report.reporters.csv.CSVReporter` -- :class:`~eclypse.report.reporters.json.JSONReporter` -- :class:`~eclypse.report.reporters.parquet.ParquetReporter` -- :class:`~eclypse.report.reporters.tensorboard.TensorBoardReporter` - -In most cases you do not instantiate them manually. Instead, you select the -desired reporter types through metric/event configuration and let the -simulation resolve the built-in reporters automatically. - -.. important:: - - When implementing custom reporters that write to the filesystem, use - `aiofiles `_ for asynchronous file - operations. This keeps reporting from blocking the simulation loop. - - .. code-block:: python - :caption: **Example:** usage of aiofiles - - import aiofiles - - async with aiofiles.open(self.report_path / "data.csv", "a") as f: - await f.write("some,data,to,write\n") - -Choosing a report backend -------------------------- - -The :class:`~eclypse.report.report.Report` class can use multiple dataframe -backends: - -- ``pandas`` -- ``polars`` -- ``polars_lazy`` - -Choose the backend through -:class:`~eclypse.simulation.config.SimulationConfig` or directly when loading a -report from disk. - -Accessing reports ------------------ - -After the simulation, you can access the results using the -:class:`~eclypse.report.report.Report` object. - -Example usage: - -.. code-block:: python - :caption: Accessing reported data - - from eclypse.report import Report - - report = Report("./output") - df = report.service(application_ids="app1", service_ids="srv2") - -For a quick run summary, call -:py:meth:`~eclypse.report.report.Report.describe`: - -.. code-block:: python - - print(report.describe()) - # 84 rows x 10 steps x 12 metrics | 5 applications | ... - -Each accessor method supports filtering by: - -- `report_range` (e.g., only events between 10 and 100) -- `report_step` (e.g., one point every N events) -- event IDs, application IDs, node/service/link IDs, etc. - -.. tip:: - - If you need a generic entry point, use - :py:meth:`~eclypse.report.report.Report.frame`: - - .. code-block:: python - - report.frame("application") diff --git a/docs/source/overview/advanced/triggers.rst b/docs/source/overview/advanced/triggers.rst deleted file mode 100644 index dfeb5e96..00000000 --- a/docs/source/overview/advanced/triggers.rst +++ /dev/null @@ -1,181 +0,0 @@ -Triggers -======== - -Triggers are conditions that determine **when an event should fire** during the simulation. - -Each trigger must implement a :py:meth:`~eclypse.workflow.trigger.trigger.Trigger.trigger` -method that returns ``True`` if the event should be executed at that moment. -Triggers that need internal state can also override -:py:meth:`~eclypse.workflow.trigger.trigger.Trigger.prepare` and -:py:meth:`~eclypse.workflow.trigger.trigger.Trigger.reset`. - -ECLYPSE provides both: - -- **basic triggers**, which depend on time, probability, or simulation conditions. -- **cascade triggers**, which depend on the firing of **other events**. - -The tables below compares all available trigger types: - -.. list-table:: - :header-rows: 2 - :widths: 20 35 45 - - * - **Base Triggers** - - - - - * - Type - - Description - - Parameters - * - :class:`~eclypse.workflow.trigger.trigger.Trigger` - - Abstract base class. Must override ``trigger()``. - - *(none)* - * - :class:`~eclypse.workflow.trigger.trigger.PeriodicTrigger` - - Fires every fixed amount of wall-clock time. - - - ``trigger_every_ms: float`` - * - :class:`~eclypse.workflow.trigger.trigger.ScheduledTrigger` - - Fires at predefined wall-clock offsets. - - - ``scheduled_timedelta: timedelta | List[timedelta]`` - * - :class:`~eclypse.workflow.trigger.trigger.RandomTrigger` - - Fires randomly with given probability at each evaluation. - - - ``probability: float`` - - ``seed: int (optional)`` - -.. list-table:: - :header-rows: 2 - :widths: 20 35 45 - - * - **Cascade Triggers** - - - - - * - Type - - Description - - Parameters - * - :class:`~eclypse.workflow.trigger.cascade.CascadeTrigger` - - Fires when another event (by name) is triggered. - - - ``trigger_event: str`` - * - :class:`~eclypse.workflow.trigger.cascade.PeriodicCascadeTrigger` - - Fires every N times a specific event is triggered. - - - ``trigger_event: str`` - - ``every_n_triggers: int`` - * - :class:`~eclypse.workflow.trigger.cascade.ScheduledCascadeTrigger` - - Fires at specific counts of another event's triggers. - - - ``trigger_event: str`` - - ``scheduled_times: List[int]`` - * - :class:`~eclypse.workflow.trigger.cascade.RandomCascadeTrigger` - - Fires randomly when a specific event is triggered. - - - ``trigger_event: str`` - - ``probability: float`` - - ``seed: int (optional)`` - -Define triggers in scheduled decorators ---------------------------------------- - -You can define cascade triggers more compactly, using the ``activates_on`` parameter -in the :ref:`scheduled event decorators `: - -.. list-table:: - :header-rows: 1 - - * - Syntax - - Equivalent trigger - * - ``"event_name"`` - - CascadeTrigger("event_name") - * - ``("event_name", 3)`` - - PeriodicCascadeTrigger("event_name", 3) - * - ``("event_name", [5, 10])`` - - ScheduledCascadeTrigger("event_name", [5, 10]) - * - ``("event_name", 0.2)`` - - RandomCascadeTrigger("event_name", 0.2) - -Schedule helpers ----------------- - -For the most common scheduling cases, import the helper decorators directly -from :mod:`eclypse.workflow`: - -.. code-block:: python - - from eclypse.workflow import after, every, once_at - - @every(steps=5, event_type="simulation") - def heartbeat(triggering_event): - return {"value": triggering_event.n_triggers} - - @after(step=10) - def warmup_complete(): - return {"value": True} - - @once_at(step=60) - def final_checkpoint(): - return {"value": True} - -``@every`` creates a -:class:`~eclypse.workflow.trigger.cascade.PeriodicCascadeTrigger` on the default -simulation driving event. -``@after`` and ``@once_at`` create -:class:`~eclypse.workflow.trigger.cascade.ScheduledCascadeTrigger` instances and -default to one firing. - -Trigger lifecycle ------------------ - -The simulator prepares every registered trigger bucket before the run starts. -The state machine is: - -#. ``prepare()``: allocate state such as scheduled timestamps or random-number - generators. -#. ``trigger(...)``: evaluate whether the event should fire. -#. event execution. -#. ``reset()``: update post-execution state before the next evaluation. - -If you implement a custom trigger that depends on prepared state, raise a clear -error from ``trigger()`` when ``prepare()`` has not been called. This mirrors the -built-in scheduled and random triggers. - -Having multiple triggers ------------------------- - -When an event is associated with **multiple triggers**, the ``activates_on`` parameter determines how they combine to activate the event: - -- ``any`` (default): the event will fire if **at least one** of the triggers fires. -- ``all``: the event will fire **only if all** triggers fire at the same time. - -.. code-block:: python - :caption: **Example:** Using multiple triggers with different conditions - - from eclypse.workflow import every - from eclypse.workflow.trigger import CascadeTrigger - - @every( - steps=5, - event_type="application", - triggers=[ - CascadeTrigger("check_resources"), - ], - trigger_condition="any" # event fires on either - ) - def log_app_health(application, placement, infrastructure, **event_data): - ... - -For more particular workflows, subclass -:class:`~eclypse.workflow.event.event.EclypseEvent` and pass custom triggers to -``super().__init__``: - -.. code-block:: python - - from eclypse.workflow.event import EclypseEvent - from eclypse.workflow.trigger import CascadeTrigger, PeriodicCascadeTrigger - - class Monitor(EclypseEvent): - def __init__(self): - super().__init__( - name="monitor", - triggers=[ - PeriodicCascadeTrigger("enact", 5), - CascadeTrigger("step"), - ], - trigger_condition="all", # fires only if both trigger - ) - - def __call__(self, triggering_event): - return {"source": triggering_event.name} diff --git a/docs/source/overview/concepts/assets.rst b/docs/source/overview/concepts/assets.rst deleted file mode 100644 index 02591f8b..00000000 --- a/docs/source/overview/concepts/assets.rst +++ /dev/null @@ -1,203 +0,0 @@ -Assets -====== - -In ECLYPSE, an :class:`~eclypse.graph.assets.asset.Asset` represents either: - -- a *capability* of a network node or link (e.g. CPU, bandwidth, availability), or -- a *requirement* of an application service or communication (e.g. latency constraint, required RAM) - -Assets are central to the simulation's logic, as they define how infrastructure and applications interact and match over time. - -There are two ways to choose which asset to use: - -.. grid:: 2 - - .. grid-item:: - - .. card:: Extend the Asset class - :link: extend-assets - :link-type: ref - - Subclass the abstract :class:`~eclypse.graph.assets.asset.Asset` base class or one of the built-in specialisations. - - .. grid-item:: - - .. card:: Default assets - :link: default-assets - :link-type: ref - - Leverage ready-made implementations (e.g., CPU, RAM, latency, bandwidth, ...). - -.. _extend-assets: - -Extend the Asset class ----------------------- - -The base class :class:`~eclypse.graph.assets.asset.Asset` defines the interface and behaviour of all asset types. It provides: - -- **initialisation** via value, function, or sampling space. -- a **total ordering** for comparison. -- abstract methods for logic: :py:meth:`~eclypse.graph.assets.asset.Asset.aggregate`, :py:meth:`~eclypse.graph.assets.asset.Asset.satisfies`, :py:meth:`~eclypse.graph.assets.asset.Asset.is_consistent`. - -.. important:: - - When implementing the logic of a custom asset, always define it from the perspective of a **resource**, not a **requirement**. - - This means you are modelling the available capability of a node or link. ECLYPSE automatically handles the dual interpretation—by calling :py:meth:`~eclypse.graph.assets.asset.Asset.flip`, when assets are used as service requirements during placement. - - Designing assets as requirements will lead to incorrect compatibility or aggregation behaviour. - -You can extend it to implement your own logic: - -.. code-block:: python - - from eclypse.graph.assets import Asset - - class ThresholdAsset(Asset): - def aggregate(self, *assets): - return max(assets) - - def satisfies(self, asset, constraint): - return asset <= constraint - - def is_consistent(self, asset): - return self.lower_bound <= asset <= self.upper_bound - -The method :py:meth:`~eclypse.graph.assets.asset.Asset.flip` can be overridden to define how the asset changes perspective from *capability* to *requirement*, and vice versa. - - -Predefined types -~~~~~~~~~~~~~~~~ - -ECLYPSE provides several built-in asset classes, each modelling a specific kind of algebra: - -- :class:`~eclypse.graph.assets.additive.Additive`: values are aggregated via summation (e.g., cpu, ram). -- :class:`~eclypse.graph.assets.multiplicative.Multiplicative`: values are aggregated via product (e.g., availability). -- :class:`~eclypse.graph.assets.concave.Concave`: models assets where the **largest value dominates** the aggregation (e.g. latency). -- :class:`~eclypse.graph.assets.convex.Convex`: models assets where the **smallest value dominates**. For instance the ingress bandwidth on a node is the minimum of all the featured bandwidths of the links connected to it. -- :class:`~eclypse.graph.assets.symbolic.Symbolic`: for categorical compatibility (e.g. region, label). - -.. dropdown:: Example: Using an additive asset - - .. code-block:: python - - from eclypse.graph.assets import Additive - - cpu = Additive( - lower_bound=0.0, - upper_bound=16.0, - init_fn_or_value=2.0, - functional=False, - ) - -.. tip:: - - The ``functional`` flag indicates whether the asset must be considered in placement decisions. - By default it is set to ``True``. - - -Initialisation -~~~~~~~~~~~~~~ - -When defining an asset, you must specify **how its initial value is generated** at the start of the simulation. - -This can be done in three ways: - -- by providing a **fixed value** (e.g., ``2.0``) -- by passing a **callable** with no arguments (e.g., ``lambda: random.choice(...)``) -- by using an :class:`~eclypse.graph.assets.space.AssetSpace` (e.g., - :class:`~eclypse.graph.assets.space.Uniform`, - :class:`~eclypse.graph.assets.space.Choice`, etc.) - -.. dropdown:: Example: Using an :class:`~eclypse.graph.assets.space.AssetSpace` - - .. code-block:: python - - from eclypse.graph.assets import Additive - from eclypse.graph.assets.space import Uniform - - cpu = Additive( - lower_bound=0.0, - upper_bound=16.0, - init_fn_or_value=Uniform(2.0, 8.0), - ) - -Initialisers are used when the graph's initialisation policy (``resource_init`` or ``requirement_init``) is ``"asset_init"``, the default. They are evaluated when a node or edge is added, using the graph's seeded random generator, so sampling is reproducible across runs. - -.. tip:: - - Values given explicitly to ``add_node``/``add_edge`` always take precedence. Any other asset takes its initialiser's value (``"asset_init"``, which requires every asset to have one), its lower bound (``"min"``) or its upper bound (``"max"``). - - -Asset Spaces -~~~~~~~~~~~~ - -An :class:`~eclypse.graph.assets.space.AssetSpace` defines the domain from which an asset's initial value is sampled. These can be subclassed for custom behaviour, or you can use one of the predefined asset spaces included in ECLYPSE: - -- :class:`~eclypse.graph.assets.space.Choice`: pick a value from a list of options. -- :class:`~eclypse.graph.assets.space.Uniform`: pick a float from a continuous uniform distribution. -- :class:`~eclypse.graph.assets.space.IntUniform`: pick an integer from a uniform range, with optional step. -- :class:`~eclypse.graph.assets.space.Sample`: pick a sample (list of values) from a population. - -.. dropdown:: Example: Using a :class:`~eclypse.graph.assets.space.Choice` - - .. code-block:: python - - from eclypse.graph.assets.space import Choice - - storage_class = Choice(["fast", "standard", "archival"]) - - asset = Symbolic( - lower_bound="fast", - upper_bound="archival", - init_fn_or_value=storage_class, - ) - -These classes all implement the ``__call__`` interface and expect a -``random.Random`` generator, provided automatically by the simulation engine. - -.. note:: - - You can define your own asset spaces by subclassing :class:`~eclypse.graph.assets.space.AssetSpace` and overriding the ``__call__`` method. - -.. _default-assets: - -Default Assets --------------- - -ECLYPSE provides out-of-the-box functions to obtain default asset sets for both nodes and links. These functions simplify the initial setup of simulations by supplying a standard collection of assets. - -The available default asset sets are: - -- **Node Assets** (provided by the function :func:`~eclypse.graph.assets.defaults.get_default_node_assets`): - - - :func:`~eclypse.graph.assets.defaults.cpu` - - :func:`~eclypse.graph.assets.defaults.gpu` - - :func:`~eclypse.graph.assets.defaults.ram` - - :func:`~eclypse.graph.assets.defaults.storage` - - :func:`~eclypse.graph.assets.defaults.availability` - - :func:`~eclypse.graph.assets.defaults.processing_time` - -- **Edge Assets** (provided by the function :func:`~eclypse.graph.assets.defaults.get_default_edge_assets`): - - - :func:`~eclypse.graph.assets.defaults.latency` - - :func:`~eclypse.graph.assets.defaults.bandwidth` - -.. dropdown:: Example: Retrieving default Assets - - .. code-block:: python - - from eclypse.graph.assets.defaults import ( - get_default_node_assets, - get_default_edge_assets - ) - - # Retrieve default assets for a node (e.g. CPU, RAM, GPU, etc.) - node_assets = get_default_node_assets() - - # Retrieve default assets for an edge (e.g. latency, bandwidth) - edge_assets = get_default_edge_assets() - - # Access individual assets by name - print(node_assets["cpu"]) - print(edge_assets["latency"]) diff --git a/docs/source/overview/concepts/builders.rst b/docs/source/overview/concepts/builders.rst deleted file mode 100644 index 88e3e2d9..00000000 --- a/docs/source/overview/concepts/builders.rst +++ /dev/null @@ -1,103 +0,0 @@ -Builders -======== - -Builders create ready-to-use infrastructures, applications, and workflow graphs -without hiding the underlying model. They return regular -:class:`~eclypse.graph.infrastructure.Infrastructure` and -:class:`~eclypse.graph.application.Application` objects, so you can still add -nodes, edges, assets, update policies, and flows afterwards. - -Infrastructure builders ------------------------ - -Infrastructure builders live in :mod:`eclypse.builders.infrastructure`. They -cover generic graph generators, cloud-edge architecture patterns, and reference -topologies. - -.. list-table:: - :header-rows: 1 - - * - Category - - Builders - * - Generic generators - - :func:`~eclypse.builders.infrastructure.get_star`, - :func:`~eclypse.builders.infrastructure.get_random`, - :func:`~eclypse.builders.infrastructure.get_hierarchical`, - :func:`~eclypse.builders.infrastructure.get_fat_tree`, - :func:`~eclypse.builders.infrastructure.get_b_cube`, - :func:`~eclypse.builders.infrastructure.get_small_world`, - :func:`~eclypse.builders.infrastructure.get_scale_free` - * - Architecture patterns - - :func:`~eclypse.builders.infrastructure.get_continuum_tiered`, - :func:`~eclypse.builders.infrastructure.get_mec_5g`, - :func:`~eclypse.builders.infrastructure.get_multi_region_wan`, - :func:`~eclypse.builders.infrastructure.get_industrial_tsn`, - :func:`~eclypse.builders.infrastructure.get_factory_cells`, - :func:`~eclypse.builders.infrastructure.get_vehicular_edge` - * - References - - :func:`~eclypse.builders.infrastructure.get_orion_cev`, - :func:`~eclypse.builders.infrastructure.get_topohub`, - :func:`~eclypse.builders.infrastructure.get_topology_zoo`, - :func:`~eclypse.builders.infrastructure.get_sndlib`, - :func:`~eclypse.builders.infrastructure.get_backbone`, - :func:`~eclypse.builders.infrastructure.get_caida`, - :func:`~eclypse.builders.infrastructure.get_gabriel` - -Example: - -.. code-block:: python - - from eclypse.builders.infrastructure import get_hierarchical - - infrastructure = get_hierarchical( - n=30, - include_default_assets=True, - seed=42, - ) - -Application builders --------------------- - -Application builders live in :mod:`eclypse.builders.application`. They provide -reference microservice applications and domain-specific pipelines. - -Sock Shop is the main reference application used in examples: - -.. code-block:: python - - from eclypse.builders.application import get_sock_shop - - application = get_sock_shop( - include_default_assets=True, - seed=42, - ) - -For emulation, choose the communication interface when the builder supports -runtime services: - -.. code-block:: python - - application = get_sock_shop( - communication_interface="mpi", - include_default_assets=True, - ) - -Workflow builders ------------------ - -For simulation-only task DAGs, ECLYPSE also provides -:func:`~eclypse.builders.workflow.get_workflow` in -:mod:`eclypse.builders.workflow`. These builders use WfCommons to generate -workflow-shaped applications and normalise file-size-derived ``storage`` and -dependency ``bandwidth`` values from bytes to MiB before assigning them to the -default ECLYPSE assets. - -When to use builders --------------------- - -Use builders when you need a stable scenario quickly: a benchmark, a smoke -test, or a baseline for policy and placement experiments. - -Use manual graph construction when the topology itself is the object of study, -or when you need exact control over node identities, edge attributes, and asset -definitions. diff --git a/docs/source/overview/concepts/events.rst b/docs/source/overview/concepts/events.rst deleted file mode 100644 index ef01f890..00000000 --- a/docs/source/overview/concepts/events.rst +++ /dev/null @@ -1,275 +0,0 @@ -Events -====== - -In ECLYPSE, the simulation workflow is fully driven by **events**. -Events define units of logic that are executed when one or more **triggers** activate. -They can be used to update the simulation state, compute metrics, or execute callbacks. - -An event can be periodic, conditionally activated, or triggered by another event. - -ECLYPSE distinguishes between an event's **role** and its **type**: - -- the **role** defines *how the event participates in the workflow*, -- the **type** defines *which objects are passed to the event logic*. - -Roles: events, callbacks, and metrics -------------------------------------- - -Every :class:`~eclypse.workflow.event.event.EclypseEvent` has an -:class:`~eclypse.workflow.event.role.EventRole`. - -.. list-table:: - :header-rows: 1 - :widths: 20 80 - - * - Role - - Meaning - * - :attr:`~eclypse.workflow.event.role.EventRole.EVENT` - - The default role for regular workflow logic. These events are triggered directly - by the simulation or by other triggers, and their payload can be consumed by - downstream callbacks and metrics. - * - :attr:`~eclypse.workflow.event.role.EventRole.CALLBACK` - - A post-event hook. It runs immediately after the event that activated it and has - access to that triggering event through ``triggering_event`` and ``**event_data``. - Callbacks are primarily useful for chaining logic or reacting to another event. - * - :attr:`~eclypse.workflow.event.role.EventRole.METRIC` - - A reportable post-event hook. Metrics share the same execution model as - callbacks, but they are intended to produce rows that reporters can persist and - that :class:`~eclypse.report.report.Report` can load afterwards. - -In practice: - -- use a regular event when you want to drive the workflow, -- use a callback when you want post-event logic that is mainly internal to the - simulation, -- use a metric when you want post-event logic whose output should be reported. - -Defining an Event ------------------ - -An event can be defined by: - -- decorating a function or a class with a ``__call__`` method -- subclassing :class:`~eclypse.workflow.event.event.EclypseEvent` and overriding the ``__call__`` method - -.. seealso:: - - Events are activated by **Triggers**, which define *when* and *under what - conditions* an event should fire, thus at least one trigger must be defined - for an event to be activated. - - You can use built-in triggers (e.g., cascade or periodic) or define your own. - - See the :doc:`../advanced/triggers` page for more on how to configure and combine them. - -Event Parameters -~~~~~~~~~~~~~~~~ - -Here are the most relevant parameters to control event behaviour: - -- ``name`` *(str)*: The event name. -- ``event_type``: The context where the event executes, such as ``"node"`` or - ``"service"``. It can also be ``None``. -- ``triggers``: A list of :class:`~eclypse.workflow.trigger.trigger.Trigger` - objects, modelling the conditions that can activate the event. -- ``activates_on``: A more compact way to specify triggers, using a list of strings and tuples -- ``trigger_condition``: Whether all triggers must activate or just one (*"all"* or *"any"*). -- ``role``: The workflow role of the event, chosen from - :class:`~eclypse.workflow.event.role.EventRole`. -- ``remote``: If ``True``, the event is executed on remote infrastructure nodes or services. -- ``report``: Types of reports to generate for this event, such as ``"csv"`` or ``"json"``. - In practice, this is mainly relevant for metrics. -- ``verbose``: If ``True``, log detailed event triggering and firing info. - -The event **type** determines the arguments passed to its logic function. -The role does not change the signature; it changes *when* the event runs and *how* -its output is interpreted. - -Specifically: - -.. list-table:: - :header-rows: 1 - :widths: 30 70 - - * - Event Type - - Parameters - * - simulation (or None) - - - - ``triggering_event`` (:class:`~eclypse.workflow.event.event.EclypseEvent`) - * - application - - - - ``application`` (:class:`~eclypse.graph.application.Application`) - - ``placement`` (:class:`~eclypse.placement.placement.Placement`) - - ``infrastructure`` (:class:`~eclypse.graph.infrastructure.Infrastructure`) - - ``**event_data`` (*Dict[str, Any]*) - * - service - - - - ``service_id`` (*str*) - - ``requirements`` (*Dict[str, Any]*) - - ``placement`` (:class:`~eclypse.placement.placement.Placement`) - - ``infrastructure`` (:class:`~eclypse.graph.infrastructure.Infrastructure`) - - ``**event_data`` (*Dict[str, Any]*) - * - service (with ``remote=True``) - - - - ``service`` (:class:`~eclypse.remote.service.service.Service`) - * - interaction - - - - ``source_id`` (*str*) - - ``target_id`` (*str*) - - ``requirements`` (*Dict[str, Any]*) - - ``placement`` (:class:`~eclypse.placement.placement.Placement`) - - ``infrastructure`` (:class:`~eclypse.graph.infrastructure.Infrastructure`) - - ``**event_data`` (*Dict[str, Any]*) - * - infrastructure - - - - ``infrastructure`` (:class:`~eclypse.graph.infrastructure.Infrastructure`) - - ``placement_view`` (:class:`~eclypse.placement.view.PlacementView`) - - ``**event_data`` (*Dict[str, Any]*) - * - node - - - - ``node_id`` (*str*) - - ``resources`` (*Dict[str, Any]*) - - ``placements`` (*Dict[str,* :class:`~eclypse.placement.placement.Placement` *]*) - - ``infrastructure`` (:class:`~eclypse.graph.infrastructure.Infrastructure`) - - ``placement_view`` (:class:`~eclypse.placement.view.PlacementView`) - - ``**event_data`` (*Dict[str, Any]*) - * - link - - - - ``source_id`` (*str*) - - ``target_id`` (*str*) - - ``resources`` (*Dict[str, Any]*) - - ``placements`` (*Dict[str,* :class:`~eclypse.placement.placement.Placement` *]*) - - ``infrastructure`` (:class:`~eclypse.graph.infrastructure.Infrastructure`) - - ``placement_view`` (:class:`~eclypse.placement.view.PlacementView`) - - ``**event_data`` (*Dict[str, Any]*) - -.. note:: - - ``**event_data`` contains the payload produced by the event that triggered the - current callback or metric. It is therefore most relevant for post-event roles. - -When an event is defined for a specific component type, it is automatically executed **once for each matching component** in the model. -For instance, an ``application`` event is called once per application in the simulation; a ``node`` event is called once per infrastructure node, ... - -As a result, the event logic should be written as if it handles a **single instance** of the component, not a collection. -This behavior applies to all events and is especially relevant when defining :doc:`metrics <../advanced/reporting>`. - -Regular events, callbacks, and metrics can all use the same event types. For example: - -- an ``application`` event can mutate application-level state, -- an ``application`` callback can react to the payload of another event, -- an ``application`` metric can return application-level report rows. - -.. _event-decorator: - -Scheduled event decorators -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The public decorator API exposes the common scheduling shapes directly: - -- :py:func:`@every(steps=...) ` for periodic events, -- :py:func:`@after(step=...) ` for delayed events, -- :py:func:`@once_at(step=...) ` for one-shot events. - -These decorators allow you to register both functions and callable classes as -**simulation events**. You can apply them to: - -- a **function**, which becomes the logic of the event, -- a **class** with a ``__call__`` method, to maintain internal state. - -.. code-block:: python - :caption: Example: Decorating a *function* - - from eclypse.workflow.event import every - - @every(steps=5, name="step_logger", event_type="simulation") - def log_step(): - print("Simulation step") - -.. code-block:: python - :caption: Example: Decorating a *class* - - from eclypse.workflow.event import once_at - - @once_at(step=10, name="step_counter", event_type="simulation") - class StepCounter: - def __init__(self): - self.counter = 0 - - def __call__(self): - self.counter += 1 - print(f"Step: {self.counter}") - -Callbacks ---------- - -Callbacks use the same scheduled decorators as regular events, but with a -different role: - -.. code-block:: python - :caption: Example: Defining a callback - - from eclypse.workflow.event import EventRole, after - - @after( - step=0, - name="after_step", - event_type="simulation", - activates_on=["step"], - role=EventRole.CALLBACK, - ) - def after_step(triggering_event): - print(f"{triggering_event.name} produced {triggering_event.data}") - -Callbacks are best suited for: - -- chaining workflow logic after another event, -- deriving transient information from the triggering event, -- reacting to another event without necessarily reporting the result. - -If the scheduling decorators do not fit a particular workflow, define a custom -event by subclassing :class:`~eclypse.workflow.event.event.EclypseEvent` and -overriding ``__call__``. This gives full control over construction, state, and -trigger configuration: - -.. code-block:: python - :caption: Example: Custom event class - - from eclypse.workflow.event import EclypseEvent - from eclypse.workflow.trigger import CascadeTrigger - - class StepAudit(EclypseEvent): - def __init__(self): - super().__init__( - name="step_audit", - event_type="simulation", - triggers=[CascadeTrigger("step")], - ) - - def __call__(self, triggering_event): - return {"source": triggering_event.name} - -.. _event-metrics: - -Metrics -------- - -Metrics are a specialized type of event used to collect simulation data at -different levels of abstraction (e.g., per iteration, per application, per -node). Under the hood they are post-event events with the -:class:`~eclypse.workflow.event.role.EventRole.METRIC` role, but the -recommended public API is the set of convenience decorators in -:mod:`eclypse.report.metrics`. - -Compared with callbacks, metrics differ mainly in their intent: - -- callbacks are primarily workflow hooks, -- metrics are reporting hooks and are meant to produce persistable output. - -For the practical metric API, built-in report types, custom reporters, and -report loading, see :doc:`../advanced/reporting`. - -.. seealso:: - - - :doc:`../advanced/reporting` - - :doc:`../advanced/triggers` diff --git a/docs/source/overview/concepts/import-export.rst b/docs/source/overview/concepts/import-export.rst deleted file mode 100644 index 62363664..00000000 --- a/docs/source/overview/concepts/import-export.rst +++ /dev/null @@ -1,324 +0,0 @@ -Import and Export -================= - -ECLYPSE provides an import/export layer for moving -:class:`~eclypse.graph.infrastructure.Infrastructure` and -:class:`~eclypse.graph.application.Application` objects between simulations, -external tools, and standard infrastructure descriptions. - -The IO package is intentionally separated from reporting. Reporters persist data -produced *during* a simulation. Importers and exporters persist the graph objects -that are needed *to build* a simulation. - -Basic usage ------------ - -The public API exposes specialised functions for applications and -infrastructures: - -.. tab-set:: - - .. tab-item:: Application - :sync: app - - .. code-block:: python - - from eclypse.io import dump_application, load_application - - dump_application(application, "application.json") - loaded = load_application("application.json") - - .. tab-item:: Infrastructure - :sync: infra - - .. code-block:: python - - from eclypse.io import dump_infrastructure, load_infrastructure - - dump_infrastructure(infrastructure, "infrastructure.graphml") - loaded = load_infrastructure("infrastructure.graphml") - -In most cases, ECLYPSE infers the format from the file extension. You can also -select a format explicitly with the ``using`` argument: - -.. code-block:: python - - dump_application(application, "application.yaml", using="docker-compose") - application = load_application("application.yaml", using="docker-compose") - - dump_infrastructure(infrastructure, "infrastructure.yaml", using="tosca") - infrastructure = load_infrastructure("infrastructure.yaml", using="tosca") - -Supported formats ------------------ - -The built-in :mod:`eclypse.io.defaults` registry provides default importers and -exporters for common graph and cloud-edge formats. - -.. list-table:: - :header-rows: 1 - - * - Format - - Application - - Infrastructure - - Main use - * - :mod:`eclypse-json ` - - :octicon:`check;1em;sd-text-success` - - :octicon:`check;1em;sd-text-success` - - Lossless ECLYPSE round-trip through - :class:`~eclypse.io.defaults.json.JSONImporter` and - :class:`~eclypse.io.defaults.json.JSONExporter`. - * - :mod:`node-link-json ` - - :octicon:`check;1em;sd-text-success` - - :octicon:`check;1em;sd-text-success` - - Portable NetworkX-style graph data. - * - :mod:`gml ` - - :octicon:`check;1em;sd-text-success` - - :octicon:`check;1em;sd-text-success` - - Graph exchange with simple attributes. - * - :mod:`graphml ` - - :octicon:`check;1em;sd-text-success` - - :octicon:`check;1em;sd-text-success` - - Graph exchange with XML-based tooling. - * - :mod:`docker-compose ` - - :octicon:`check;1em;sd-text-success` - - :octicon:`x;1em;sd-text-danger` - - Import or export service-level applications. - * - :mod:`tosca ` - - :octicon:`check;1em;sd-text-success` - - :octicon:`check;1em;sd-text-success` - - Import or export cloud/service topology templates. - -:mod:`eclypse-json ` is the canonical ECLYPSE format. -It stores the graph kind, identifier, graph attributes, node and edge assets, -nodes, edges, and kind-specific metadata such as application flows or -infrastructure path aggregators. - -Graph formats such as GML, GraphML, and node-link JSON focus on topology and -serialisable graph attributes. They are useful for interoperability, but they do -not carry the complete ECLYPSE model in the same way as -:mod:`eclypse-json `. - -Docker Compose --------------- - -Docker Compose files are imported as -:class:`~eclypse.graph.application.Application` objects. - -.. code-block:: yaml - :caption: docker-compose.yaml - - name: video-pipeline - - services: - camera: - image: camera-gateway:latest - - inference: - image: inference-service:latest - depends_on: - - camera - -When loaded, each service becomes an application node. The service ``image`` is -stored as a node attribute, and Docker Compose ``depends_on`` becomes a -directed interaction: - -.. code-block:: python - - from eclypse.io import load_application - - application = load_application("docker-compose.yaml", using="docker-compose") - - application.nodes["camera"]["image"] - # "camera-gateway:latest" - - list(application.edges) - # [("inference", "camera")] - -When exporting to Docker Compose, each application node must define either an -``image``, a ``container_image``, or a ``build`` attribute. This mirrors the -operational nature of Docker Compose: ECLYPSE does not silently invent container -images by default. - -.. code-block:: python - - application.add_node("frontend", image="nginx:latest", strict=False) - dump_application(application, "docker-compose.yaml", using="docker-compose") - -If you explicitly want to use the node identifier as a fallback image, pass a -:class:`~eclypse.io.context.DockerComposeContext`: - -.. code-block:: python - - from eclypse.io import DockerComposeContext - - dump_application( - application, - "docker-compose.yaml", - using="docker-compose", - application_context=DockerComposeContext(allow_image_fallback_to_node=True), - ) - -ECLYPSE writes optional ``x-eclypse`` extension fields to preserve metadata such -as graph attributes, flows, and edge attributes. These fields are standard -Compose extension fields and are ignored by Docker Compose implementations that -do not understand them. - -TOSCA ------ - -TOSCA files are exported using standard TOSCA Simple Profile YAML types. -ECLYPSE-specific metadata is stored only under optional ``x-eclypse`` extension -fields. - -Applications are represented as software components with dependency -requirements: - -.. code-block:: yaml - :caption: application.tosca.yaml - - tosca_definitions_version: tosca_simple_yaml_1_3 - metadata: - template_name: app - topology_template: - node_templates: - frontend: - type: tosca.nodes.SoftwareComponent - requirements: - - dependency: - node: worker - relationship: tosca.relationships.DependsOn - worker: - type: tosca.nodes.SoftwareComponent - -Infrastructures are represented with TOSCA compute, network, and port node -templates: - -.. code-block:: yaml - :caption: infrastructure.tosca.yaml - - tosca_definitions_version: tosca_simple_yaml_1_3 - metadata: - template_name: infra - topology_template: - node_templates: - node_a: - type: tosca.nodes.Compute - capabilities: - host: - properties: - num_cpus: 4 - mem_size: 8 GB - private_net: - type: tosca.nodes.network.Network - port_a: - type: tosca.nodes.network.Port - requirements: - - binding: - node: node_a - relationship: tosca.relationships.HostedOn - - link: - node: private_net - relationship: tosca.relationships.network.LinksTo - -By default, :class:`~eclypse.io.defaults.tosca.TOSCAImporter` validates fields -required by the service template: ``tosca_definitions_version`` must be present, -and each node template must define a ``type``. - -Contexts --------- - -Contexts customise import and export without changing the graph classes. Common -options live in :class:`~eclypse.io.context.IOContext`; application and -infrastructure-specific options live in specialised contexts. - -.. list-table:: - :header-rows: 1 - - * - Context - - Purpose - * - :class:`~eclypse.io.context.ApplicationContext` - - Application import/export defaults, including services and requirement initialisation. - * - :class:`~eclypse.io.context.InfrastructureContext` - - Infrastructure import/export defaults, including resource initialisation and path aggregators. - * - :class:`~eclypse.io.context.DockerComposeContext` - - Docker Compose validation and image/build fallback behaviour. - * - :class:`~eclypse.io.context.TOSCAApplicationContext` - - TOSCA validation options for applications. - * - :class:`~eclypse.io.context.TOSCAInfrastructureContext` - - TOSCA validation options for infrastructures. - -For example, a TOSCA file without the mandatory version can be accepted only by -making that choice explicit: - -.. code-block:: python - - from eclypse.io import TOSCAApplicationContext, load_application - - application = load_application( - "legacy.yaml", - using="tosca", - application_context=TOSCAApplicationContext( - require_definitions_version=False, - ), - ) - -Custom importers and exporters ------------------------------- - -Importers and exporters are regular classes based on abstract base classes: - -- :class:`~eclypse.io.base.GraphImporter` -- :class:`~eclypse.io.base.GraphExporter` - -An exporter converts a graph to an intermediate representation and writes it to -a target. An importer reads a source into an intermediate representation and -builds a graph from it. - -.. code-block:: python - - from eclypse.io import GraphExporter - - class MyApplicationExporter(GraphExporter): - def to_data(self, graph, *, context=None): - return {"nodes": list(graph.nodes)} - - def write_data(self, data, target, *, context=None): - ... - -You can pass custom classes directly, without registering them globally: - -.. code-block:: python - - dump_application(application, "application.myfmt", using=MyApplicationExporter) - -If you want reusable names, create or extend an -:class:`~eclypse.io.registry.IORegistry`. Registries are immutable: methods such -as :py:meth:`~eclypse.io.registry.IORegistry.with_exporter` return a new -registry instead of changing the existing one. The default registry stores -handler classes rather than handler instances, so importers and exporters are -created only when they are used. - -.. code-block:: python - - from eclypse.io import IORegistry, dump_application - - registry = IORegistry().with_exporter( - "application", - "my-format", - MyApplicationExporter, - ) - - dump_application( - application, - "application.myfmt", - using="my-format", - registry=registry, - ) - -.. tip:: - - Use :mod:`eclypse-json ` when you need a complete - ECLYPSE round-trip. Use Docker Compose, TOSCA, GraphML, GML, or node-link - JSON when interoperability with external tools matters more than preserving - every simulator-specific detail. diff --git a/docs/source/overview/concepts/index.rst b/docs/source/overview/concepts/index.rst deleted file mode 100644 index 56398c42..00000000 --- a/docs/source/overview/concepts/index.rst +++ /dev/null @@ -1,93 +0,0 @@ -======== -Concepts -======== - -.. toctree:: - :maxdepth: 2 - :hidden: - - topology - assets - builders - import-export - placement-strategy - update-policy - events - simulation-configuration - -This section collects the building blocks of ECLYPSE. - -Use these pages once you already know the basic workflow and want to customise -how a simulation behaves, what it models, and how it is configured. - -.. grid:: 2 - - .. grid-item:: - - .. card:: Topology - :link: topology - :link-type: doc - - Build graph-based infrastructures and applications, either manually or - through builders. - - .. grid-item:: - - .. card:: Assets - :link: assets - :link-type: doc - - Understand how capabilities and requirements are represented, validated, - and sampled. - - .. grid-item:: - - .. card:: Builders - :link: builders - :link-type: doc - - Start from built-in infrastructures, applications, and workflow-shaped - task graphs. - - .. grid-item:: - - .. card:: Import and export - :link: import-export - :link-type: doc - - Persist, exchange, and reload infrastructures and applications using - ECLYPSE-native and standard graph formats. - - .. grid-item:: - - .. card:: Placement strategies - :link: placement-strategy - :link-type: doc - - Control how services are mapped onto the available infrastructure. - - .. grid-item:: - - .. card:: Update policies - :link: update-policy - :link-type: doc - - Model how infrastructure and application resources evolve during the run. - - .. grid-item:: - - .. card:: Events, callbacks, and metrics - :link: events - :link-type: doc - - Learn the event model, event roles, event types, and trigger-based - execution. - - .. grid-item:: - - .. card:: Simulation configuration - :link: simulation-configuration - :link-type: doc - - Configure timing, reporting, logging, remote execution, and the event - set used by a simulation run. diff --git a/docs/source/overview/concepts/placement-strategy.rst b/docs/source/overview/concepts/placement-strategy.rst deleted file mode 100644 index 7e7b5377..00000000 --- a/docs/source/overview/concepts/placement-strategy.rst +++ /dev/null @@ -1,136 +0,0 @@ -Placement Strategy -================== - -In ECLYPSE, a :class:`~eclypse.placement.strategies.PlacementStrategy` -defines how application services are assigned to infrastructure nodes. -Placement can be performed globally across the infrastructure, or separately -for each application. - -Placement strategies are responsible for implementing the logic that maps application *requirements* to infrastructure *capabilities*. These strategies are executed during the simulation setup or runtime to compute service-to-node allocations. - -There are two ways to choose which strategy to use: - -.. grid:: 2 - - .. grid-item:: - - .. card:: Extend the PlacementStrategy class - :link: extend-strategy - :link-type: ref - - Subclass the abstract - :class:`~eclypse.placement.strategies.PlacementStrategy` base - class or one of the built-in specialisations. - - .. grid-item:: - - .. card:: Default strategies - :link: default-strategies - :link-type: ref - - Leverage ready-made strategies for common placement scenarios. - -.. _extend-strategy: - -Extend the PlacementStrategy class ----------------------------------- - -To define a custom placement strategy, subclass the base class -:class:`~eclypse.placement.strategies.PlacementStrategy` and override -the -:py:meth:`~eclypse.placement.strategies.PlacementStrategy.place` -method. - -This method must return a mapping from **service IDs** to **node IDs**, -representing where each service in the application should be deployed. - -.. code-block:: python - - from eclypse.placement.strategies import PlacementStrategy - - class RandomStrategy(PlacementStrategy): - def place(self, infrastructure, application, placements, placement_view): - import random - candidate_nodes = list(placement_view.residual.nodes) - return { - service_id: random.choice(candidate_nodes) - for service_id in application.nodes - } - - # Optionally override feasibility check - def is_feasible(self, infrastructure, application): - return len(list(infrastructure.available.nodes)) > 0 - -.. important:: - - The ``infrastructure`` parameter passed to the - :py:meth:`~eclypse.placement.strategies.PlacementStrategy.place` - method is **already filtered** to include only the available portion of the - infrastructure. - - This corresponds to calling the - :py:meth:`~eclypse.graph.infrastructure.Infrastructure.available` property - on the :class:`~eclypse.graph.infrastructure.Infrastructure` instance. - Therefore, you do not need to manually filter out unavailable resources. - -.. _default-strategies: - -Default strategies ------------------- - -ECLYPSE provides a collection of predefined placement strategies that can be -used out of the box. These strategies implement common policies and heuristics -for mapping application services onto available nodes. - -The available default strategies are: - -- :class:`~eclypse.placement.strategies.RoundRobinStrategy` — assigns services to nodes in a round-robin fashion. -- :class:`~eclypse.placement.strategies.RandomStrategy` — randomly selects a node for each service. -- :class:`~eclypse.placement.strategies.StaticStrategy` — expects service-to-node mappings to be provided statically. -- :class:`~eclypse.placement.strategies.FirstFitStrategy` — places services on the first node that satisfies their requirements. -- :class:`~eclypse.placement.strategies.BestFitStrategy` — selects the node with the tightest fit (smallest surplus) for each service. - -Attaching a Placement Strategy ------------------------------- - -To use a placement strategy during simulation, provide it either as the -simulation default or for a specific application registration. - -There are two ways to attach a strategy: - -- **Via - :attr:`~eclypse.simulation.config.SimulationConfig.default_strategy`:** - Use this when most applications should share the same placement policy: - - .. code-block:: python - - from eclypse.placement.strategies import RandomStrategy - from eclypse.simulation import Simulation, SimulationConfig - - config = SimulationConfig(default_strategy=RandomStrategy()) - sim = Simulation(infrastructure, config) - sim.register(application) - -- **Via the application registration:** - You can associate a strategy when registering the application with the - simulation using the - :py:meth:`~eclypse.simulation.simulation.Simulation.register` method: - - .. code-block:: python - - from eclypse.simulation import Simulation - from eclypse.placement.strategies import FirstFitStrategy - - sim = Simulation(...) - sim.register(application, FirstFitStrategy()) - -.. important:: - - If no strategy is provided through - :attr:`~eclypse.simulation.config.SimulationConfig.default_strategy` or - :py:meth:`~eclypse.simulation.simulation.Simulation.register`, the - simulation raises an error. - - If both are provided, the strategy passed to - :py:meth:`~eclypse.simulation.simulation.Simulation.register` takes - precedence for that application. diff --git a/docs/source/overview/concepts/simulation-configuration.rst b/docs/source/overview/concepts/simulation-configuration.rst deleted file mode 100644 index 3c2843d9..00000000 --- a/docs/source/overview/concepts/simulation-configuration.rst +++ /dev/null @@ -1,269 +0,0 @@ -Simulation configuration -======================== - -The simulation represents the environment where you can deploy and emulate your -application on the given infrastructure. - -After you :doc:`define your application(s) and infrastructure `, a -simulation run is controlled through -:class:`~eclypse.simulation.config.SimulationConfig`. - -At a high level, the configuration answers four questions: - -- how the run advances and stops, -- which events and metrics are included, -- how logs and reports are written, -- whether execution is local or remote. - -Typical workflow ----------------- - -The usual flow is: - -#. create a :class:`~eclypse.simulation.config.SimulationConfig`, -#. create a :class:`~eclypse.simulation.simulation.Simulation`, -#. register one or more applications with a placement strategy, -#. run the simulation and wait for completion. - -.. code-block:: python - - from eclypse.placement.strategies import RandomStrategy - from eclypse.simulation import Simulation, SimulationConfig - - config = SimulationConfig( - max_steps=50, - include_default_metrics=True, - report_format="parquet", - report_backend="polars", - path="my-simulation", - seed=42, - ) - - simulation = Simulation(example_infra, config) - simulation.register(example_app, RandomStrategy(seed=42)) - - simulation.run() - - application_frame = simulation.report.application() - -Configuration reference ------------------------ - -The table below summarises every public parameter of -:class:`~eclypse.simulation.config.SimulationConfig`. - -.. list-table:: - :header-rows: 1 - :widths: 22 18 60 - - * - Parameter - - Default - - Meaning - * - ``step_every_ms`` - - ``"auto"`` - - Controls how the driving ``enact`` event is scheduled. Use - ``"auto"`` for continuous local progression, ``"manual"`` or ``None`` - for fully manual stepping, or a numeric value for a fixed periodic step. - In remote mode, ``"auto"`` resolves to manual stepping unless a numeric - cadence is provided. - * - ``timeout`` - - ``None`` - - Stops the simulation after the given number of seconds. - * - ``max_steps`` - - ``None`` - - Stops the simulation after the given number of driving-event triggers. - * - ``reporters`` - - ``None`` - - Additional reporter classes to merge with the built-in reporter set. - This is mainly useful when writing custom reporting sinks. - * - ``events`` - - ``None`` - - Explicit event list for the simulation. Default lifecycle events are - still added automatically when missing. - * - ``include_default_metrics`` - - ``False`` - - Adds the built-in metrics shipped by ECLYPSE to the event set. - * - ``default_strategy`` - - ``None`` - - Placement strategy used for applications registered without an explicit - strategy. Per-application strategies passed to - :meth:`~eclypse.simulation.simulation.Simulation.register` take - precedence. - * - ``seed`` - - random - - Seed used for deterministic sampling and reproducible scenarios. - * - ``path`` - - default simulation path - - Output directory used for logs, reports, and ``config.json``. - * - ``log_to_file`` - - ``False`` - - If enabled, runtime logs are also written to the simulation output path. - * - ``log_level`` - - ``"ECLYPSE"`` - - Minimum log level used by the runtime logger. - * - ``report_chunk_size`` - - ``100`` - - Number of report entries buffered before each reporter flush. - * - ``report_format`` - - ``"csv"`` - - On-disk report format. Built-in options are ``"csv"``, ``"json"``, - and ``"parquet"``. - * - ``report_backend`` - - ``"pandas"`` - - Dataframe backend used when querying reports through - :class:`~eclypse.report.report.Report`. - * - ``remote`` - - ``False`` - - Enables emulation mode. It can be a boolean or a - :class:`~eclypse.remote.bootstrap.bootstrap.RemoteBootstrap` instance for - custom remote cluster setup. - -Timing and stopping -~~~~~~~~~~~~~~~~~~~ - -Use ``step_every_ms``, ``timeout``, and ``max_steps`` together to control how a -run advances and when it stops. - -.. code-block:: python - - config = SimulationConfig( - step_every_ms=500, - timeout=60, - max_steps=120, - ) - -This configuration asks the simulation to: - -- progress every half second, -- stop after one minute, -- or stop earlier if 120 steps are reached first. - -If you want manual progression instead, opt in explicitly: - -.. code-block:: python - - config = SimulationConfig(step_every_ms=None) - -and then advance the run explicitly with -:py:meth:`~eclypse.simulation.simulation.Simulation.step`. - -Events and metrics -~~~~~~~~~~~~~~~~~~ - -By default, you can supply your own event list through ``events`` and decide -whether to include the built-in metrics: - -.. code-block:: python - - from eclypse.report.metrics.defaults import get_default_metrics - - config = SimulationConfig( - events=[my_event, my_callback, my_metric], - include_default_metrics=False, - ) - -If you prefer the default metrics as a starting point: - -.. code-block:: python - - config = SimulationConfig(include_default_metrics=True) - -For more on event roles and event types, see :doc:`events`. - -Logging and output paths -~~~~~~~~~~~~~~~~~~~~~~~~ - -The output path and logging parameters are useful when you want reproducible, -inspectable runs: - -.. code-block:: python - - config = SimulationConfig( - path="runs/baseline-a", - log_level="INFO", - log_to_file=True, - seed=42, - ) - -.. tip:: - - ECLYPSE uses `Loguru `_ under the hood for - logging. It preserves the standard levels (``DEBUG``, ``INFO``, - ``WARNING``, etc.) and adds ``ECLYPSE`` between ``DEBUG`` and ``INFO`` for - framework-specific runtime messages. - -Reporting -~~~~~~~~~ - -Two parameters shape the reporting workflow: - -- ``report_format`` controls what is written to disk, -- ``report_backend`` controls what kind of frame object you get back later. - -.. code-block:: python - - config = SimulationConfig( - report_format="parquet", - report_backend="polars_lazy", - report_chunk_size=500, - include_default_metrics=True, - ) - -This is a good fit for larger runs where you want efficient on-disk storage and -lazy analytical queries afterwards. - -See also: - -- :doc:`../getting-started/inspect-results` -- :doc:`../advanced/reporting` - -Remote execution -~~~~~~~~~~~~~~~~ - -Set ``remote=True`` to enable the default emulation bootstrap: - -.. code-block:: python - - config = SimulationConfig(remote=True) - -If you need more control, pass a -:class:`~eclypse.remote.bootstrap.bootstrap.RemoteBootstrap` instance: - -.. code-block:: python - - from eclypse.remote.bootstrap import RemoteBootstrap - - bootstrap = RemoteBootstrap() - config = SimulationConfig(remote=bootstrap) - -This is the entry point for running remote services over Ray. For the runtime -details, see :doc:`../advanced/emulation/emulation`. - -Using the configuration in a simulation ---------------------------------------- - -Once the configuration is ready, pass it to -:class:`~eclypse.simulation.simulation.Simulation`, then register your -applications together with a placement strategy: - -.. code-block:: python - - from eclypse.placement.strategies import RandomStrategy - from eclypse.simulation import Simulation - - simulation = Simulation(example_infra, config) - simulation.register(example_app, RandomStrategy(seed=42)) - - simulation.run() - -When the run finishes, the :attr:`~eclypse.simulation.simulation.Simulation.report` -property exposes a :class:`~eclypse.report.report.Report` object: - -.. code-block:: python - - application_frame = simulation.report.application() - generic_frame = simulation.report.frame("service") - -.. note:: - - Looking for complete runnable scenarios? See :doc:`../examples/index`. diff --git a/docs/source/overview/concepts/topology.rst b/docs/source/overview/concepts/topology.rst deleted file mode 100644 index 84073733..00000000 --- a/docs/source/overview/concepts/topology.rst +++ /dev/null @@ -1,203 +0,0 @@ -Infrastructure and Application(s) -================================= - -In ECLYPSE, both the **infrastructure** and **applications** are modelled as graphs enriched with resource-related attributes (:doc:`assets `) and dynamic behaviour (update policies). These are represented using two core classes: - -- :class:`~eclypse.graph.infrastructure.Infrastructure` -- models a multi-layered infrastructure, made of nodes and links with their capabilities -- :class:`~eclypse.graph.application.Application` -- models a multi-service application, made of services and interactions with their requirements - -The two classes share many structural similarities, but differ in purpose and in the parameters used at initialisation. - -.. tab-set:: - - .. tab-item:: Infrastructure - :sync: infra - - .. code-block:: python - - from eclypse import policies - from eclypse.graph.infrastructure import Infrastructure - - infrastructure = Infrastructure( - infrastructure_id="infra", - include_default_assets=True, - update_policies=[ - policies.failure.availability_flap(0.01, up_probability=0.2), - policies.distribution.uniform( - node_assets=["cpu", "ram"], - edge_assets=["latency", "bandwidth"], - node_distribution=(0.95, 1.05), - edge_distribution=(0.95, 1.05), - ), - ], - resource_init="min", - seed=42, - ) - - **Key parameters:** - - - ``infrastructure_id``: identifier of the infrastructure - - ``update_policies``: list of :doc:`update policies ` for infrastructure resources - - ``node_assets`` / ``edge_assets``: available capabilities (:doc:`asset ` values) of nodes and links - - ``include_default_assets``: include the built-in CPU, RAM, storage, availability, latency, and bandwidth assets - - ``resource_init``: initialisation of resources not given explicitly (*min*, *max* or *asset_init*, see :doc:`assets `) - - ``seed``: random seed for reproducibility - - ``path_assets_aggregators``: aggregators for *each link asset* evaluation across paths - - .. tab-item:: Application - :sync: app - - .. code-block:: python - - from eclypse import policies - from eclypse.graph.application import Application - - application = Application( - application_id="app", - include_default_assets=True, - update_policies=[ - policies.after( - 50, - policies.degrade.reduce( - factor=0.6, - epochs=200, - node_assets=["cpu", "ram"], - edge_assets=["bandwidth"], - ), - ), - policies.after( - 50, - policies.degrade.increase( - factor=1.6667, - epochs=200, - edge_assets=["latency"], - ), - ), - ], - requirement_init="min", - seed=42, - flows=[["frontend", "worker"]], - ) - - **Key parameters:** - - - ``application_id``: identifier of the application. Defaults to ``"Application"`` - - ``update_policies``: list of :doc:`update policies ` for application requirements - - ``node_assets`` / ``edge_assets``: resource requirements (:doc:`asset ` values) of services and links - - ``include_default_assets``: include the built-in requirement assets - - ``requirement_init``: initialisation of requirements not given explicitly (*min*, *max* or *asset_init*, see :doc:`assets `) - - ``seed``: random seed for reproducibility - - ``flows``: list of service chains or communication flows - -These classes inherit from a common base (:class:`~eclypse.graph.asset_graph.AssetGraph`) and can be extended or composed via utility functions and default builders. - -.. _define-topology: - -Defining the topologies ------------------------ - -Once you have defined an Infrastructure or an Application object, you can incrementally add **nodes** (or services) and **edges** (or interactions) to describe its structure. - -Both classes expose two methods: - -- :py:meth:`~eclypse.graph.asset_graph.AssetGraph.add_node` — to add a node or service -- :py:meth:`~eclypse.graph.asset_graph.AssetGraph.add_edge` — to add a link or interaction - -These methods allow you to associate assets and automatically validate their values, according to the asset definitions you provided during initialisation. - -.. tab-set:: - - .. tab-item:: Infrastructure - :sync: infra - - .. code-block:: python - - from eclypse.graph.infrastructure import Infrastructure - from eclypse.graph.assets.defaults import cpu, ram, latency, bandwidth - - infra = Infrastructure( - infrastructure_id="my-infra", - node_assets={"cpu": cpu(), "ram": ram()}, - edge_assets={"latency": latency(), "bandwidth": bandwidth()}, - path_assets_aggregators={"latency": sum, "bandwidth": min}, - resource_init="min", # these assets have no initialiser - ) - - # Add two compute node - infra.add_node("node-1", cpu=4.0, ram=8.0) - infra.add_node("node-2", cpu=8.0, ram=16.0, strict=False) - - # Add a link with latency and bandwidth - infra.add_edge( - "node-1", "node-2", - latency=10.0, - bandwidth=100.0, - symmetric=True # optional bidirectional link - ) - - - ``strict=True`` (default): raises an error if asset values are inconsistent - - ``symmetric=True``: adds the edge in both directions - - .. tab-item:: Application - :sync: app - - .. code-block:: python - - from eclypse.graph.application import Application - from eclypse.graph.assets.defaults import cpu, ram, latency, bandwidth - - app = Application( - application_id="my-app", - node_assets={"cpu": cpu(), "ram": ram()}, - edge_assets={"latency": latency(), "bandwidth": bandwidth()}, - requirement_init="min", # these assets have no initialiser - ) - - # Add a service with specific resource requirements - app.add_node("service-A", cpu=1.0, ram=0.5) - app.add_node("service-B", cpu=2.0, ram=1.0, strict=False) - - # Add a directional communication between services - app.add_edge( - "service-A", "service-B", - latency=5.0, - bandwidth=10.0, - symmetric=False - ) - - - ``strict=True`` (default): raises an error if requirements are outside defined bounds - - ``symmetric=False`` (default): adds the edge in one direction only - - If you're building an application to run in **emulation mode** rather than *simulation*, - each service must be implemented with actual logic and remote execution support. - - See the :doc:`Emulation guide <../advanced/emulation/index>` for details. - -.. note:: - - All assets passed to :py:meth:`~eclypse.graph.asset_graph.AssetGraph.add_node` or :py:meth:`~eclypse.graph.asset_graph.AssetGraph.add_edge` are checked against the declared asset definitions. - If validation fails and ``strict`` is ``True``, an exception is raised. Otherwise, a warning is logged. - -Default builders ----------------- - -ECLYPSE provides several built-in builder functions that allow you to quickly -instantiate commonly used topologies and reference applications. -They return mutable :class:`~eclypse.graph.application.Application` or -:class:`~eclypse.graph.infrastructure.Infrastructure` objects with sensible -asset defaults and, for applications, representative flows. - -.. code-block:: python - - from eclypse.builders.application import get_sock_shop - from eclypse.builders.infrastructure import get_fat_tree - - infra = get_fat_tree(k=4, include_default_assets=True) - app = get_sock_shop(include_default_assets=True) - -.. tip:: - - Builders are useful for prototyping or benchmarking standard scenarios. All - returned graphs are mutable and can be extended using the - :ref:`standard interface `. See :doc:`builders` for the - available builder families. diff --git a/docs/source/overview/concepts/update-policy.rst b/docs/source/overview/concepts/update-policy.rst deleted file mode 100644 index 2bed13b9..00000000 --- a/docs/source/overview/concepts/update-policy.rst +++ /dev/null @@ -1,305 +0,0 @@ -Update policies -=============== - -In ECLYPSE, an update policy is a function that defines how the state of the -infrastructure or application evolves over time. It enables dynamic -simulations by modifying node or edge assets at each simulation step. - -Unlike assets, update policies are not tied to separate node- or edge-specific -interfaces. They are simple graph-oriented callables that receive the graph -being updated. - -Function Signature ------------------- - -.. code-block:: python - - from eclypse.graph import AssetGraph - - def my_policy(graph: AssetGraph): - ... - -The graph exposes the standard NetworkX views through ``graph.nodes`` and -``graph.edges``. Each node or edge has an associated data dictionary containing -its current asset values. - -Built-in Policies ------------------ - -ECLYPSE also provides a catalogue of off-the-shelf policies in -:mod:`eclypse.policies`. The module groups reusable policies into a few common -families: - -- **failure**: node and edge failures, availability flapping, correlated - failures, partitions, resource exhaustion, and latency spikes -- **noise**: bounded and momentum random walks, additive or multiplicative - jitter, Gaussian jitter, correlated noise, seasonal noise, dropout, and - impulse shocks -- **distribution**: uniform, normal, lognormal, triangular, beta, gamma, - truncated-normal, categorical, constant, Bernoulli, Poisson, exponential, - Weibull, Pareto, empirical, and weighted discrete multiplicative - perturbations -- **degrade**: progressive increase or reduction, direct assignment, scaling, - and ramping of selected assets -- **replay**: replay of node, edge, graph, and event values from records, - dataframes, CSV files, or parquet files, with optional cyclic replay -- **schedule**: wrappers such as :func:`~eclypse.policies.schedule.every`, - :func:`~eclypse.policies.schedule.after`, - :func:`~eclypse.policies.schedule.between`, - :func:`~eclypse.policies.schedule.at`, - :func:`~eclypse.policies.schedule.until`, - :func:`~eclypse.policies.schedule.repeat`, - :func:`~eclypse.policies.schedule.with_probability`, - :func:`~eclypse.policies.schedule.jittered_every`, and - :func:`~eclypse.policies.schedule.cooldown` -- **compose**: reusable policy composition with - :func:`~eclypse.policies.compose.chain`, - :func:`~eclypse.policies.compose.one_of`, - :func:`~eclypse.policies.compose.weighted_choice`, and - :func:`~eclypse.policies.compose.conditional` -- **workload**: arrival processes, traffic matrices, and diurnal load -- **topology**: graph mutation policies for adding, removing, rewiring, and - churn -- **constraints**: invariant-enforcing policies such as clamping, - normalisation, and rounding - -For most simulations, the easiest workflow is to compose a few built-in -policies and only fall back to a custom callable when the behaviour is -scenario-specific. - -Using Built-in Policies ------------------------ - -Built-in policies are regular graph callables, so you use them exactly like any -custom update policy. - -.. code-block:: python - :caption: **Example:** Infrastructure policies composed from ``eclypse.policies`` - - from eclypse import policies - from eclypse.graph import Infrastructure - - infrastructure = Infrastructure( - "edge-cloud", - update_policies=[ - policies.failure.availability_flap( - down_probability=0.02, - up_probability=0.5, - node_filter=lambda _, data: data["availability"] > 0, - ), - policies.distribution.uniform( - node_assets=["cpu", "ram", "storage"], - edge_assets=["latency", "bandwidth"], - node_asset_distributions={ - "cpu": (0.95, 1.05), - "ram": (0.9, 1.1), - "storage": (0.98, 1.02), - }, - edge_asset_distributions={ - "latency": (0.95, 1.05), - "bandwidth": (0.98, 1.02), - }, - ), - ], - ) - -Selectors and Assets --------------------- - -Most built-in policies separate **what** to change from **where** to change it. - -- ``node_assets`` / ``edge_assets`` select which graph assets are updated -- ``node_ids`` / ``edge_ids`` target specific nodes or links -- ``node_filter`` / ``edge_filter`` let you target assets dynamically - -.. code-block:: python - :caption: **Example:** Apply noise only to edge nodes and WAN links - - from eclypse import policies - - policy = policies.distribution.uniform( - node_assets=["cpu", "ram"], - edge_assets=["latency"], - node_filter=lambda node_id, data: data.get("tier") == "edge", - edge_filter=lambda source, target, data: data.get("kind") == "wan", - ) - -Scheduling Policies -------------------- - -Scheduling wrappers let you activate a policy only during part of the run. - -.. code-block:: python - :caption: **Example:** Start value adjustments after step 100 - - from eclypse import policies - - update_policies = [ - policies.after( - 100, - policies.degrade.reduce( - factor=0.5, - epochs=200, - node_assets=["cpu", "ram", "storage"], - edge_assets=["bandwidth"], - ), - ), - policies.after( - 100, - policies.degrade.increase( - factor=2.0, - epochs=200, - edge_assets=["latency"], - ), - ), - policies.with_probability( - 0.2, - policies.failure.resource_exhaustion( - factor=0.75, - node_assets=["cpu", "ram"], - ), - ), - policies.jittered_every( - 10, - policies.noise.additive_jitter( - edge_ranges={"latency": (-1.0, 2.0)}, - lower=0.0, - ), - jitter=2, - ), - ] - -Replay Policies ---------------- - -Replay helpers are useful when you want the simulation to follow observed -or synthetic measurements over time. - -.. code-block:: python - :caption: **Example:** Replay node load from a parquet trace - - from eclypse import policies - - replay_users = policies.replay.from_parquet( - "examples/user_distribution/dataset.parquet", - target="nodes", - node_id_column="node_id", - time_column="time", - value_columns=["user_count"], - start_step=0, - cyclic=True, - ) - -.. code-block:: python - :caption: **Example:** Replay node and edge values together - - from eclypse import policies - - replay_trace = policies.replay.replay_graph( - node_records=[ - {"time": 0, "node_id": "edge-1", "users": 10}, - {"time": 1, "node_id": "edge-1", "users": 18}, - ], - edge_records=[ - {"time": 0, "source": "edge-1", "target": "cloud", "latency": 12}, - {"time": 1, "source": "edge-1", "target": "cloud", "latency": 20}, - ], - node_value_columns=["users"], - edge_value_columns=["latency"], - cyclic=True, - ) - -Composition, Workloads, Topology, and Constraints -------------------------------------------------- - -The higher-level families help keep scenario code small when multiple effects -must be combined. - -.. code-block:: python - :caption: **Example:** Compose workload, topology, and constraints - - from eclypse import policies - - update_policy = policies.compose.chain( - policies.workload.arrival_process( - rate=20, - node_assets="users", - node_filter=lambda node_id, data: data.get("tier") == "edge", - ), - policies.workload.traffic_matrix( - {("edge-1", "cloud"): 120.0}, - asset="traffic", - ), - policies.constraints.clamp_values( - lower=1.0, - edge_assets="bandwidth", - ), - policies.topology.churn( - add_probability=0.1, - candidate_nodes={ - "burst-edge": {"cpu": 16, "ram": 32, "availability": 1.0}, - }, - ), - ) - -Current vs Initial Basis ------------------------- - -Numeric policies that can compound over repeated calls accept ``basis``: - -- ``basis="current"`` uses the value at each call. This preserves cumulative - drift and is the default. -- ``basis="initial"`` uses the first value seen by that policy for each selected - asset. ECLYPSE stores only those touched asset values, not a copy of the graph. - -Use ``basis="initial"`` for oscillations or shocks around a nominal value: - -.. code-block:: python - - stable_latency_noise = policies.noise.seasonal_noise( - amplitude=2.0, - period=24, - edge_assets="latency", - basis="initial", - ) - -Writing Custom Policies ------------------------ - -You can define your own update policies by modifying the relevant asset values -within the graph. - -.. code-block:: python - :caption: **Example:** A node policy that caps CPU to a fixed maximum - - from eclypse.graph import AssetGraph - - def cap_cpu(graph: AssetGraph): - for _, data in graph.nodes.items(): - if "cpu" in data: - data["cpu"] = min(data["cpu"], 2.0) - -.. code-block:: python - :caption: **Example:** An edge policy that increases latency: - - from eclypse.graph import AssetGraph - - def add_latency(graph: AssetGraph): - for _, _, data in graph.edges.data(): - if "latency" in data: - data["latency"] += 1.0 - -Custom vs built-in ------------------- - -Built-in policies are ideal for common patterns such as failures, distributions, -explicit value adjustments, and replay from traces. When an example or scenario couples -multiple effects in a very specific way, keeping a custom callable is still the -right choice. Several examples in the repository intentionally do that to -preserve their original behaviour. - -.. important:: - - Update policies must always ensure that modified asset values remain consistent. - Use the asset's :py:meth:`~eclypse.graph.assets.asset.Asset.is_consistent()` method if needed. - Otherwise, placement and simulation logic may occur on inconsistent data. diff --git a/docs/source/overview/examples/grid_analysis.rst b/docs/source/overview/examples/grid_analysis.rst deleted file mode 100644 index cedf46c0..00000000 --- a/docs/source/overview/examples/grid_analysis.rst +++ /dev/null @@ -1,57 +0,0 @@ -Grid analysis -============= - -The grid analysis example runs a Ray Tune sweep over infrastructure topology, -load, failure policy, random seed, and placement strategy choices. - -Use it when you want to understand: - -- how to wrap an ECLYPSE simulation in a parameter-search function, -- how to compare placement strategies across many generated infrastructures, -- how to write custom infrastructure assets and policies for experiments. - -The full code lives in the -`examples/grid_analysis `_ -directory. - -Run it from the repository root with: - -.. code-block:: bash - - uv run --with-requirements examples/grid_analysis/requirements.txt python -m examples.grid_analysis.main - -Simulation sweep ----------------- - -.. dropdown:: Main sweep code - - .. literalinclude:: ../../../../examples/grid_analysis/main.py - :language: python - -Infrastructure --------------- - -.. dropdown:: Infrastructure code - - .. literalinclude:: ../../../../examples/grid_analysis/infrastructure.py - :language: python - -Placement strategy ------------------- - -.. dropdown:: Strategy code - - .. literalinclude:: ../../../../examples/grid_analysis/strategy.py - :language: python - -What to inspect ---------------- - -Use this example as a template for repeated experiments. The main result is not -a single simulation trace, but a grid of runs that lets you compare placement -strategies and infrastructure choices under the same sweep logic. - -Related concepts: - -- :doc:`../concepts/placement-strategy` -- :doc:`../concepts/update-policy` diff --git a/docs/source/overview/examples/image_prediction.rst b/docs/source/overview/examples/image_prediction.rst deleted file mode 100644 index 7bf5fd7c..00000000 --- a/docs/source/overview/examples/image_prediction.rst +++ /dev/null @@ -1,58 +0,0 @@ -Image prediction -================ - -The image prediction example shows a remote application with trainer, -predictor, and end-user services. It combines service implementations, custom -metrics, and a degradation policy in emulation mode. - -Use it when you want to understand: - -- how to attach concrete service implementations to an application, -- how to configure a remote simulation, -- how to collect custom metrics from remote service behaviour. - -The full code lives in the -`examples/image_prediction `_ -directory. - -Run it from the repository root with: - -.. code-block:: bash - - uv run --with-requirements examples/image_prediction/requirements.txt python -m examples.image_prediction.main - -Application ------------ - -.. dropdown:: Application code - - .. literalinclude:: ../../../../examples/image_prediction/application.py - :language: python - -Simulation ----------- - -.. dropdown:: Simulation code - - .. literalinclude:: ../../../../examples/image_prediction/main.py - :language: python - -Metrics -------- - -.. dropdown:: Metrics code - - .. literalinclude:: ../../../../examples/image_prediction/metrics.py - :language: python - -What to inspect ---------------- - -This example is useful when the application behaviour matters, not only the -placement. Inspect the custom metrics together with the service implementations -to see how emulated runtime state becomes reportable simulation data. - -Related concepts: - -- :doc:`../advanced/emulation/emulation` -- :doc:`../advanced/reporting` diff --git a/docs/source/overview/examples/index.rst b/docs/source/overview/examples/index.rst deleted file mode 100644 index 1b26ecc0..00000000 --- a/docs/source/overview/examples/index.rst +++ /dev/null @@ -1,93 +0,0 @@ -======== -Examples -======== - -.. toctree:: - :maxdepth: 2 - :hidden: - - echo - grid_analysis - image_prediction - io_round_trip - off_the_shelf - sock_shop - user_distribution - -The examples section complements the getting-started guides with runnable -scenarios you can inspect and adapt. - -The code for the documented examples is available in the -:icon:`fa-brands fa-github` -`examples `_ -subdirectory of the repository. - -.. grid:: 1 - - .. grid-item:: - - .. card:: :octicon:`megaphone;1em;info` **Echo** - :link-type: doc - :link: echo - - A small service-based application that compares unicast and broadcast - communication patterns. - - - .. grid-item:: - - .. card:: :octicon:`tools;1em;info` **Off-the-shelf** - :link-type: doc - :link: off_the_shelf - - A local simulation composed only from built-in builders, policies, - and placement logic. - - - .. grid-item:: - - .. card:: :octicon:`package-dependents;1em;info` **SockShop** - :link-type: doc - :link: sock_shop - - A microservices application that simulates an online shop and is - provided in both MPI and REST variants. - - .. grid-item:: - - .. card:: :octicon:`graph;1em;info` **Grid analysis** - :link-type: doc - :link: grid_analysis - - A Ray Tune sweep over infrastructure topologies, update policies, and - placement strategies. - - - .. grid-item:: - - .. card:: :octicon:`iterations;1em;info` **IO round trip** - :link-type: doc - :link: io_round_trip - - An import/export matrix that loads graph files through the default - IO importers and writes them back through every compatible exporter. - - - .. grid-item:: - - .. card:: :octicon:`image;1em;info` **Image prediction** - :link-type: doc - :link: image_prediction - - A remote image-prediction pipeline with custom services, metrics, and - degradation policies. - - - .. grid-item:: - - .. card:: :octicon:`people;1em;info` **User distribution** - :link-type: doc - :link: user_distribution - - A custom metric and update-policy example driven by changing user - distributions. diff --git a/docs/source/overview/examples/io_round_trip.rst b/docs/source/overview/examples/io_round_trip.rst deleted file mode 100644 index 657d059c..00000000 --- a/docs/source/overview/examples/io_round_trip.rst +++ /dev/null @@ -1,118 +0,0 @@ -IO round trip -============= - -This example focuses on the :mod:`eclypse.io` package. It is not a simulation -scenario. Instead, it shows how ECLYPSE graph objects can move between external -files and the in-memory :class:`~eclypse.graph.application.Application` and -:class:`~eclypse.graph.infrastructure.Infrastructure` classes. - -Use it when you want to inspect the default importers and exporters side by -side, compare what each format preserves, or create a starting point for your -own graph exchange workflow. - -The full code lives in the -`examples/io_round_trip `_ -directory. - -Run it from the repository root with: - -.. code-block:: bash - - uv run python -m examples.io_round_trip.main - -What it shows -------------- - -The example ships small input files under ``examples/io_round_trip/input`` and -loads each one with the matching default importer: - -- application inputs: ECLYPSE JSON, Docker Compose, GML, GraphML, node-link JSON, - and TOSCA -- infrastructure inputs: ECLYPSE JSON, GML, GraphML, node-link JSON, and TOSCA - -Each loaded graph is then exported to every compatible default output format. -Docker Compose is only available for applications, so the grid contains: - -- ``6 x 6`` application conversions -- ``5 x 5`` infrastructure conversions -- ``61`` generated output files in total - -The generated files are written under ``examples/io_round_trip/output`` using a -path that makes each conversion explicit: - -.. code-block:: text - - output//from-/to-. - -For example: - -.. code-block:: text - - output/application/from-gml/to-tosca.yaml - output/application/from-eclypse_json/to-docker_compose.yaml - output/infrastructure/from-graphml/to-node_link_json.json - output/infrastructure/from-tosca/to-eclypse_json.json - -The example also writes ``output/manifest.json`` with one row per generated -conversion. - -Input cases ------------ - -The input cases are declared once and reused by the grid runner. The case name -is the input format in snake case, while the parent folder carries the graph -kind. - -.. dropdown:: Input case definitions - - .. literalinclude:: ../../../../examples/io_round_trip/cases.py - :language: python - -Conversion grid ---------------- - -The grid does the same thing for every case: - -1. load the source file through :func:`~eclypse.io.load_application` or - :func:`~eclypse.io.load_infrastructure` -2. ask :data:`~eclypse.io.default_registry` for compatible output formats -3. dump the loaded graph through :func:`~eclypse.io.dump_application` or - :func:`~eclypse.io.dump_infrastructure` - -The example uses only default importers and exporters. It does not register -custom handlers. - -.. dropdown:: Grid code - - .. literalinclude:: ../../../../examples/io_round_trip/grid.py - :language: python - -Entrypoint ----------- - -The entrypoint runs the grid, writes the manifest, and prints a short summary of -the available formats and generated files. - -.. dropdown:: Entrypoint code - - .. literalinclude:: ../../../../examples/io_round_trip/main.py - :language: python - -What to inspect ---------------- - -Start from ``output/manifest.json`` to see the full conversion matrix. Then -compare the outputs for the same input format, for example -``output/application/from-tosca`` or ``output/infrastructure/from-graphml``. - -The canonical ECLYPSE JSON output is the most complete round-trip format. Graph -formats such as GML, GraphML, and node-link JSON are useful for graph tooling and -topology exchange. Docker Compose and TOSCA show how ECLYPSE applications and -infrastructures can be projected into cloud-edge oriented formats. - -Related concepts: - -- :doc:`../concepts/import-export` -- :class:`~eclypse.graph.application.Application` -- :class:`~eclypse.graph.infrastructure.Infrastructure` -- :mod:`eclypse.io` diff --git a/docs/source/overview/examples/sock_shop.rst b/docs/source/overview/examples/sock_shop.rst deleted file mode 100644 index d0e37e80..00000000 --- a/docs/source/overview/examples/sock_shop.rst +++ /dev/null @@ -1,93 +0,0 @@ -SockShop -======== - -`SockShop `_ is a -microservices-based e-commerce application that simulates an online sock store. -It is composed of multiple services responsible for catalog browsing, user -management, cart updates, payment, shipping, and order handling. - -ECLYPSE provides two versions of the application that share the same abstract -application model and infrastructure, but differ in the communication -interface used by the services: - -#. **MPI**: this version uses the Message Passing Interface (MPI) for communication between services. MPI is a high-performance communication protocol that is well-suited for distributed computing environments, enabling efficient message passing and synchronization between services. - -#. **REST**: this version uses Representational State Transfer (REST) for communication between services. RESTful APIs promote simplicity and standardization, making it easier to develop, maintain, and integrate services within the microservices architecture. - -Below, we focus on the ``FrontendService`` implementation in both variants, -because it highlights the practical differences between MPI and REST -communication in ECLYPSE. - -The full code lives in the -`examples/sock_shop/mpi.py `_ -and -`examples/sock_shop/rest.py `_ -directories. - -Run either variant from the repository root with: - -.. code-block:: bash - - uv run python -m examples.sock_shop.mpi - uv run python -m examples.sock_shop.rest - -.. warning:: - - Both interfaces are asynchronous. When you call the low-level request APIs - directly, await the returned request object so that route and delivery - failures surface immediately. - -FrontendService (MPI version) ------------------------------ - -.. literalinclude:: ../../../../eclypse/builders/application/sock_shop/mpi_services/frontend.py - :language: python - :linenos: - -The MPI interface revolves around the methods ``send``, ``bcast``, and -``recv``. It is useful when you want to model explicit message passing between -services. - -We can notice two ways of sending a message: - -- At lines 64 -- 72 we use the - :py:func:`~eclypse.remote.communication.mpi.interface.exchange` decorator. - This is convenient for common ``recv``/``send`` patterns. - - A complete example of such a pattern is the following, where the service receives a message and sends a response to the sender: - - .. code-block:: python - - @mpi.exchange(receive=True, send=True) - def my_request(self, sender_id, body): - - response = ... # process the body - - return sender_id, response - -- At lines 36, 44, and 58 we use ``mpi.send`` directly, specifying the - recipient and the message body. -- ``recv`` waits for the next message in the internal queue. - -FrontendService (REST version) ------------------------------- - -.. literalinclude:: ../../../../eclypse/builders/application/sock_shop/rest_services/frontend.py - :language: python - :linenos: - -In this example, the REST interface uses endpoint-oriented methods such as -``get`` and ``post``. This style is a better fit when you want to model -request/response interactions explicitly. - -What to inspect ---------------- - -Use Sock Shop to compare the same abstract application under two communication -interfaces. The MPI variant is useful for explicit message-passing workflows; -the REST variant is useful for endpoint-oriented microservice interactions. - -Related concepts: - -- :doc:`../advanced/emulation/messaging` -- :doc:`../getting-started/remote-emulation` diff --git a/docs/source/overview/examples/user_distribution.rst b/docs/source/overview/examples/user_distribution.rst deleted file mode 100644 index 665cdae8..00000000 --- a/docs/source/overview/examples/user_distribution.rst +++ /dev/null @@ -1,59 +0,0 @@ -User distribution -================= - -The user distribution example customises a generated infrastructure with a -``user_count`` asset and updates latency and placement conditions as the user -distribution evolves. - -Use it when you want to understand: - -- how to add a custom infrastructure asset, -- how to write metrics around domain-specific infrastructure state, -- how update policies can drive a longer-running simulation. - -The full code lives in the -`examples/user_distribution `_ -directory. - -Run it from the repository root with: - -.. code-block:: bash - - uv run --with-requirements examples/user_distribution/requirements.txt python -m examples.user_distribution.main - -Infrastructure --------------- - -.. dropdown:: Infrastructure code - - .. literalinclude:: ../../../../examples/user_distribution/infrastructure.py - :language: python - -Metrics -------- - -.. dropdown:: Metrics code - - .. literalinclude:: ../../../../examples/user_distribution/metric.py - :language: python - -Simulation ----------- - -.. dropdown:: Simulation code - - .. literalinclude:: ../../../../examples/user_distribution/main.py - :language: python - -What to inspect ---------------- - -Use this example when the infrastructure has domain-specific state. The -``user_count`` asset shows how custom node attributes can drive metrics and -update policies without changing the core simulator. - -Related concepts: - -- :doc:`../concepts/assets` -- :doc:`../concepts/update-policy` -- :doc:`../advanced/reporting` diff --git a/docs/source/overview/getting-started/index.rst b/docs/source/overview/getting-started/index.rst deleted file mode 100644 index 0de29b78..00000000 --- a/docs/source/overview/getting-started/index.rst +++ /dev/null @@ -1,56 +0,0 @@ -=============== -Getting started -=============== - -.. toctree:: - :maxdepth: 2 - :hidden: - - minimal-local-run - inspect-results - remote-emulation - -Let's get started with ECLYPSE. - -If you want to get to a first successful run quickly, begin with one of the -guided paths below. Once you are comfortable with the workflow, move to the -:doc:`concept pages <../concepts/index>` to customise assets, placement -strategies, events, infrastructure models, and simulation parameters. - -Happy paths ------------ - -.. grid:: 1 - - .. grid-item:: - - .. card:: 1. Run a minimal local simulation - :link: minimal-local-run - :link-type: doc - - Build a small scenario with the built-in builders, run it locally, - and retrieve the resulting report. - - .. grid-item:: - - .. card:: 2. Inspect and query the report - :link: inspect-results - :link-type: doc - - Learn how to load report frames, choose a backend, and work with the - collected metrics. - - .. grid-item:: - - .. card:: 3. Move to remote emulation - :link: remote-emulation - :link-type: doc - - Run remote services with the MPI or REST communication interfaces and - understand how the setup differs from a local simulation. - -.. tip:: - - If you have not yet installed ECLYPSE, refer to the :doc:`Installation <../install>` page. - If you want the conceptual map after your first run, continue with - :doc:`../concepts/index`. diff --git a/docs/source/overview/getting-started/inspect-results.rst b/docs/source/overview/getting-started/inspect-results.rst deleted file mode 100644 index f5322504..00000000 --- a/docs/source/overview/getting-started/inspect-results.rst +++ /dev/null @@ -1,94 +0,0 @@ -=================== -Inspect the results -=================== - -ECLYPSE stores simulation outputs on disk and exposes them through the -:class:`~eclypse.report.report.Report` interface. - -The report API gives you two main choices: - -- the **report format**, which controls how data is written to disk, -- the **report backend**, which controls the dataframe implementation returned - when you query the report. - -Choose the report format ------------------------- - -Use the ``report_format`` parameter of -:class:`~eclypse.simulation.config.SimulationConfig` to choose how the raw data -is written: - -- ``"csv"``: easy to inspect manually, -- ``"json"``: useful for structured debugging and integration, -- ``"parquet"``: best suited to larger runs and analytical workloads. - -.. code-block:: python - - from eclypse.simulation import SimulationConfig - - config = SimulationConfig( - report_format="parquet", - include_default_metrics=True, - ) - -Choose the report backend -------------------------- - -Use ``report_backend`` to control the in-memory dataframe implementation used -by :class:`~eclypse.report.report.Report`: - -- ``"pandas"`` -- ``"polars"`` -- ``"polars_lazy"`` - -.. code-block:: python - - config = SimulationConfig( - report_backend="polars", - report_format="parquet", - include_default_metrics=True, - ) - -Query report frames -------------------- - -Once a simulation has completed, you can retrieve report frames either through -the convenience methods or through the generic -:py:meth:`~eclypse.report.report.Report.frame` entry point: - -.. code-block:: python - - report = simulation.report - - application_frame = report.application() - service_frame = report.service() - generic_frame = report.frame("interaction") - -You can also restrict the data by report range: - -.. code-block:: python - - recent_steps = report.service(report_range=(10, 20)) - -Standalone report loading -------------------------- - -Reports can also be loaded later from disk: - -.. code-block:: python - - from eclypse.report import Report - - report = Report("path/to/simulation") - frame = report.application() - -If needed, you can explicitly set the format when loading: - -.. code-block:: python - - report = Report("path/to/simulation", report_format="parquet") - -.. seealso:: - - - :doc:`../concepts/simulation-configuration` - - :doc:`../advanced/reporting` diff --git a/docs/source/overview/getting-started/minimal-local-run.rst b/docs/source/overview/getting-started/minimal-local-run.rst deleted file mode 100644 index 908646bb..00000000 --- a/docs/source/overview/getting-started/minimal-local-run.rst +++ /dev/null @@ -1,96 +0,0 @@ -======================== -Run a local simulation -======================== - -This page shows the shortest path to a first successful ECLYPSE run. - -We will: - -#. create an infrastructure with a built-in builder, -#. create an application with a built-in builder, -#. configure a local simulation, -#. run it and inspect the report. - -This path uses only local simulation components. No remote services or -communication interfaces are required. - -Build the scenario ------------------- - -The following example uses: - -- :func:`~eclypse.builders.infrastructure.get_hierarchical` to build a - small infrastructure, -- :func:`~eclypse.builders.application.sock_shop.application.get_sock_shop` to - build a reference application, -- :class:`~eclypse.placement.strategies.RandomStrategy` for placement. - -.. code-block:: python - - from eclypse.builders.application import get_sock_shop - from eclypse.builders.infrastructure import get_hierarchical - from eclypse.placement.strategies import RandomStrategy - from eclypse.simulation import Simulation, SimulationConfig - - seed = 22 - - infrastructure = get_hierarchical( - n=20, - include_default_assets=True, - seed=seed, - ) - - application = get_sock_shop( - include_default_assets=True, - seed=seed, - ) - - config = SimulationConfig( - seed=seed, - max_steps=20, - include_default_metrics=True, - default_strategy=RandomStrategy(seed=seed), - ) - - simulation = Simulation(infrastructure, simulation_config=config) - simulation.register(application) - -Run the simulation ------------------- - -Once the infrastructure, application, and configuration are ready, start the -simulation and wait for it to finish: - -.. code-block:: python - - simulation.run() - -Inspect the report ------------------- - -After the run, the :attr:`~eclypse.simulation.simulation.Simulation.report` -property exposes the collected data through the -:class:`~eclypse.report.report.Report` interface: - -.. code-block:: python - - application_frame = simulation.report.application() - service_frame = simulation.report.service() - - print(application_frame.head()) - print(service_frame.head()) - -The exact object type depends on the selected report backend. By default, -ECLYPSE uses the backend configured in -:class:`~eclypse.simulation.config.SimulationConfig`. - -.. seealso:: - - - :doc:`inspect-results` - - :doc:`../concepts/topology` - - :doc:`../concepts/simulation-configuration` - -.. note:: - - Looking for a larger runnable example? See the :doc:`../examples/echo` and - :doc:`../examples/sock_shop` pages. diff --git a/docs/source/overview/getting-started/remote-emulation.rst b/docs/source/overview/getting-started/remote-emulation.rst deleted file mode 100644 index 284adac6..00000000 --- a/docs/source/overview/getting-started/remote-emulation.rst +++ /dev/null @@ -1,82 +0,0 @@ -====================== -Run a remote emulation -====================== - -Remote emulation is the next step after a local simulation. - -In this mode, application services are instantiated as remote services and can -communicate through one of the supported interfaces: - -- ``"mpi"`` -- ``"rest"`` - -The overall simulation flow remains the same, but the application must be built -with remote-capable services and the simulation configuration must enable -``remote=True``. - -Minimal setup -------------- - -.. code-block:: python - - from eclypse.builders.application import get_sock_shop - from eclypse.builders.infrastructure import get_hierarchical - from eclypse.placement.strategies import RandomStrategy - from eclypse.simulation import Simulation, SimulationConfig - - seed = 22 - - infrastructure = get_hierarchical( - n=30, - include_default_assets=True, - seed=seed, - ) - - application = get_sock_shop( - communication_interface="mpi", - include_default_assets=True, - seed=seed, - ) - - config = SimulationConfig( - remote=True, - seed=seed, - max_steps=100, - step_every_ms=500, - include_default_metrics=True, - default_strategy=RandomStrategy(seed=seed), - ) - - simulation = Simulation(infrastructure, simulation_config=config) - simulation.register(application) - simulation.run() - -Choosing the communication interface ------------------------------------- - -Use ``communication_interface="mpi"`` or ``communication_interface="rest"`` -when building the application. - -The two interfaces remain intentionally different: - -- MPI models explicit message passing with ``send`` and ``recv`` semantics. -- REST models endpoint-oriented request/response interactions. - -Choose the one that best matches the system you want to emulate. - -What changes compared to a local run ------------------------------------- - -Compared to the :doc:`minimal-local-run` path: - -- services are remote service objects instead of plain application nodes, -- the simulation configuration must set ``remote=True``, -- communication failures and deployment issues become part of the emulation - behaviour, -- remote messaging patterns depend on the chosen interface. - -.. seealso:: - - - :doc:`../advanced/emulation/emulation` - - :doc:`../advanced/emulation/messaging` - - :doc:`../examples/sock_shop` diff --git a/docs/source/overview/index.rst b/docs/source/overview/index.rst deleted file mode 100644 index 07f28e91..00000000 --- a/docs/source/overview/index.rst +++ /dev/null @@ -1,63 +0,0 @@ -.. toctree:: - :maxdepth: 3 - :hidden: - - install - getting-started/index - concepts/index - advanced/index - examples/index - - -Overview --------- - -.. grid:: 1 - - .. grid-item:: - - .. card:: :octicon:`desktop-download;1em;info` **Installation** - :link-type: doc - :link: install - - Learn how to install ECLYPSE. - - .. grid-item:: - - .. card:: :octicon:`repo;1em;info` **Getting Started** - :link-type: doc - :link: getting-started/index - - Start your first simulation with ECLYPSE. - - .. grid-item:: - - .. card:: :octicon:`book;1em;info` **Concepts** - :link-type: doc - :link: concepts/index - - Learn the core building blocks behind assets, events, placement, and - simulation configuration. - - .. grid-item:: - - .. card:: :octicon:`terminal;1em;info` **Advanced** - :link-type: doc - :link: advanced/index - - Learn more about advanced features of ECLYPSE. - - .. grid-item:: - - .. card:: :octicon:`code;1em;info` **Examples** - :link-type: doc - :link: examples/index - - Explore example simulations to use ECLYPSE effectively. - - .. grid-item:: - - .. card:: :octicon:`history;1em;info` **Changelog** - :link: https://github.com/eclypse-org/eclypse/blob/main/CHANGELOG.md - - Track released versions and the latest published framework changes. diff --git a/docs/source/overview/install.rst b/docs/source/overview/install.rst deleted file mode 100644 index e4ac825c..00000000 --- a/docs/source/overview/install.rst +++ /dev/null @@ -1,52 +0,0 @@ -=============== -Install ECLYPSE -=============== - -ECLYPSE can be installed from `PyPI `_. -It requires Python ``>=3.11,<3.15``. - -.. note:: - - Do not use the global environment to install ECLYPSE. - It is recommended to create a `virtual environment `_ first. - -Using pip ---------- - -Create and activate a virtual environment, then install the package: - -.. code-block:: shell - - python -m venv .venv - source .venv/bin/activate - pip install eclypse - -Using uv --------- - -If your project uses `uv `_, add ECLYPSE to the -project dependencies: - -.. code-block:: shell - - uv add eclypse - -Installing from source ----------------------- - -For development, clone the repository and install the dependency groups you -need: - -.. code-block:: shell - - git clone https://github.com/eclypse-org/eclypse.git - cd eclypse - uv sync --group dev --group test - -The documentation dependencies live in the ``docs`` group: - -.. code-block:: shell - - uv sync --group docs - -Now you are ready to run :doc:`your first ECLYPSE simulation `! diff --git a/eclypse/builders/application/sock_shop/rest_services/cart.py b/eclypse/builders/application/sock_shop/rest_services/cart.py index 7033a4c5..93fbad2e 100644 --- a/eclypse/builders/application/sock_shop/rest_services/cart.py +++ b/eclypse/builders/application/sock_shop/rest_services/cart.py @@ -22,17 +22,17 @@ def get_cart(self, **_): dict: The response body. Example: - .. code-block:: python - - ( - 200, - { - "items": [ - {"id": "1", "quantity": 2}, - {"id": "2", "quantity": 1}, - ], - }, - ) + ```python + ( + 200, + { + "items": [ + {"id": "1", "quantity": 2}, + {"id": "2", "quantity": 1}, + ], + }, + ) + ``` """ self.logger.info("Received request | " + format_log_kv()) return 200, { diff --git a/eclypse/builders/application/sock_shop/rest_services/catalog.py b/eclypse/builders/application/sock_shop/rest_services/catalog.py index d989ee8a..9c276c4d 100644 --- a/eclypse/builders/application/sock_shop/rest_services/catalog.py +++ b/eclypse/builders/application/sock_shop/rest_services/catalog.py @@ -24,17 +24,17 @@ def get_catalog(self, **_): dict: The response body. Example: - .. code-block:: python - - ( - 200, - { - "products": [ - {"id": "1", "name": "Product 1", "price": 19.99}, - {"id": "2", "name": "Product 2", "price": 29.99}, - ], - }, - ) + ```python + ( + 200, + { + "products": [ + {"id": "1", "name": "Product 1", "price": 19.99}, + {"id": "2", "name": "Product 2", "price": 29.99}, + ], + }, + ) + ``` """ self.logger.info("Received request | " + format_log_kv()) return 200, { diff --git a/eclypse/builders/application/sock_shop/rest_services/order.py b/eclypse/builders/application/sock_shop/rest_services/order.py index 6c9c89e6..4b6f2770 100644 --- a/eclypse/builders/application/sock_shop/rest_services/order.py +++ b/eclypse/builders/application/sock_shop/rest_services/order.py @@ -43,21 +43,21 @@ async def create_order(self, items, **_): dict: The response body. Example: - .. code-block:: python - - ( - 201, - { - "order_id": "54321", - "transaction_id": "12345", - "shipping_details": { - "carrier": "UPS", - "tracking_number": "1234567890", - "estimated_delivery_date": "2024-04-09", - }, - "status": "success", + ```python + ( + 201, + { + "order_id": "54321", + "transaction_id": "12345", + "shipping_details": { + "carrier": "UPS", + "tracking_number": "1234567890", + "estimated_delivery_date": "2024-04-09", }, - ) + "status": "success", + }, + ) + ``` """ self.logger.info("Received request | " + format_log_kv(items=items)) diff --git a/eclypse/builders/application/sock_shop/rest_services/payment.py b/eclypse/builders/application/sock_shop/rest_services/payment.py index 89ad526c..e747c7ad 100644 --- a/eclypse/builders/application/sock_shop/rest_services/payment.py +++ b/eclypse/builders/application/sock_shop/rest_services/payment.py @@ -44,16 +44,16 @@ def execute_payment(self, order_id: int, amount: float, **_): dict: The response body. Example: - .. code-block:: python - - ( - 200, - { - "order_id": 12345, - "transaction_id": 54321, - "status": "success", - }, - ) + ```python + ( + 200, + { + "order_id": 12345, + "transaction_id": 54321, + "status": "success", + }, + ) + ``` """ self.logger.info( "Received request | " + format_log_kv(order_id=order_id, amount=amount) diff --git a/eclypse/builders/application/sock_shop/rest_services/shipping.py b/eclypse/builders/application/sock_shop/rest_services/shipping.py index 486e92ee..4cd9d4ff 100644 --- a/eclypse/builders/application/sock_shop/rest_services/shipping.py +++ b/eclypse/builders/application/sock_shop/rest_services/shipping.py @@ -28,20 +28,20 @@ def get_shipping_detils(self, order_id, **_): dict: The response body. Example: - .. code-block:: python - - ( - 200, - { - "order_id": "12345", - "status": "success", - "shipping_details": { - "carrier": "UPS", - "tracking_number": "1234567890", - "estimated_delivery_date": "2024-04-09", - }, + ```python + ( + 200, + { + "order_id": "12345", + "status": "success", + "shipping_details": { + "carrier": "UPS", + "tracking_number": "1234567890", + "estimated_delivery_date": "2024-04-09", }, - ) + }, + ) + ``` """ self.logger.info("Received request | " + format_log_kv(order_id=order_id)) return 200, { diff --git a/eclypse/builders/application/sock_shop/rest_services/user.py b/eclypse/builders/application/sock_shop/rest_services/user.py index 30287e5e..8a56c3ab 100644 --- a/eclypse/builders/application/sock_shop/rest_services/user.py +++ b/eclypse/builders/application/sock_shop/rest_services/user.py @@ -28,18 +28,18 @@ def get_catalog(self, user_id: int, **_): dict: The response body. Example: - .. code-block:: python - - ( - 200, - { - "user_id": 12345, - "name": "John Doe", - "email": "john@example.com", - "address": "123 Main St", - "phone": "555-1234", - }, - ) + ```python + ( + 200, + { + "user_id": 12345, + "name": "John Doe", + "email": "john@example.com", + "address": "123 Main St", + "phone": "555-1234", + }, + ) + ``` """ self.logger.info("Received request | " + format_log_kv(user_id=user_id)) return 200, { diff --git a/eclypse/builders/infrastructure/references/topohub/backbone.py b/eclypse/builders/infrastructure/references/topohub/backbone.py index 0c2d3d4b..738d7932 100644 --- a/eclypse/builders/infrastructure/references/topohub/backbone.py +++ b/eclypse/builders/infrastructure/references/topohub/backbone.py @@ -6,9 +6,9 @@ for routing, latency, and placement experiments over region-scale networks. Example: - .. code-block:: python - - get_backbone("africa", **kwargs) + ```python + get_backbone("africa", **kwargs) + ``` Source: TopoHub, https://www.topohub.org @@ -47,7 +47,7 @@ def get_backbone( """Create a synthetic backbone infrastructure from TopoHub. The ``topology`` value must be a valid topology name from - `TopoHub `_'s ``backbone`` family catalogue. + [TopoHub](https://www.topohub.org)'s ``backbone`` family catalogue. Args: topology (str): diff --git a/eclypse/builders/infrastructure/references/topohub/caida.py b/eclypse/builders/infrastructure/references/topohub/caida.py index b4a26f3d..7176fe59 100644 --- a/eclypse/builders/infrastructure/references/topohub/caida.py +++ b/eclypse/builders/infrastructure/references/topohub/caida.py @@ -7,9 +7,9 @@ initialisation policy for unspecified assets. Example: - .. code-block:: python - - get_caida("2024-01", **kwargs) + ```python + get_caida("2024-01", **kwargs) + ``` Source: CAIDA Ark, https://www.caida.org/catalog/datasets/ark/ @@ -48,7 +48,7 @@ def get_caida( """Create a CAIDA-backed infrastructure from TopoHub. The ``snapshot`` value must be a valid topology name from - `TopoHub `_'s ``caida`` family catalogue. + [TopoHub](https://www.topohub.org)'s ``caida`` family catalogue. Args: snapshot (str): diff --git a/eclypse/builders/infrastructure/references/topohub/gabriel.py b/eclypse/builders/infrastructure/references/topohub/gabriel.py index 7efb09cd..381f6dfe 100644 --- a/eclypse/builders/infrastructure/references/topohub/gabriel.py +++ b/eclypse/builders/infrastructure/references/topohub/gabriel.py @@ -7,9 +7,9 @@ distance-driven QoS properties. Example: - .. code-block:: python - - get_gabriel(25, sample=2, **kwargs) + ```python + get_gabriel(25, sample=2, **kwargs) + ``` Source: Jurkiewicz, "TopoHub: A repository of reference Gabriel graph and @@ -51,7 +51,7 @@ def get_gabriel( """Create a Gabriel-graph infrastructure from TopoHub. The ``size`` and ``sample`` values must correspond to a valid topology in - `TopoHub `_'s ``gabriel`` family catalogue. + [TopoHub](https://www.topohub.org)'s ``gabriel`` family catalogue. Args: size (int): diff --git a/eclypse/builders/infrastructure/references/topohub/sndlib.py b/eclypse/builders/infrastructure/references/topohub/sndlib.py index a5ded74d..29ef8393 100644 --- a/eclypse/builders/infrastructure/references/topohub/sndlib.py +++ b/eclypse/builders/infrastructure/references/topohub/sndlib.py @@ -7,9 +7,9 @@ TopoHub. Example: - .. code-block:: python - - get_sndlib("polska", **kwargs) + ```python + get_sndlib("polska", **kwargs) + ``` Source: SNDlib, https://sndlib.put.poznan.pl/ @@ -48,7 +48,7 @@ def get_sndlib( """Create a SNDlib-backed infrastructure from TopoHub. The ``topology`` value must be a valid topology name from - `TopoHub `_'s ``sndlib`` family catalogue. + [TopoHub](https://www.topohub.org)'s ``sndlib`` family catalogue. Args: topology (str): diff --git a/eclypse/builders/infrastructure/references/topohub/topology_zoo.py b/eclypse/builders/infrastructure/references/topohub/topology_zoo.py index 78837d1d..30b7ef54 100644 --- a/eclypse/builders/infrastructure/references/topohub/topology_zoo.py +++ b/eclypse/builders/infrastructure/references/topohub/topology_zoo.py @@ -7,9 +7,9 @@ for WAN latency and geographic-placement studies. Example: - .. code-block:: python - - get_topology_zoo("Abilene", **kwargs) + ```python + get_topology_zoo("Abilene", **kwargs) + ``` Source: Internet Topology Zoo, https://topology-zoo.org/ @@ -48,7 +48,7 @@ def get_topology_zoo( """Create a Topology Zoo-backed infrastructure from TopoHub. The ``topology`` value must be a valid topology name from - `TopoHub `_'s ``topozoo`` family catalogue. + [TopoHub](https://www.topohub.org)'s ``topozoo`` family catalogue. Args: topology (str): diff --git a/eclypse/builders/workflow/__init__.py b/eclypse/builders/workflow/__init__.py index e03ce8b5..9e45b1d3 100644 --- a/eclypse/builders/workflow/__init__.py +++ b/eclypse/builders/workflow/__init__.py @@ -1,4 +1,4 @@ -"""Workflow builders using `WfCommons `_ library. +"""Workflow builders using [WfCommons](https://wfcommons.org/) library. The package groups *simulation-only* workflow builders that generate task DAGs and map their metadata onto ECLYPSE applications. These builders do not expose diff --git a/eclypse/builders/workflow/workflow.py b/eclypse/builders/workflow/workflow.py index 466abaf9..1f89de97 100644 --- a/eclypse/builders/workflow/workflow.py +++ b/eclypse/builders/workflow/workflow.py @@ -1,4 +1,4 @@ -"""Simulation-only workflow applications generated with `WfCommons `_. +"""Simulation-only workflow applications generated with [WfCommons](https://wfcommons.org/). The builder generates a task-dependency DAG and converts it into an ECLYPSE application graph for simulation. It does not expose MPI/REST service logic or @@ -44,7 +44,7 @@ def get_workflow( flows: list[list[str]] | str = "default", seed: int | None = None, ) -> Application: - """Create a simulation-only workflow application generated by `WfCommons `_. + """Create a simulation-only workflow application generated by [WfCommons](https://wfcommons.org/). The returned application is graph-only: it contains task nodes, dependency edges, and root-to-leaf flows for simulation, but it does not instantiate @@ -55,7 +55,7 @@ def get_workflow( Args: workflow (WorkflowFamily | str): Workflow family to generate. Supported values are the members of - :class:`~eclypse.builders.workflow.workflow_family.WorkflowFamily`, + [WorkflowFamily][eclypse.builders.workflow.workflow_family.WorkflowFamily], such as ``WorkflowFamily.MONTAGE`` or ``"montage"``. num_tasks (int | None): Target number of tasks for the generated workflow. When omitted, @@ -75,7 +75,7 @@ def get_workflow( base_method (WorkflowBaseMethod | str): Base graph selection strategy used by WfCommons. Supported values are the members of - :class:`~eclypse.builders.workflow.base_method.WorkflowBaseMethod`, + [WorkflowBaseMethod][eclypse.builders.workflow.base_method.WorkflowBaseMethod], such as ``WorkflowBaseMethod.ERROR_TABLE`` or ``"error_table"``. workflow_name (str | None): Optional workflow instance name forwarded to WfCommons. diff --git a/eclypse/graph/application.py b/eclypse/graph/application.py index bbf2511b..6d895394 100644 --- a/eclypse/graph/application.py +++ b/eclypse/graph/application.py @@ -81,7 +81,7 @@ def add_service(self, service: Service, **assets): Args: service (Service): The service to add. - **assets : The assets to add to the service. + **assets: The assets to add to the service. """ if not isinstance(service, Service): raise TypeError(f"Expected Service instance, got {type(service).__name__}") diff --git a/eclypse/graph/infrastructure.py b/eclypse/graph/infrastructure.py index 58d691e2..522c9f74 100644 --- a/eclypse/graph/infrastructure.py +++ b/eclypse/graph/infrastructure.py @@ -306,10 +306,10 @@ def path( def processing_time(self, source: str, target: str) -> float: """Compute the total processing time of all nodes along the path. - Calls :py:meth:`path` first to ensure the node list is cached, then - sums the ``processing_time`` attribute of every node on that path. - Returns 0.0 when source and target are the same node or when no path - exists. + Calls [path][eclypse.graph.infrastructure.Infrastructure.path] first to ensure + the node list is cached, then sums the ``processing_time`` attribute of every + node on that path. Returns 0.0 when source and target are the same node or when + no path exists. Args: source (str): The name of the source node. diff --git a/eclypse/io/__init__.py b/eclypse/io/__init__.py index 60d2eef9..3e98d7e6 100644 --- a/eclypse/io/__init__.py +++ b/eclypse/io/__init__.py @@ -1,8 +1,8 @@ """Package for importing and exporting ECLYPSE graph objects. The package exposes a small import/export API for -:class:`~eclypse.graph.infrastructure.Infrastructure` and -:class:`~eclypse.graph.application.Application` objects. Built-in formats are +[Infrastructure][eclypse.graph.infrastructure.Infrastructure] and +[Application][eclypse.graph.application.Application] objects. Built-in formats are resolved through the default registry, while custom importers and exporters can be passed directly to the public functions. """ diff --git a/eclypse/io/base.py b/eclypse/io/base.py index 4b8d82b3..e7e1a1a6 100644 --- a/eclypse/io/base.py +++ b/eclypse/io/base.py @@ -28,7 +28,8 @@ class GraphExporter(ABC, Generic[TGraph, TData]): Exporters convert an ECLYPSE graph object into an intermediate data representation, then write that representation to a destination. Subclasses normally implement - :meth:`to_data` and :meth:`write_data`. + [to_data][eclypse.io.base.GraphExporter.to_data] and + [write_data][eclypse.io.base.GraphExporter.write_data]. """ def dump( @@ -53,7 +54,8 @@ def to_data(self, graph: TGraph, *, context: IOContext | None = None) -> TData: context (IOContext | None): Optional import/export customisation. Returns: - TData: The intermediate representation handled by :meth:`write_data`. + TData: The intermediate representation handled by + [write_data][eclypse.io.base.GraphExporter.write_data]. """ @abstractmethod @@ -74,7 +76,8 @@ class GraphImporter(ABC, Generic[TGraph, TData]): Importers read a source into an intermediate data representation, then build an ECLYPSE graph object from that representation. Subclasses normally implement - :meth:`read_data` and :meth:`from_data`. + [read_data][eclypse.io.base.GraphImporter.read_data] and + [from_data][eclypse.io.base.GraphImporter.from_data]. """ def load( @@ -108,7 +111,8 @@ def read_data( context (IOContext | None): Optional import/export customisation. Returns: - TData: The intermediate representation handled by :meth:`from_data`. + TData: The intermediate representation handled by + [from_data][eclypse.io.base.GraphImporter.from_data]. """ @abstractmethod diff --git a/eclypse/io/context.py b/eclypse/io/context.py index 8b538010..0c581132 100644 --- a/eclypse/io/context.py +++ b/eclypse/io/context.py @@ -33,7 +33,7 @@ class IOContext: """Common customisation context for AssetGraph import and export. The context contains only options that map to the common - :class:`~eclypse.graph.asset_graph.AssetGraph` construction and population + [AssetGraph][eclypse.graph.asset_graph.AssetGraph] construction and population behaviour. Args: @@ -58,14 +58,14 @@ class InfrastructureContext(IOContext): Args: strict (bool): Whether imported nodes and edges should be validated strictly. Defaults to ``False``, matching - :class:`~eclypse.graph.infrastructure.Infrastructure`. + [Infrastructure][eclypse.graph.infrastructure.Infrastructure]. include_default_assets (bool): Whether the imported infrastructure should include default assets when the format does not carry asset definitions. Defaults to ``False``, matching - :class:`~eclypse.graph.infrastructure.Infrastructure`. + [Infrastructure][eclypse.graph.infrastructure.Infrastructure]. resource_init (InitPolicy): Resource initialisation policy used when a format does not carry one. Defaults to ``"asset_init"``, matching - :class:`~eclypse.graph.infrastructure.Infrastructure`. + [Infrastructure][eclypse.graph.infrastructure.Infrastructure]. path_assets_aggregators (dict[str, Callable[[list[Any]], Any]] | None): Named path aggregators used to reconstruct infrastructure path-resource aggregation. Defaults to ECLYPSE path aggregators only when @@ -115,14 +115,14 @@ class ApplicationContext(IOContext): Args: strict (bool): Whether imported nodes and edges should be validated strictly. Defaults to ``True``, matching - :class:`~eclypse.graph.application.Application` through - :class:`~eclypse.graph.asset_graph.AssetGraph`. + [Application][eclypse.graph.application.Application] through + [AssetGraph][eclypse.graph.asset_graph.AssetGraph]. include_default_assets (bool): Whether the imported application should include default assets when the format does not carry asset definitions. Defaults - to ``False``, matching :class:`~eclypse.graph.application.Application`. + to ``False``, matching [Application][eclypse.graph.application.Application]. requirement_init (InitPolicy): Requirement initialisation policy used when a format does not carry one. Defaults to ``"asset_init"``, matching - :class:`~eclypse.graph.application.Application`. + [Application][eclypse.graph.application.Application]. services (dict[str, type[Service]]): Service classes used when an application importer needs to instantiate service implementations. """ diff --git a/eclypse/placement/strategies/round_robin.py b/eclypse/placement/strategies/round_robin.py index c60388a9..6c6664fe 100644 --- a/eclypse/placement/strategies/round_robin.py +++ b/eclypse/placement/strategies/round_robin.py @@ -40,7 +40,7 @@ def __init__(self, sort_fn: Callable[[Any], Any] | None = None): Args: sort_fn (Callable[[Any], Any] | None, optional): A function to sort the - infrastructure nodes. Defaults to None. + infrastructure nodes. Defaults to None. """ self.sort_fn = sort_fn super().__init__() diff --git a/eclypse/placement/strategies/strategy.py b/eclypse/placement/strategies/strategy.py index c46cf716..6db5aed5 100644 --- a/eclypse/placement/strategies/strategy.py +++ b/eclypse/placement/strategies/strategy.py @@ -69,7 +69,7 @@ def is_feasible( Args: infrastructure (Infrastructure): The infrastructure to place the application onto. - application (Application): + _ (Application): The application to place onto the infrastructure. Returns: diff --git a/eclypse/policies/__init__.py b/eclypse/policies/__init__.py index d99294a5..5e3d6043 100644 --- a/eclypse/policies/__init__.py +++ b/eclypse/policies/__init__.py @@ -2,7 +2,7 @@ This module hosts the public update-policy interface used by ECLYPSE graphs. Policies are graph-oriented callables that mutate an -:class:`~eclypse.graph.asset_graph.AssetGraph` during ``evolve()``. +[AssetGraph][eclypse.graph.asset_graph.AssetGraph] during ``evolve()``. """ from __future__ import annotations diff --git a/eclypse/policies/workload/diurnal_load.py b/eclypse/policies/workload/diurnal_load.py index a992429e..bbb4009b 100644 --- a/eclypse/policies/workload/diurnal_load.py +++ b/eclypse/policies/workload/diurnal_load.py @@ -37,14 +37,7 @@ class DiurnalLoadPolicy: baselines: dict[tuple[str, ...], float] = field(default_factory=dict) def __post_init__(self): - """Validate the diurnal load configuration. - - Args: - None. - - Returns: - None. - """ + """Validate the diurnal load configuration.""" if self.period <= 0: raise ValueError("period must be strictly positive.") if self.node_assets is None and self.edge_assets is None: diff --git a/eclypse/remote/node/node.py b/eclypse/remote/node/node.py index bbf14965..74a3c52e 100644 --- a/eclypse/remote/node/node.py +++ b/eclypse/remote/node/node.py @@ -92,11 +92,11 @@ class attributes. An example of build function can be the following: - .. code-block:: python - - def build(self, dataset_name: str): - self._dataset_name = dataset_name - self._dataset = load_dataset(self._dataset_name) + ```python + def build(self, dataset_name: str): + self._dataset_name = dataset_name + self._dataset = load_dataset(self._dataset_name) + ``` """ async def ops_entrypoint(self, engine_op: RemoteOps, **op_args) -> Any: diff --git a/eclypse/report/metrics/metric.py b/eclypse/report/metrics/metric.py index e0f0a687..68fe58e7 100644 --- a/eclypse/report/metrics/metric.py +++ b/eclypse/report/metrics/metric.py @@ -86,8 +86,6 @@ def simulation( as an event. Defaults to None. name (str | None, optional): The name of the event. If not provided, the name will be derived from the function or class name. Defaults to None. - event_type (EventType | None, optional): - The type of the event. Defaults to None. activates_on (ActivatesOnType, optional): The events that will trigger the metric. Defaults to DRIVING_EVENT. diff --git a/eclypse/simulation/config.py b/eclypse/simulation/config.py index c5ccb38f..7e8b09bc 100644 --- a/eclypse/simulation/config.py +++ b/eclypse/simulation/config.py @@ -108,7 +108,7 @@ class SimulationConfig: report_backend: ReportBackend | FrameBackend | None = None """Backend used later to load generated reports through - :class:`~eclypse.report.report.Report`.""" + [Report][eclypse.report.report.Report].""" remote: bool | RemoteBootstrap = False """Whether to run in remote emulation mode, or the bootstrap to use for it.""" diff --git a/eclypse/workflow/event/decorator.py b/eclypse/workflow/event/decorator.py index 550c129d..db442333 100644 --- a/eclypse/workflow/event/decorator.py +++ b/eclypse/workflow/event/decorator.py @@ -308,10 +308,10 @@ def once_at( def _camel_to_snake(name: str) -> str: """Convert a CamelCase string to a snake_case string. - .. code-block:: python - - name = "MyCamelCaseSentence" - print(_camel_to_snake(name)) # my_camel_case_sentence + ```python + name = "MyCamelCaseSentence" + print(_camel_to_snake(name)) # my_camel_case_sentence + ``` Args: name (str): The CamelCase string to convert. diff --git a/eclypse/workflow/trigger/trigger.py b/eclypse/workflow/trigger/trigger.py index 10ecf13a..3f503889 100644 --- a/eclypse/workflow/trigger/trigger.py +++ b/eclypse/workflow/trigger/trigger.py @@ -40,7 +40,7 @@ def trigger(self, _: EclypseEvent | None = None) -> bool: """Check if the trigger should fire. Args: - trigger_event (EclypseEvent | None): The event that triggered the check. + _ (EclypseEvent | None): The event that triggered the check. Returns: bool: True if the trigger should fire, False otherwise. diff --git a/pyproject.toml b/pyproject.toml index 41c290b1..24dc572c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,17 +65,8 @@ test = [ ] docs = [ - "jinja2>=3.1.6", - "myst-parser>=5.1.0", - "pydata-sphinx-theme>=0.23.0", - "sphinx>=9.0.4; python_version < '3.12'", - "sphinx>=9.1.1; python_version >= '3.12' and python_version < '3.13'", - "sphinx>=9.2.0; python_version >= '3.13'", - "sphinx-autobuild>=2025.8.25", - "sphinx-copybutton>=0.5.2", - "sphinx-design>=0.7.0", - "sphinx-favicon>=1.1.0", - "sphinx-icon>=0.2.2", + "mkdocstrings-python>=2.0.11", + "zensical>=0.1.1", ] # Build backend diff --git a/uv.lock b/uv.lock index 3b436bc3..13540226 100644 --- a/uv.lock +++ b/uv.lock @@ -22,18 +22,6 @@ resolution-markers = [ "python_full_version < '3.11.5' and sys_platform != 'emscripten' and sys_platform != 'win32'", ] -[[package]] -name = "accessible-pygments" -version = "0.0.5" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pygments" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/bc/c1/bbac6a50d02774f91572938964c582fff4270eee73ab822a4aeea4d8b11b/accessible_pygments-0.0.5.tar.gz", hash = "sha256:40918d3e6a2b619ad424cb91e556bd3bd8865443d9f22f1dcdf79e33c8046872", size = 1377899, upload-time = "2024-05-10T11:23:10.216Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8d/3f/95338030883d8c8b91223b4e21744b04d11b161a3ef117295d8241f50ab4/accessible_pygments-0.0.5-py3-none-any.whl", hash = "sha256:88ae3211e68a1d0b011504b2ffc1691feafce124b845bd072ab6f9f66f34d4b7", size = 1395903, upload-time = "2024-05-10T11:23:08.421Z" }, -] - [[package]] name = "aiofiles" version = "25.1.0" @@ -196,15 +184,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/fb/76/641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba/aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e", size = 7490, upload-time = "2025-07-03T22:54:42.156Z" }, ] -[[package]] -name = "alabaster" -version = "1.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a6/f8/d9c74d0daf3f742840fd818d69cfae176fa332022fd44e3469487d5a9420/alabaster-1.0.0.tar.gz", hash = "sha256:c00dca57bca26fa62a6d7d0a9fcce65f3e026e9bfe33e9c538fd3fbb2144fd9e", size = 24210, upload-time = "2024-07-26T18:15:03.762Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7e/b3/6b4067be973ae96ba0d615946e314c5ae35f9f993eca561b356540bb0c2b/alabaster-1.0.0-py3-none-any.whl", hash = "sha256:fc6786402dc3fcb2de3cabd5fe455a2db534b371124f1f21de8731783dec828b", size = 13929, upload-time = "2024-07-26T18:15:02.05Z" }, -] - [[package]] name = "annotated-types" version = "0.8.0" @@ -214,19 +193,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, ] -[[package]] -name = "anyio" -version = "4.15.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "idna" }, - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/a9/d2/f4d173e22df740bc37b1db102b386ba719b66e95b0f0d751f556b387e6d2/anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94", size = 276966, upload-time = "2026-09-05T10:42:39.44Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/12/b8/4bd346e22b28902df4d651910f5242c28d84e4a5c2435ca5c3f797ed7e2e/anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101", size = 132079, upload-time = "2026-09-05T10:42:37.923Z" }, -] - [[package]] name = "argcomplete" version = "3.7.2" @@ -308,29 +274,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, ] -[[package]] -name = "babel" -version = "2.18.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7d/b2/51899539b6ceeeb420d40ed3cd4b7a40519404f9baf3d4ac99dc413a834b/babel-2.18.0.tar.gz", hash = "sha256:b80b99a14bd085fcacfa15c9165f651fbb3406e66cc603abf11c5750937c992d", size = 9959554, upload-time = "2026-02-01T12:30:56.078Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/77/f5/21d2de20e8b8b0408f0681956ca2c69f1320a3848ac50e6e7f39c6159675/babel-2.18.0-py3-none-any.whl", hash = "sha256:e2b422b277c2b9a9630c1d7903c2a00d0830c409c59ac8cae9081c92f1aeba35", size = 10196845, upload-time = "2026-02-01T12:30:53.445Z" }, -] - -[[package]] -name = "beautifulsoup4" -version = "4.15.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "soupsieve", version = "2.10", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11.5'" }, - { name = "soupsieve", version = "3.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11.5'" }, - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/43/65/318323f98dbee45d42dff61d8f047181bc6f2268a9068cfad035a46be5af/beautifulsoup4-4.15.0.tar.gz", hash = "sha256:288e3ca7d54b06f2ac191970bc275c1939cb46d450b255bf6718b04aa37ab4f7", size = 632571, upload-time = "2026-06-07T16:44:20.453Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/88/c6/92fcd42f1ba33e1184263f25bfabf3d27c383410470f169e4b8163bf9c17/beautifulsoup4-4.15.0-py3-none-any.whl", hash = "sha256:d6f88de62e1d4e38ecb1077eb9724cd0eff29d2a08ca16a401e9b9e93f117cf9", size = 109924, upload-time = "2026-06-07T16:44:21.566Z" }, -] - [[package]] name = "certifi" version = "2026.10.23" @@ -782,15 +725,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c1/2b/238f02a4927fa2e27aa995371d240a468b52e42eae44a678434aff736b38/distlib-0.4.4-py2.py3-none-any.whl", hash = "sha256:cf09d55b1e85a89576b036aeb71550bfd68320f3f21761ca329eadadad918638", size = 472099, upload-time = "2026-10-16T13:56:32.053Z" }, ] -[[package]] -name = "docutils" -version = "0.22.4" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ae/b6/03bb70946330e88ffec97aefd3ea75ba575cb2e762061e0e62a213befee8/docutils-0.22.4.tar.gz", hash = "sha256:4db53b1fde9abecbb74d91230d32ab626d94f6badfc575d6db9194a49df29968", size = 2291750, upload-time = "2025-12-18T19:00:26.443Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/02/10/5da547df7a391dcde17f59520a231527b8571e6f46fc8efb02ccb370ab12/docutils-0.22.4-py3-none-any.whl", hash = "sha256:d0013f540772d1420576855455d050a2180186c91c15779301ac2ccb3eeb68de", size = 633196, upload-time = "2025-12-18T19:00:18.077Z" }, -] - [[package]] name = "eclypse" version = "0.10.0" @@ -812,17 +746,8 @@ dev = [ { name = "ruff" }, ] docs = [ - { name = "jinja2" }, - { name = "myst-parser" }, - { name = "pydata-sphinx-theme" }, - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, - { name = "sphinx-autobuild" }, - { name = "sphinx-copybutton" }, - { name = "sphinx-design" }, - { name = "sphinx-favicon" }, - { name = "sphinx-icon" }, + { name = "mkdocstrings-python" }, + { name = "zensical" }, ] test = [ { name = "polars" }, @@ -855,17 +780,8 @@ dev = [ { name = "ruff", specifier = ">=0.17.2" }, ] docs = [ - { name = "jinja2", specifier = ">=3.1.6" }, - { name = "myst-parser", specifier = ">=5.1.0" }, - { name = "pydata-sphinx-theme", specifier = ">=0.23.0" }, - { name = "sphinx", marker = "python_full_version < '3.12'", specifier = ">=9.0.4" }, - { name = "sphinx", marker = "python_full_version == '3.12.*'", specifier = ">=9.1.1" }, - { name = "sphinx", marker = "python_full_version >= '3.13'", specifier = ">=9.2.0" }, - { name = "sphinx-autobuild", specifier = ">=2025.8.25" }, - { name = "sphinx-copybutton", specifier = ">=0.5.2" }, - { name = "sphinx-design", specifier = ">=0.7.0" }, - { name = "sphinx-favicon", specifier = ">=1.1.0" }, - { name = "sphinx-icon", specifier = ">=0.2.2" }, + { name = "mkdocstrings-python", specifier = ">=2.0.11" }, + { name = "zensical", specifier = ">=0.1.1" }, ] test = [ { name = "polars", specifier = ">=2.1.0" }, @@ -1002,6 +918,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" }, ] +[[package]] +name = "ghp-import" +version = "2.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/d9/29/d40217cbe2f6b1359e00c6c307bb3fc876ba74068cbab3dde77f03ca0dc4/ghp-import-2.1.0.tar.gz", hash = "sha256:9c535c4c61193c2df8871222567d7fd7e5014d835f97dc7b7439069e2413d343", size = 10943, upload-time = "2022-05-02T15:47:16.11Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f7/ec/67fbef5d497f86283db54c22eec6f6140243aae73265799baaaa19cd17fb/ghp_import-2.1.0-py3-none-any.whl", hash = "sha256:8337dd7b50877f163d4c0289bc1f1c7f127550241988d568c1db512c4324a619", size = 11034, upload-time = "2022-05-02T15:47:14.552Z" }, +] + [[package]] name = "google-api-core" version = "2.43.0" @@ -1044,6 +972,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/05/6d/78dc67a9e779e594b49bf62604034d3a6aa428a55afc729cafda4b7333e1/googleapis_common_protos-1.76.0-py3-none-any.whl", hash = "sha256:59e13344a9f3651aa201a03e2bee815a3bf43a4baf1f9ff8a9b62a840ce25fac", size = 307707, upload-time = "2026-10-22T23:43:10.445Z" }, ] +[[package]] +name = "griffelib" +version = "2.4.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/36/e2/0f5d8ed08766bc6dcd3eebf5a6623d83cbca33a6e4c90aef57156ce745ad/griffelib-2.4.1.tar.gz", hash = "sha256:40c028dd2e623f464423f0e11e3c553158f1cf4f1368239a370534d73e1407ff", size = 245153, upload-time = "2026-10-22T11:20:03.705Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/02/1156d5f5307f573b901b14373848b84e69ca6cab09169b8cc97d16a181f9/griffelib-2.4.1-py3-none-any.whl", hash = "sha256:76bc562f936ad1ce198d2cf6d0731bd5c92a7d934b69ef828ef22ee0ffdb62ce", size = 172983, upload-time = "2026-10-22T11:19:59.843Z" }, +] + [[package]] name = "grpcio" version = "1.85.0" @@ -1095,15 +1032,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7e/34/eca74515cd7e1c15312d3f77440dc5c48ed3421110188176b5e37226bc9f/grpcio-1.85.0-cp314-cp314-win_amd64.whl", hash = "sha256:a11c8c322a19d6d3cd6fb645127e8f1ca4e8041d05e41e9b24c7678ec7391021", size = 5758315, upload-time = "2026-10-26T06:19:52.659Z" }, ] -[[package]] -name = "h11" -version = "0.16.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, -] - [[package]] name = "identify" version = "2.6.20" @@ -1122,15 +1050,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, ] -[[package]] -name = "imagesize" -version = "2.0.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fb/5e/513ff06670c84e7b9887c1fdf61b2d42b4f574a831f2f1d2222023049d8a/imagesize-2.0.1.tar.gz", hash = "sha256:b2ba6a4dea487a7ebcd53248d3476aca449d30db12a2dde5e0c5ca9624fd77e5", size = 1883774, upload-time = "2026-08-24T12:35:19.13Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/01/f9/575c8d760eae1fc99651b7cc5efd96ad5379ca4d6b53750b0fb4fe983f34/imagesize-2.0.1-py3-none-any.whl", hash = "sha256:ea0c9a0384df69ed86a943a15cde37d0360b82491b3910dc2215e202e62b5b02", size = 14794, upload-time = "2026-08-24T12:35:12.548Z" }, -] - [[package]] name = "iniconfig" version = "2.3.1" @@ -1312,15 +1231,12 @@ wheels = [ ] [[package]] -name = "markdown-it-py" -version = "4.2.0" +name = "markdown" +version = "3.11.3" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "mdurl" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454, upload-time = "2026-05-07T12:08:28.36Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ca/eb/dc0fd6eff604bfb870b7fb68b90985a32caaf3c76f67736bbf7f438acd59/markdown-3.11.3.tar.gz", hash = "sha256:81eb91631dc97ad1efbc76019ef0f80fe90ca49ddf81546752d79989c3bfff3e", size = 498810, upload-time = "2026-11-05T20:30:52.926Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" }, + { url = "https://files.pythonhosted.org/packages/81/6f/1fa8970e960e5c832874399e6efa564870ade8206d57fef5d5e296b834f5/markdown-3.11.3-py3-none-any.whl", hash = "sha256:e1a31a112232504d753e5c01bb8c2de90d3f0ba986b063e10770cf7695b09e73", size = 116758, upload-time = "2026-11-05T20:30:51.775Z" }, ] [[package]] @@ -1417,24 +1333,96 @@ wheels = [ ] [[package]] -name = "mdit-py-plugins" -version = "0.6.1" +name = "mergedeep" +version = "1.3.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/3a/41/580bb4006e3ed0361b8151a01d324fb03f420815446c7def45d02f74c270/mergedeep-1.3.4.tar.gz", hash = "sha256:0096d52e9dad9939c3d975a774666af186eda617e6ca84df4c94dec30004f2a8", size = 4661, upload-time = "2021-02-05T18:55:30.623Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/19/04f9b178c2d8a15b076c8b5140708fa6ffc5601fb6f1e975537072df5b2a/mergedeep-1.3.4-py3-none-any.whl", hash = "sha256:70775750742b25c0d8f36c55aed03d24c3384d17c951b3175d898bd778ef0307", size = 6354, upload-time = "2021-02-05T18:55:29.583Z" }, +] + +[[package]] +name = "mkdocs" +version = "1.6.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "ghp-import" }, + { name = "jinja2" }, + { name = "markdown" }, + { name = "markupsafe" }, + { name = "mergedeep" }, + { name = "mkdocs-get-deps" }, + { name = "packaging" }, + { name = "pathspec" }, + { name = "pyyaml" }, + { name = "pyyaml-env-tag" }, + { name = "watchdog" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/bc/c6/bbd4f061bd16b378247f12953ffcb04786a618ce5e904b8c5a01a0309061/mkdocs-1.6.1.tar.gz", hash = "sha256:7b432f01d928c084353ab39c57282f29f92136665bdd6abf7c1ec8d822ef86f2", size = 3889159, upload-time = "2024-08-30T12:24:06.899Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/5b/dbc6a8cddc9cfa9c4971d59fb12bb8d42e161b7e7f8cc89e49137c5b279c/mkdocs-1.6.1-py3-none-any.whl", hash = "sha256:db91759624d1647f3f34aa0c3f327dd2601beae39a366d6e064c03468d35c20e", size = 3864451, upload-time = "2024-08-30T12:24:05.054Z" }, +] + +[[package]] +name = "mkdocs-autorefs" +version = "1.4.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "markdown" }, + { name = "markupsafe" }, + { name = "mkdocs" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e0/e0/1e8ed4e8dabdcba8cba5dbf4b8ce49bb3b51e750177155247abb5345d48a/mkdocs_autorefs-1.4.5.tar.gz", hash = "sha256:856f75b327b7717923ce06267094650689a510a748c48657f5333965950c2788", size = 59736, upload-time = "2026-10-22T15:03:55.402Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1e/cf/3dfc07ec910553bfb1e5c9009c1854bd9d2efa7f3dda03f007a77db0e63a/mkdocs_autorefs-1.4.5-py3-none-any.whl", hash = "sha256:68ee484e0800f3ba50cda1bc4a94293adbdfcc010243c322b3f5d66e15d06770", size = 29633, upload-time = "2026-10-22T15:03:54.091Z" }, +] + +[[package]] +name = "mkdocs-get-deps" +version = "0.2.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mergedeep" }, + { name = "platformdirs" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ce/25/b3cccb187655b9393572bde9b09261d267c3bf2f2cdabe347673be5976a6/mkdocs_get_deps-0.2.2.tar.gz", hash = "sha256:8ee8d5f316cdbbb2834bc1df6e69c08fe769a83e040060de26d3c19fad3599a1", size = 11047, upload-time = "2026-03-10T02:46:33.632Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/29/744136411e785c4b0b744d5413e56555265939ab3a104c6a4b719dad33fd/mkdocs_get_deps-0.2.2-py3-none-any.whl", hash = "sha256:e7878cbeac04860b8b5e0ca31d3abad3df9411a75a32cde82f8e44b6c16ff650", size = 9555, upload-time = "2026-03-10T02:46:32.256Z" }, +] + +[[package]] +name = "mkdocstrings" +version = "1.0.8" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "markdown-it-py" }, + { name = "jinja2" }, + { name = "markdown" }, + { name = "markupsafe" }, + { name = "mkdocs" }, + { name = "mkdocs-autorefs" }, + { name = "pymdown-extensions", version = "12.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11.5'" }, + { name = "pymdown-extensions", version = "13.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11.5'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/59/fc/f8d0863f8862f25602c0404d75568e89fb6b4109804645e5cdfb1be5cf56/mdit_py_plugins-0.6.1.tar.gz", hash = "sha256:a2bca0f039f39dbd35fb74ae1b5f998608c437463371f0ff7f49a19a17a114d0", size = 56114, upload-time = "2026-05-13T09:03:38.91Z" } +sdist = { url = "https://files.pythonhosted.org/packages/27/cc/e3ed8b16851f5d664dffcf8f55fc60d0d3f736a3edca21d1508105d1255a/mkdocstrings-1.0.8.tar.gz", hash = "sha256:b50fc326230906425c82ee9ec59b80e5db00892b2b593d4d0b841a0d4acf537b", size = 107444, upload-time = "2026-10-19T15:43:02.157Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a5/69/6da5581c6a7fede7dc261bf4e67d6adca4196f176b43288b55b3db395b6e/mdit_py_plugins-0.6.1-py3-none-any.whl", hash = "sha256:214c82fb2ac524472ab6a5bcab1de80f73b50443e187f401bfd77efbc7c6481d", size = 66663, upload-time = "2026-05-13T09:03:37.76Z" }, + { url = "https://files.pythonhosted.org/packages/19/5e/4df7a2290e97c60a3ba410084966e5ab84aa89d15c8c98c195acbaefa8f4/mkdocstrings-1.0.8-py3-none-any.whl", hash = "sha256:4b03ed2b863009f1153f0d04aacb22a85b92afc28a0636d85717c92eecca638c", size = 42209, upload-time = "2026-10-19T15:43:00.65Z" }, ] [[package]] -name = "mdurl" -version = "0.1.2" +name = "mkdocstrings-python" +version = "2.0.11" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } +dependencies = [ + { name = "griffelib" }, + { name = "mkdocs-autorefs" }, + { name = "mkdocstrings" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ed/30/c06034d0f7e3f6f935604925e176d266fb04fcffe503cafb3aa95e1f09f3/mkdocstrings_python-2.0.11.tar.gz", hash = "sha256:12d9b8bb1ccdb160a220a771a169300b788e8af5ad6456a0b8aeabbb103d42b2", size = 208562, upload-time = "2026-11-12T11:46:37.718Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, + { url = "https://files.pythonhosted.org/packages/1f/e8/2516ba2594649a9ea25874831f700c76b73cd8c603989b6ffb8610abc651/mkdocstrings_python-2.0.11-py3-none-any.whl", hash = "sha256:86ba14ea584a838e144b40d131b0780452e8abee57d90db6c84c9a9ac114c527", size = 105561, upload-time = "2026-11-12T11:46:36.033Z" }, ] [[package]] @@ -1673,25 +1661,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, ] -[[package]] -name = "myst-parser" -version = "5.1.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "docutils" }, - { name = "jinja2" }, - { name = "markdown-it-py" }, - { name = "mdit-py-plugins" }, - { name = "pyyaml" }, - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/21/dc/603751677fff302f34396e206b610f556a59d7fe58b9a2145f54e96b48e8/myst_parser-5.1.0.tar.gz", hash = "sha256:ab69322dc6719dcc7f296479dbb70181b66df6ed315064f92dbc85c0e1bf2f02", size = 101182, upload-time = "2026-05-13T09:38:19.361Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/09/dc/f3dfb7488b770f3f67e6545085bf2abea5172e88f57b8ad25ef860ca704c/myst_parser-5.1.0-py3-none-any.whl", hash = "sha256:9c91c52b3cdb4d94a6506e4fab4e2f296c7623a0da0dcbe6de1565c3dad67a8a", size = 85817, upload-time = "2026-05-13T09:38:17.904Z" }, -] - [[package]] name = "networkx" version = "3.6.1" @@ -2422,33 +2391,60 @@ wheels = [ ] [[package]] -name = "pydata-sphinx-theme" -version = "0.24.0" +name = "pygments" +version = "2.21.0" source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pymdown-extensions" +version = "12.3" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version < '3.11.5' and sys_platform == 'win32'", + "python_full_version < '3.11.5' and sys_platform == 'emscripten'", + "python_full_version < '3.11.5' and sys_platform != 'emscripten' and sys_platform != 'win32'", +] dependencies = [ - { name = "accessible-pygments" }, - { name = "babel" }, - { name = "beautifulsoup4" }, - { name = "docutils" }, - { name = "jinja2" }, - { name = "pygments" }, - { name = "requests" }, - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, + { name = "markdown" }, + { name = "pyyaml" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/69/08/ef36c71c85ccd574233bb35e04a9695efecc5d54cb2edae839a5bc58f8ca/pydata_sphinx_theme-0.24.0.tar.gz", hash = "sha256:bc9050daac696ab62c817e324ef29ee43720c2e6068fde809c76a52d4c788ac2", size = 5020159, upload-time = "2026-11-02T13:42:05.276Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f3/fe/ac50ee24a80a1b344e643f6fb626063cc7041b978cd1dd9a7f9963ae1cd1/pymdown_extensions-12.3.tar.gz", hash = "sha256:a7f2a4e0bc60c6e6babfa7922cfb3b01cd640eb00fb208f3c582e12bae00ea67", size = 870532, upload-time = "2026-10-14T22:40:43.252Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f2/3b/f99ccbf185b910e7303ddb20849f83eb0995c0ffc983b4b5e10eda1ca7b6/pydata_sphinx_theme-0.24.0-py3-none-any.whl", hash = "sha256:195bc167ab1dcf0b31037e26f145f60461dc9cbb1eb2011283565567ee4fb6e5", size = 3217864, upload-time = "2026-11-02T13:42:03.147Z" }, + { url = "https://files.pythonhosted.org/packages/8a/d0/758afe732c2da502c051b4d03ff88daa3c0fc1a1e671e6c5a6318177bab4/pymdown_extensions-12.3-py3-none-any.whl", hash = "sha256:345493a8e3497e24382902903a1c43a28e34a52f2b7571a1c9641429b820ca74", size = 277597, upload-time = "2026-10-14T22:40:41.543Z" }, ] [[package]] -name = "pygments" -version = "2.21.0" +name = "pymdown-extensions" +version = "13.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +resolution-markers = [ + "python_full_version == '3.14.1' and sys_platform == 'win32'", + "python_full_version == '3.14.1' and sys_platform == 'emscripten'", + "python_full_version == '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32'", + "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform == 'win32') or (python_full_version > '3.14.1' and sys_platform == 'win32')", + "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform == 'emscripten') or (python_full_version > '3.14.1' and sys_platform == 'emscripten')", + "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32') or (python_full_version > '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32')", + "python_full_version == '3.13.*' and sys_platform == 'win32'", + "python_full_version == '3.13.*' and sys_platform == 'emscripten'", + "python_full_version == '3.13.*' and sys_platform != 'emscripten' and sys_platform != 'win32'", + "python_full_version == '3.12.*' and sys_platform == 'win32'", + "python_full_version == '3.12.*' and sys_platform == 'emscripten'", + "python_full_version == '3.12.*' and sys_platform != 'emscripten' and sys_platform != 'win32'", + "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'win32'", + "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'emscripten'", + "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", +] +dependencies = [ + { name = "markdown" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/47/b0/c98e5189398dc14ad3fa7d8762bed345d9178a6a3a37e2f6bdfb7cce8f53/pymdown_extensions-13.1.tar.gz", hash = "sha256:e1ecec373677483b7324a47e5b4bf2e0c6614fe8dcdab1dcc6a05ecefd9b527d", size = 897600, upload-time = "2026-11-11T14:08:38.819Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, + { url = "https://files.pythonhosted.org/packages/09/ea/6efb2c6c3dd91156bad5e46c292164a9115a35a83cac285f0ed8e7d3a810/pymdown_extensions-13.1-py3-none-any.whl", hash = "sha256:093d1fab98168526d98fbb17aa5c9da68eef3664324f6b25ebbf78b2709babeb", size = 284594, upload-time = "2026-11-11T14:08:37.03Z" }, ] [[package]] @@ -2599,6 +2595,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, ] +[[package]] +name = "pyyaml-env-tag" +version = "1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/eb/2e/79c822141bfd05a853236b504869ebc6b70159afc570e1d5a20641782eaa/pyyaml_env_tag-1.1.tar.gz", hash = "sha256:2eb38b75a2d21ee0475d6d97ec19c63287a7e140231e4214969d0eac923cd7ff", size = 5737, upload-time = "2025-05-13T15:24:01.64Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/11/432f32f8097b03e3cd5fe57e88efb685d964e2e5178a48ed61e841f7fdce/pyyaml_env_tag-1.1-py3-none-any.whl", hash = "sha256:17109e1a528561e32f026364712fee1264bc2ea6715120891174ed1b980d2e04", size = 4722, upload-time = "2025-05-13T15:23:59.629Z" }, +] + [[package]] name = "questionary" version = "2.1.1" @@ -2691,15 +2699,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, ] -[[package]] -name = "roman-numerals" -version = "4.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ae/f9/41dc953bbeb056c17d5f7a519f50fdf010bd0553be2d630bc69d1e022703/roman_numerals-4.1.0.tar.gz", hash = "sha256:1af8b147eb1405d5839e78aeb93131690495fe9da5c91856cb33ad55a7f1e5b2", size = 9077, upload-time = "2025-12-17T18:25:34.381Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/04/54/6f679c435d28e0a568d8e8a7c0a93a09010818634c3c3907fc98d8983770/roman_numerals-4.1.0-py3-none-any.whl", hash = "sha256:647ba99caddc2cc1e55a51e4360689115551bf4476d90e8162cf8c345fe233c7", size = 7676, upload-time = "2025-12-17T18:25:33.098Z" }, -] - [[package]] name = "rpds-py" version = "2026.9.1" @@ -2852,308 +2851,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/4e/6d/3a95e71d597ee03b3ddcf0ff154f2841b84d8724df2bb35a350493793ae9/smart_open-8.0.4-py3-none-any.whl", hash = "sha256:8a3a67679942fa40d1a93ed3aea37619b4b4ec5458f1d5a9228dfc301db11b4c", size = 73881, upload-time = "2026-10-17T19:34:43.624Z" }, ] -[[package]] -name = "snowballstemmer" -version = "3.1.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/43/f8/0a71edf031f03c40db17503cb8ca78a69a171254e568e7db241b0ab57ea1/snowballstemmer-3.1.1.tar.gz", hash = "sha256:e07bbc54a0d798fe6010a12398422e62a8bfbba95c394fd0956ef58cb4d3e260", size = 123314, upload-time = "2026-06-03T00:56:40.194Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/4c/07/2ebca9b11fb9be7340a818d8d6f63feaebb146be2c4afbd6061701d6df6e/snowballstemmer-3.1.1-py3-none-any.whl", hash = "sha256:7e207fa178741da09cdee59d3ecec3827ad5f92b1fc5c9ff3755b639f71f5752", size = 104164, upload-time = "2026-06-03T00:56:38.614Z" }, -] - -[[package]] -name = "soupsieve" -version = "2.10" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version < '3.11.5' and sys_platform == 'win32'", - "python_full_version < '3.11.5' and sys_platform == 'emscripten'", - "python_full_version < '3.11.5' and sys_platform != 'emscripten' and sys_platform != 'win32'", -] -sdist = { url = "https://files.pythonhosted.org/packages/71/c3/1b817965ac12dc002d7c9cd7dfffdd7d4fbf9b45763ef2ffe7b86ee94670/soupsieve-2.10.tar.gz", hash = "sha256:49e9380d7d2905463583bafe285e818c7366a9ed7b3aee221c1ac79c905d8bc0", size = 124337, upload-time = "2026-09-24T02:36:35.048Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/66/87/5ed59e1d0290564e2027ed066c52b059892c4637741337fc0967183c8d4d/soupsieve-2.10-py3-none-any.whl", hash = "sha256:8596eb8967d744174820280fa62b4542a2e955bfaccca73ed8a13c6eb8e9b502", size = 38019, upload-time = "2026-09-24T02:36:33.709Z" }, -] - -[[package]] -name = "soupsieve" -version = "3.0.4" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version == '3.14.1' and sys_platform == 'win32'", - "python_full_version == '3.14.1' and sys_platform == 'emscripten'", - "python_full_version == '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform == 'win32') or (python_full_version > '3.14.1' and sys_platform == 'win32')", - "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform == 'emscripten') or (python_full_version > '3.14.1' and sys_platform == 'emscripten')", - "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32') or (python_full_version > '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32')", - "python_full_version == '3.13.*' and sys_platform == 'win32'", - "python_full_version == '3.13.*' and sys_platform == 'emscripten'", - "python_full_version == '3.13.*' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version == '3.12.*' and sys_platform == 'win32'", - "python_full_version == '3.12.*' and sys_platform == 'emscripten'", - "python_full_version == '3.12.*' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'win32'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'emscripten'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", -] -sdist = { url = "https://files.pythonhosted.org/packages/19/63/0b6bae54546aed98d72f12d09df57b19a287f01c84d22047fa2e23772ab9/soupsieve-3.0.4.tar.gz", hash = "sha256:924fab84ae21604c19e175e1f39815eb6fa83ba23836e09e9de180925e5bc4c0", size = 119017, upload-time = "2026-10-22T00:45:26.362Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/07/66/473f7ca0be0b06e38ee8c85ee2db184e3981bd769fac2e7c19c8a8865211/soupsieve-3.0.4-py3-none-any.whl", hash = "sha256:8412826614f9c632227067d0985aeb9f584bd15efc852955430e097a9fe7afbf", size = 42458, upload-time = "2026-10-22T00:45:24.843Z" }, -] - -[[package]] -name = "sphinx" -version = "9.0.4" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'win32'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform == 'emscripten'", - "python_full_version >= '3.11.5' and python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version < '3.11.5' and sys_platform == 'win32'", - "python_full_version < '3.11.5' and sys_platform == 'emscripten'", - "python_full_version < '3.11.5' and sys_platform != 'emscripten' and sys_platform != 'win32'", -] -dependencies = [ - { name = "alabaster" }, - { name = "babel" }, - { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "docutils" }, - { name = "imagesize" }, - { name = "jinja2" }, - { name = "packaging" }, - { name = "pygments" }, - { name = "requests" }, - { name = "roman-numerals" }, - { name = "snowballstemmer" }, - { name = "sphinxcontrib-applehelp" }, - { name = "sphinxcontrib-devhelp" }, - { name = "sphinxcontrib-htmlhelp" }, - { name = "sphinxcontrib-jsmath" }, - { name = "sphinxcontrib-qthelp" }, - { name = "sphinxcontrib-serializinghtml" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/42/50/a8c6ccc36d5eacdfd7913ddccd15a9cee03ecafc5ee2bc40e1f168d85022/sphinx-9.0.4.tar.gz", hash = "sha256:594ef59d042972abbc581d8baa577404abe4e6c3b04ef61bd7fc2acbd51f3fa3", size = 8710502, upload-time = "2025-12-04T07:45:27.343Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c6/3f/4bbd76424c393caead2e1eb89777f575dee5c8653e2d4b6afd7a564f5974/sphinx-9.0.4-py3-none-any.whl", hash = "sha256:5bebc595a5e943ea248b99c13814c1c5e10b3ece718976824ffa7959ff95fffb", size = 3917713, upload-time = "2025-12-04T07:45:24.944Z" }, -] - -[[package]] -name = "sphinx" -version = "9.1.1" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version == '3.12.*' and sys_platform == 'win32'", - "python_full_version == '3.12.*' and sys_platform == 'emscripten'", - "python_full_version == '3.12.*' and sys_platform != 'emscripten' and sys_platform != 'win32'", -] -dependencies = [ - { name = "alabaster" }, - { name = "babel" }, - { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "docutils" }, - { name = "imagesize" }, - { name = "jinja2" }, - { name = "packaging" }, - { name = "pygments" }, - { name = "requests" }, - { name = "roman-numerals" }, - { name = "snowballstemmer" }, - { name = "sphinxcontrib-applehelp" }, - { name = "sphinxcontrib-devhelp" }, - { name = "sphinxcontrib-htmlhelp" }, - { name = "sphinxcontrib-jsmath" }, - { name = "sphinxcontrib-qthelp" }, - { name = "sphinxcontrib-serializinghtml" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/fc/73/567727fc8c8d85bc3adc88a246e12937cfda8d565cf1d80e85bceaa61fe5/sphinx-9.1.1.tar.gz", hash = "sha256:48b627f02908f22c601b3ba9c7b17265b4f315dd05c8bc64cd4da41183f44fbc", size = 8725638, upload-time = "2026-10-20T00:41:13.96Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/47/18/3c66ea76da7de47e716b181c35bdbfafbd5e9af0bb247b14578e9de348e9/sphinx-9.1.1-py3-none-any.whl", hash = "sha256:f8b60013ce25017be41a509e5c2d265bc1918410061315c36b809c7f335646c0", size = 3923559, upload-time = "2026-10-20T00:41:11.288Z" }, -] - -[[package]] -name = "sphinx" -version = "9.2.0" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version == '3.14.1' and sys_platform == 'win32'", - "python_full_version == '3.14.1' and sys_platform == 'emscripten'", - "python_full_version == '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform == 'win32') or (python_full_version > '3.14.1' and sys_platform == 'win32')", - "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform == 'emscripten') or (python_full_version > '3.14.1' and sys_platform == 'emscripten')", - "(python_full_version >= '3.14' and python_full_version < '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32') or (python_full_version > '3.14.1' and sys_platform != 'emscripten' and sys_platform != 'win32')", - "python_full_version == '3.13.*' and sys_platform == 'win32'", - "python_full_version == '3.13.*' and sys_platform == 'emscripten'", - "python_full_version == '3.13.*' and sys_platform != 'emscripten' and sys_platform != 'win32'", -] -dependencies = [ - { name = "alabaster" }, - { name = "babel" }, - { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "docutils" }, - { name = "imagesize" }, - { name = "jinja2" }, - { name = "packaging" }, - { name = "pygments" }, - { name = "requests" }, - { name = "roman-numerals" }, - { name = "snowballstemmer" }, - { name = "sphinxcontrib-applehelp" }, - { name = "sphinxcontrib-devhelp" }, - { name = "sphinxcontrib-htmlhelp" }, - { name = "sphinxcontrib-jsmath" }, - { name = "sphinxcontrib-qthelp" }, - { name = "sphinxcontrib-serializinghtml" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/64/d4/413466f0be8b1cb0e3e43893a148b96d7462d0923d82b4166b21afc5f30c/sphinx-9.2.0.tar.gz", hash = "sha256:90470459f3cab15d9dfed146c71cf77694b0445df17b2e0e69059cb9f7fc9ee4", size = 8782438, upload-time = "2026-10-21T00:05:15.019Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c4/28/a0c50761cd215b7042f4bc617a6bc5c0cd7be62f75bc908e169e28a4d21e/sphinx-9.2.0-py3-none-any.whl", hash = "sha256:4c3ec13b612712c0d3ce4cbdd9e3eb91e68577e07a8e31f32f21cf178453578c", size = 3925388, upload-time = "2026-10-21T00:05:12.241Z" }, -] - -[[package]] -name = "sphinx-autobuild" -version = "2025.8.25" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "colorama" }, - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, - { name = "starlette" }, - { name = "uvicorn" }, - { name = "watchfiles" }, - { name = "websockets" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e0/3c/a59a3a453d4133777f7ed2e83c80b7dc817d43c74b74298ca0af869662ad/sphinx_autobuild-2025.8.25.tar.gz", hash = "sha256:9cf5aab32853c8c31af572e4fecdc09c997e2b8be5a07daf2a389e270e85b213", size = 15200, upload-time = "2025-08-25T18:44:55.436Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d7/20/56411b52f917696995f5ad27d2ea7e9492c84a043c5b49a3a3173573cd93/sphinx_autobuild-2025.8.25-py3-none-any.whl", hash = "sha256:b750ac7d5a18603e4665294323fd20f6dcc0a984117026d1986704fa68f0379a", size = 12535, upload-time = "2025-08-25T18:44:54.164Z" }, -] - -[[package]] -name = "sphinx-copybutton" -version = "0.5.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/fc/2b/a964715e7f5295f77509e59309959f4125122d648f86b4fe7d70ca1d882c/sphinx-copybutton-0.5.2.tar.gz", hash = "sha256:4cf17c82fb9646d1bc9ca92ac280813a3b605d8c421225fd9913154103ee1fbd", size = 23039, upload-time = "2023-04-14T08:10:22.998Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/48/1ea60e74949eecb12cdd6ac43987f9fd331156388dcc2319b45e2ebb81bf/sphinx_copybutton-0.5.2-py3-none-any.whl", hash = "sha256:fb543fd386d917746c9a2c50360c7905b605726b9355cd26e9974857afeae06e", size = 13343, upload-time = "2023-04-14T08:10:20.844Z" }, -] - -[[package]] -name = "sphinx-design" -version = "0.7.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/13/7b/804f311da4663a4aecc6cf7abd83443f3d4ded970826d0c958edc77d4527/sphinx_design-0.7.0.tar.gz", hash = "sha256:d2a3f5b19c24b916adb52f97c5f00efab4009ca337812001109084a740ec9b7a", size = 2203582, upload-time = "2026-01-19T13:12:53.297Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/30/cf/45dd359f6ca0c3762ce0490f681da242f0530c49c81050c035c016bfdd3a/sphinx_design-0.7.0-py3-none-any.whl", hash = "sha256:f82bf179951d58f55dca78ab3706aeafa496b741a91b1911d371441127d64282", size = 2220350, upload-time = "2026-01-19T13:12:51.077Z" }, -] - -[[package]] -name = "sphinx-favicon" -version = "1.1.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "imagesize" }, - { name = "requests" }, - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/2c/26/e7ca2321e6286d6ed6a2e824a0ee35ae660ec9a45a4719e33a627ce9e4d2/sphinx_favicon-1.1.0.tar.gz", hash = "sha256:6f65939fc2a6ac4259c88b09169f0b72681cd4c03dd1d0cf91c57a1fa314e50b", size = 8744, upload-time = "2026-02-12T20:55:41.294Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c8/99/c85bc52d785557abddc4d8fdacfbcbda56fb3e715f76b9675fb9c2018aa5/sphinx_favicon-1.1.0-py3-none-any.whl", hash = "sha256:3ca71506fbb4d9a30bddc60a29e3fb8854f3e237ad95abad5a5c15f857d987b2", size = 7241, upload-time = "2026-02-12T20:55:40.312Z" }, -] - -[[package]] -name = "sphinx-icon" -version = "0.2.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pyyaml" }, - { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, - { name = "sphinx", version = "9.1.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.12.*'" }, - { name = "sphinx", version = "9.2.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/52/ab/710717754aae8c598a9813f4268b5a63f05ef722635df9a98cb407ba89c7/sphinx-icon-0.2.2.tar.gz", hash = "sha256:d4361e96dbfe64d60481f2386f4986cb2e23716a968b130ceca01c25dcd63534", size = 949050, upload-time = "2023-03-14T13:25:42.175Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/59/c6/4ae8d43a77ee30e4bad8dc691510aa413af0e75f403bcc4cb41eb3642fd2/sphinx_icon-0.2.2-py3-none-any.whl", hash = "sha256:a985bf81077d0a79a7c166c16b6252f1e89bb3ad188ed89326a21bb334521105", size = 955793, upload-time = "2023-03-14T13:25:40.303Z" }, -] - -[[package]] -name = "sphinxcontrib-applehelp" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ba/6e/b837e84a1a704953c62ef8776d45c3e8d759876b4a84fe14eba2859106fe/sphinxcontrib_applehelp-2.0.0.tar.gz", hash = "sha256:2f29ef331735ce958efa4734873f084941970894c6090408b079c61b2e1c06d1", size = 20053, upload-time = "2024-07-29T01:09:00.465Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5d/85/9ebeae2f76e9e77b952f4b274c27238156eae7979c5421fba91a28f4970d/sphinxcontrib_applehelp-2.0.0-py3-none-any.whl", hash = "sha256:4cd3f0ec4ac5dd9c17ec65e9ab272c9b867ea77425228e68ecf08d6b28ddbdb5", size = 119300, upload-time = "2024-07-29T01:08:58.99Z" }, -] - -[[package]] -name = "sphinxcontrib-devhelp" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f6/d2/5beee64d3e4e747f316bae86b55943f51e82bb86ecd325883ef65741e7da/sphinxcontrib_devhelp-2.0.0.tar.gz", hash = "sha256:411f5d96d445d1d73bb5d52133377b4248ec79db5c793ce7dbe59e074b4dd1ad", size = 12967, upload-time = "2024-07-29T01:09:23.417Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/35/7a/987e583882f985fe4d7323774889ec58049171828b58c2217e7f79cdf44e/sphinxcontrib_devhelp-2.0.0-py3-none-any.whl", hash = "sha256:aefb8b83854e4b0998877524d1029fd3e6879210422ee3780459e28a1f03a8a2", size = 82530, upload-time = "2024-07-29T01:09:21.945Z" }, -] - -[[package]] -name = "sphinxcontrib-htmlhelp" -version = "2.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/43/93/983afd9aa001e5201eab16b5a444ed5b9b0a7a010541e0ddfbbfd0b2470c/sphinxcontrib_htmlhelp-2.1.0.tar.gz", hash = "sha256:c9e2916ace8aad64cc13a0d233ee22317f2b9025b9cf3295249fa985cc7082e9", size = 22617, upload-time = "2024-07-29T01:09:37.889Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/0a/7b/18a8c0bcec9182c05a0b3ec2a776bba4ead82750a55ff798e8d406dae604/sphinxcontrib_htmlhelp-2.1.0-py3-none-any.whl", hash = "sha256:166759820b47002d22914d64a075ce08f4c46818e17cfc9470a9786b759b19f8", size = 98705, upload-time = "2024-07-29T01:09:36.407Z" }, -] - -[[package]] -name = "sphinxcontrib-jsmath" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/59/02/4f334c7fc3e54c51d2364575a41cd2fae6847e7f53001949f0be5f32e18b/sphinxcontrib_jsmath-2.0.0.tar.gz", hash = "sha256:551f780cf9687f9c3c74f0cf9f18aca06e0d6958853453f3803fe4d357c5b924", size = 14511, upload-time = "2026-10-20T18:22:05.514Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/da/c2/2965c35b39587d4b7a397f65a9c7d4b942b031061e7ac1ce91782f394a0d/sphinxcontrib_jsmath-2.0.0-py3-none-any.whl", hash = "sha256:15ca92fe0eec82f0baf91a7efcc51ffacdb605924be6327683a52ebdacb6744c", size = 78095, upload-time = "2026-10-20T18:22:04.42Z" }, -] - -[[package]] -name = "sphinxcontrib-qthelp" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/68/bc/9104308fc285eb3e0b31b67688235db556cd5b0ef31d96f30e45f2e51cae/sphinxcontrib_qthelp-2.0.0.tar.gz", hash = "sha256:4fe7d0ac8fc171045be623aba3e2a8f613f8682731f9153bb2e40ece16b9bbab", size = 17165, upload-time = "2024-07-29T01:09:56.435Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/27/83/859ecdd180cacc13b1f7e857abf8582a64552ea7a061057a6c716e790fce/sphinxcontrib_qthelp-2.0.0-py3-none-any.whl", hash = "sha256:b18a828cdba941ccd6ee8445dbe72ffa3ef8cbe7505d8cd1fa0d42d3f2d5f3eb", size = 88743, upload-time = "2024-07-29T01:09:54.885Z" }, -] - -[[package]] -name = "sphinxcontrib-serializinghtml" -version = "2.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/3b/44/6716b257b0aa6bfd51a1b31665d1c205fb12cb5ad56de752dfa15657de2f/sphinxcontrib_serializinghtml-2.0.0.tar.gz", hash = "sha256:e9d912827f872c029017a53f0ef2180b327c3f7fd23c87229f7a8e8b70031d4d", size = 16080, upload-time = "2024-07-29T01:10:09.332Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/52/a7/d2782e4e3f77c8450f727ba74a8f12756d5ba823d81b941f1b04da9d033a/sphinxcontrib_serializinghtml-2.0.0-py3-none-any.whl", hash = "sha256:6e2cb0eef194e10c27ec0023bfeb25badbbb5868244cf5bc5bdc04e4464bf331", size = 92072, upload-time = "2024-07-29T01:10:08.203Z" }, -] - -[[package]] -name = "starlette" -version = "1.10.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/48/bb/3d8757f21e9a53d9035c9eb039a777047139a16bfdbedfc7a58241c3d914/starlette-1.10.0.tar.gz", hash = "sha256:b8399098d4c1e3522734f7235dc79b1fc967f96cf139c81e0fa30479e0685f9b", size = 2734356, upload-time = "2026-10-24T15:04:12.342Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/88/2e/947cfe02def9371c07cd5bf5b6b61c829e9aecb9904db02a66cfafbc1eec/starlette-1.10.0-py3-none-any.whl", hash = "sha256:478c0ab3b4ced6e82719849c118fa406f0278a3499c1a898cd15cd31bdc38ce4", size = 80571, upload-time = "2026-10-24T15:04:10.371Z" }, -] - [[package]] name = "tensorboardx" version = "2.6.5" @@ -3178,6 +2875,60 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/33/d1/8bb87d21e9aeb323cc03034f5eaf2c8f69841e40e4853c2627edf8111ed3/termcolor-3.3.0-py3-none-any.whl", hash = "sha256:cf642efadaf0a8ebbbf4bc7a31cec2f9b5f21a9f726f4ccbb08192c9c26f43a5", size = 7734, upload-time = "2025-12-29T12:55:20.718Z" }, ] +[[package]] +name = "tomli" +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/a6/ab99b60ee52acd949684febabc3005d0045d0f66bebd9cdebd67372d26dd/tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545", size = 163901, upload-time = "2026-10-07T12:22:15.601Z" }, + { url = "https://files.pythonhosted.org/packages/bc/00/ee01b7ed4579180fff07142d290257f25ba786f23f3ec6005f620933c2f5/tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef", size = 163756, upload-time = "2026-10-07T12:22:16.957Z" }, + { url = "https://files.pythonhosted.org/packages/72/c2/4efebf65372f6583185f79799312109dddb61102d47e5c33dcfd1a297aca/tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b", size = 268038, upload-time = "2026-10-07T12:22:18.135Z" }, + { url = "https://files.pythonhosted.org/packages/53/07/5850468e925d898abb36038666f9c333a94d2a223e802a8ba5b6d319d23f/tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56", size = 276422, upload-time = "2026-10-07T12:22:19.567Z" }, + { url = "https://files.pythonhosted.org/packages/b4/87/f293984cdcf83c054196d4fd3dad44fc68ae55b4b8c44bc76cef360c3150/tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1", size = 272616, upload-time = "2026-10-07T12:22:20.794Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ce/db582886b3c1219d3fec93ebd669332482e5aee7a91e0f7838d84f2d1759/tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885", size = 276593, upload-time = "2026-10-07T12:22:22.12Z" }, + { url = "https://files.pythonhosted.org/packages/bf/72/7619b87dea4261fc27dd7b54c4461c129c1f7d9bb7ba3aec89c797a431b8/tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e", size = 101830, upload-time = "2026-10-07T12:22:23.651Z" }, + { url = "https://files.pythonhosted.org/packages/1e/74/220106da34502304b6751a2a9b8a9fbca6c3fd47e737a2e2e3da7c61c9db/tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8", size = 112742, upload-time = "2026-10-07T12:22:24.972Z" }, + { url = "https://files.pythonhosted.org/packages/27/99/7d9c8b41837a7773613e169504147375c157a290167aa59ad74a085f521f/tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980", size = 109332, upload-time = "2026-10-07T12:22:26.117Z" }, + { url = "https://files.pythonhosted.org/packages/52/ed/7baa86f87493646a594de388c7c1c40a39dd0461f7e9c0359cbeefc91fe8/tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df", size = 164854, upload-time = "2026-10-07T12:22:27.444Z" }, + { url = "https://files.pythonhosted.org/packages/a5/b1/44c0341f2224397855723c7a8a39f718ea6fcbcc3dacc66e5aeca0f334e3/tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b", size = 164074, upload-time = "2026-10-07T12:22:28.679Z" }, + { url = "https://files.pythonhosted.org/packages/23/04/e2d5b7d3fba47adedb23de616c16d428ea076c79a3d8e1d95d649ffe197e/tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0", size = 274274, upload-time = "2026-10-07T12:22:29.804Z" }, + { url = "https://files.pythonhosted.org/packages/43/90/6090e706ff27a6f89f4a40578e3324b95c3cd8c4150868aabf33a8f414c3/tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6", size = 286435, upload-time = "2026-10-07T12:22:31.297Z" }, + { url = "https://files.pythonhosted.org/packages/0a/9e/a2c40768df16c408f22430afb0a73e9d7e5f79c950884954649d1146b74d/tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc", size = 278119, upload-time = "2026-10-07T12:22:32.601Z" }, + { url = "https://files.pythonhosted.org/packages/12/25/3c0cb485b98e9cfac495629b1c93c87ccf0b72fbe9d2689fd8fe62c6d5a3/tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7", size = 286177, upload-time = "2026-10-07T12:22:33.745Z" }, + { url = "https://files.pythonhosted.org/packages/77/8b/0144c65f0e37e51c18d04ae15c21b19431c165002d0131fe9aa8b0b8b1e8/tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2", size = 102760, upload-time = "2026-10-07T12:22:34.887Z" }, + { url = "https://files.pythonhosted.org/packages/de/32/5d6d8f42fc9a05fce69354e00ff256484192f5f2fc9a2165718fa0de61ec/tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7", size = 112722, upload-time = "2026-10-07T12:22:36.162Z" }, + { url = "https://files.pythonhosted.org/packages/30/65/df18032218db0fb9b769fb23c8039a051f15c811993995ea04c350273a32/tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea", size = 109534, upload-time = "2026-10-07T12:22:37.296Z" }, + { url = "https://files.pythonhosted.org/packages/42/e5/51736d70da209350969e15aca5c5ab6e2ce1ea87a0a892a6c13aec172a86/tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea", size = 163328, upload-time = "2026-10-07T12:22:38.373Z" }, + { url = "https://files.pythonhosted.org/packages/ec/55/086f80dab4ab497602644274e6dea7ec5dd0b4e262e443a8ad3bb7edee2d/tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043", size = 162246, upload-time = "2026-10-07T12:22:39.673Z" }, + { url = "https://files.pythonhosted.org/packages/aa/eb/3ecc94459f3635c92321f4e7bde571323fdb2267c50e19e3188a281eae3b/tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0", size = 272655, upload-time = "2026-10-07T12:22:41.08Z" }, + { url = "https://files.pythonhosted.org/packages/c0/d7/494fd1f0c37a621f1ad9975c2efadb523e8101f144ed6edb2e7fe64738f2/tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b", size = 283595, upload-time = "2026-10-07T12:22:42.222Z" }, + { url = "https://files.pythonhosted.org/packages/70/51/bb8d62b1317e6640866f6949b2d5855e5300f2c99d46de1cd245570bba65/tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066", size = 276253, upload-time = "2026-10-07T12:22:43.625Z" }, + { url = "https://files.pythonhosted.org/packages/66/f4/f46bd7f0763cd47de2db697dca9257c6a4adfd1a93b018cc75c8190ed5a8/tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b", size = 283582, upload-time = "2026-10-07T12:22:44.983Z" }, + { url = "https://files.pythonhosted.org/packages/ac/03/70f2bcb2923a6db37818d917e124270a7f4cfd38ea576f5aa753a91c0ef5/tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68", size = 102628, upload-time = "2026-10-07T12:22:46.508Z" }, + { url = "https://files.pythonhosted.org/packages/dc/98/d52024bb5b0ff68b4f0d276d867f634c84a67319a7e9f6b7708a37742333/tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc", size = 113301, upload-time = "2026-10-07T12:22:47.647Z" }, + { url = "https://files.pythonhosted.org/packages/6f/f2/540db3a70572a8c23a28aba3e9c358ce0ffffbafc990905c1343aa265b31/tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84", size = 109744, upload-time = "2026-10-07T12:22:48.925Z" }, + { url = "https://files.pythonhosted.org/packages/e4/49/caf6b307766eb9567664a8707e9d6be5fcc0e8903f18781c6677a60d80c7/tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105", size = 162899, upload-time = "2026-10-07T12:22:50.088Z" }, + { url = "https://files.pythonhosted.org/packages/d3/c8/68cfce773a2733a49c74f99d627fb461bd990756860099eac25617889585/tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646", size = 162080, upload-time = "2026-10-07T12:22:51.558Z" }, + { url = "https://files.pythonhosted.org/packages/7e/b2/e5bb8651fdad593f670501a7d718b1a7f73f064d44dea15e04c04dfef45d/tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b", size = 273380, upload-time = "2026-10-07T12:22:52.918Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d2/9e2d7f8b1dfe0e2b34c245986ebd55c4c553ea4ce6c47c443b332673253f/tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75", size = 283228, upload-time = "2026-10-07T12:22:54.173Z" }, + { url = "https://files.pythonhosted.org/packages/ba/df/ec7b876b7b1a2718bd74a3743c076fff565b04029ba33e8f61fac262739f/tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb", size = 277189, upload-time = "2026-10-07T12:22:55.342Z" }, + { url = "https://files.pythonhosted.org/packages/7d/7b/e192d9eed0b9cb80da799f4d77052297fb9a2c3cc9b19f571f56ea88add6/tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3", size = 283632, upload-time = "2026-10-07T12:22:56.735Z" }, + { url = "https://files.pythonhosted.org/packages/84/50/ff94454e75461d75623e47401ed323d65c10aab8fe9033242c20cd2fdf32/tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b", size = 103535, upload-time = "2026-10-07T12:22:58.084Z" }, + { url = "https://files.pythonhosted.org/packages/54/0b/bdacf05f963bd6026ebf6eeb0beda847d1d60e03e440725c64a4e08a0afd/tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a", size = 114621, upload-time = "2026-10-07T12:22:59.2Z" }, + { url = "https://files.pythonhosted.org/packages/61/99/53f438fa6ae4f9d4ed0ddde3e7242b3bdc34b48c8f9948b72b9e9b127676/tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3", size = 111572, upload-time = "2026-10-07T12:23:00.479Z" }, + { url = "https://files.pythonhosted.org/packages/b9/20/1f88f19427d380a40e90a770e087489eaafe4aeee070ae88ed2bbec00acd/tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4", size = 171814, upload-time = "2026-10-07T12:23:01.914Z" }, + { url = "https://files.pythonhosted.org/packages/d0/56/cbe5079c9f9a54b9b3e27fc82f08f3cb36edee75561679f53d2380c801d6/tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d", size = 171324, upload-time = "2026-10-07T12:23:03.18Z" }, + { url = "https://files.pythonhosted.org/packages/2b/30/1d53fd3b0f1cb3ba542e345ec32c26aefdddc4e829e4f3429af8a4f27782/tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9", size = 297441, upload-time = "2026-10-07T12:23:04.345Z" }, + { url = "https://files.pythonhosted.org/packages/66/d9/0800acb6a111686f764c1b91ef15cc42a20a66a46013bb42220f1d2c61c1/tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f", size = 307476, upload-time = "2026-10-07T12:23:05.671Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/30a8f3cd51b5bec37f04744bad0b0dc6160df84aad4f27b0e9283d66f221/tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374", size = 296113, upload-time = "2026-10-07T12:23:07.202Z" }, + { url = "https://files.pythonhosted.org/packages/ab/18/0b9ffc597e69c5a1e20a7823cb60d54b39a9f54e91edcb8574f022186758/tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442", size = 307725, upload-time = "2026-10-07T12:23:08.508Z" }, + { url = "https://files.pythonhosted.org/packages/ab/c7/18f8baae0b5607a60e8e19b4a7fedee43a8ff6458e3896dcbbadeeac9c22/tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03", size = 108546, upload-time = "2026-10-07T12:23:09.956Z" }, + { url = "https://files.pythonhosted.org/packages/72/34/4cca9739254130627bde87500b3f2b512154fe2f278efa7e2a5e10ad4bcb/tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1", size = 117814, upload-time = "2026-10-07T12:23:11.486Z" }, + { url = "https://files.pythonhosted.org/packages/7d/fb/afa530d47dd80a78fce43beac6bc6e00f84558eafcffbc6f37b21e80d056/tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0", size = 115188, upload-time = "2026-10-07T12:23:12.728Z" }, + { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" }, +] + [[package]] name = "tomlkit" version = "0.15.2" @@ -3235,19 +2986,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, ] -[[package]] -name = "uvicorn" -version = "0.54.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click" }, - { name = "h11" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/da/34/30e9280707135d2cfc589dfff3cb796bd07a3aeb1a3e415ba09dd89d7bb4/uvicorn-0.54.0.tar.gz", hash = "sha256:a2e33cbfaa0306f8e6b0c13e0cb89d7d7a2da3e62b90c66e18c33d9807b28620", size = 112283, upload-time = "2026-09-25T06:52:37.601Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/38/0c/b54a4fdd7f90a3af8b02ebc9ce6712c2c208b7926a2f7bad95c33ebbe943/uvicorn-0.54.0-py3-none-any.whl", hash = "sha256:505bdb0f318731d45f1f712071fc781a8981f6847a31c902c9f5e652d4f67faf", size = 87427, upload-time = "2026-09-25T06:52:35.829Z" }, -] - [[package]] name = "virtualenv" version = "21.14.13" @@ -3265,46 +3003,48 @@ wheels = [ ] [[package]] -name = "watchfiles" -version = "1.3.0" +name = "watchdog" +version = "7.1.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b3/68/e6aa0b77d217b31f8f486ec0cdfe5e00e6e38dc0be657e7d85819b9faf0a/watchfiles-1.3.0.tar.gz", hash = "sha256:99aee4a07847c06820765fd7b1b49ceac4f3f711ccb7d104655a33231de1c207", size = 108119, upload-time = "2026-09-21T09:08:55.664Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/68/fa/c0b840d5d8bafe640925408ce11095948c8945bb61be1e67d0ab629b872a/watchfiles-1.3.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:000b9688fc8133037a8b075c8ebf98f32844ff8964dda61e85c1db547dafc441", size = 399703, upload-time = "2026-09-21T09:08:13.518Z" }, - { url = "https://files.pythonhosted.org/packages/c7/8a/894799b485fe9473ad10422a0d9668e53fb78e3a2b5cc6061159572844ad/watchfiles-1.3.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:bbc1198edfdc90fda0600f825aa94150f428dfcbf8138746f55998e0e660d64c", size = 397647, upload-time = "2026-09-21T09:08:15.16Z" }, - { url = "https://files.pythonhosted.org/packages/5a/61/f277cd5ead05f5d37b98b41fbdd0c943ee0c04d49738f62e902cb291cf43/watchfiles-1.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4af9c464d410e8c44b58ddf1cbec7c3a02c1cb2c6c80df9c74659ba2fbda0ab5", size = 454994, upload-time = "2026-09-21T09:08:16.587Z" }, - { url = "https://files.pythonhosted.org/packages/46/66/ea4c01382975e53b1ac1b0a0ea1b353416b8127fb6e04f5c1c313119aab6/watchfiles-1.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:eb94e40b9a0db19636b5e3fed0a9803452ecc7381df13b385272abb779ee83ca", size = 460105, upload-time = "2026-09-21T09:08:17.961Z" }, - { url = "https://files.pythonhosted.org/packages/31/c3/1a501b597817096c9831c255f6270c124ce0e2faeb74124be24dcc93b86d/watchfiles-1.3.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7398930a2b76b9dc67a4e6b8bfc7baf30946892a86f417a3920c07bdd6febc30", size = 493761, upload-time = "2026-09-21T09:08:19.327Z" }, - { url = "https://files.pythonhosted.org/packages/5a/16/77352d05e152c7786a016e9f1decdb4507e8aa5bcf3343c72142a0413d14/watchfiles-1.3.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:025b108f2d5cc2799cb941f79380df3e8b22bfb589c218e801767fe78d598c95", size = 577500, upload-time = "2026-09-21T09:08:20.723Z" }, - { url = "https://files.pythonhosted.org/packages/95/fe/81001c55b24466fe9911135e50269fd3a29f43e446627a92adfab54553b6/watchfiles-1.3.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:be9ef3cd403d756a304a0a08a112163c63da7ec72c8c9d083c98818291ff8f29", size = 469209, upload-time = "2026-09-21T09:08:22.346Z" }, - { url = "https://files.pythonhosted.org/packages/8a/cf/e3ad894ed5909a7c44b0707e89bc25d19a3d78b3a7aec846119443b6ae56/watchfiles-1.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b5768b49e426fd5b550b012c866db347cdf15c398ef98dc557b6e6b72fa74cd1", size = 458353, upload-time = "2026-09-21T09:08:23.7Z" }, - { url = "https://files.pythonhosted.org/packages/7f/f5/2f106829e6e2bc91ad74614730f6df484202b9a4d20d927dbf2f08d37d44/watchfiles-1.3.0-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:d36c72fcdc08f143d87316a4c4c3b064e340da2c7383d39803950740ed418935", size = 468707, upload-time = "2026-09-21T09:08:25.167Z" }, - { url = "https://files.pythonhosted.org/packages/15/37/2741ab776b978669c1f3bba1e573f1a184f727ab8b4d3a6d9c61090800ed/watchfiles-1.3.0-cp310-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:f0c9865240e065a2247f4b5248528ae3d01e0e8ae071462c250c884dc16e3ee3", size = 632510, upload-time = "2026-09-21T09:08:26.532Z" }, - { url = "https://files.pythonhosted.org/packages/48/64/db4a4684275fe9b696ee5118c194705c1423b3d42181c3f8ee70194d5c73/watchfiles-1.3.0-cp310-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:380f513d26cc2e598266b88d66456e07d67ef4be8f0f435a1154d9c44b43d509", size = 661723, upload-time = "2026-09-21T09:08:28.004Z" }, - { url = "https://files.pythonhosted.org/packages/52/80/95ddb24f6a2f595c031c24432ab7b8aa7d6d1ada0c6d63a552166e06e8d1/watchfiles-1.3.0-cp310-abi3-win32.whl", hash = "sha256:509d9f74d2bec5c1f4cd868ddcfe0c9601f7ea53066dfcb19d8ede742c4de661", size = 277761, upload-time = "2026-09-21T09:08:29.335Z" }, - { url = "https://files.pythonhosted.org/packages/48/a1/1c4a1b3c8030cd03206232612be8a6e8799093490c220b0fcb935d02b75a/watchfiles-1.3.0-cp310-abi3-win_amd64.whl", hash = "sha256:1acabde19b67e673274e89a04d613b7fb1f122e2c4b8ec9a581e59c149264b61", size = 290643, upload-time = "2026-09-21T09:08:30.45Z" }, - { url = "https://files.pythonhosted.org/packages/82/e0/d2db577c632d26d08078c4390dd870b8555c4e558df25d22270f0166c71f/watchfiles-1.3.0-cp310-abi3-win_arm64.whl", hash = "sha256:d978cc1dd7ba44f5590d7de74f7a9c8be7262d9e469c2c0efb8bbfc2574321dc", size = 285510, upload-time = "2026-09-21T09:08:31.561Z" }, - { url = "https://files.pythonhosted.org/packages/4f/55/a122743607939429ab6a7272672f49303aa02bbd34c3f06676765a3861de/watchfiles-1.3.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:e0204f90677b7fb8d3a824279a71a01166bea9f6e53923b8056592d87b33b0b6", size = 395978, upload-time = "2026-09-21T09:08:32.747Z" }, - { url = "https://files.pythonhosted.org/packages/3e/9d/0ee1b0ea42acfe72afa2484f0222e2386dd09992e9034a81e63cc3cdab0a/watchfiles-1.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7c1125e99f84934a92996ae343501285617373acd66f16b59fd5654b27ad8d80", size = 387997, upload-time = "2026-09-21T09:08:33.953Z" }, - { url = "https://files.pythonhosted.org/packages/b7/f2/4319c6b683e8bd28465dfc53c750617a2a07f072eb2e3ab0182ccf812229/watchfiles-1.3.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a85e243c87109d9f48a2e0d10d6abdee8768cc114848b32281ec83d7f81d86ef", size = 448067, upload-time = "2026-09-21T09:08:35.104Z" }, - { url = "https://files.pythonhosted.org/packages/b7/71/9f37ac192a51a24de3a2d7fe9aac1e99b2b2668300674ff7a9f85d95beb1/watchfiles-1.3.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:dd538c71766c59c732e2c5cedc39323c99c11897b99f93eac773438e54af206a", size = 452881, upload-time = "2026-09-21T09:08:36.238Z" }, - { url = "https://files.pythonhosted.org/packages/34/07/1224667c32a4a96876ddd642da69733cbfe6a15897db0865aec5a882cebc/watchfiles-1.3.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:da213822ec9082b62cadf3008e07a8c690ec7a3c89f6dc5e55a8cf07b56a1b26", size = 484802, upload-time = "2026-09-21T09:08:37.717Z" }, - { url = "https://files.pythonhosted.org/packages/bd/4d/7f29cd87e1f826df86fc0418d0b8f370ca0311c29c618406dc492aad9951/watchfiles-1.3.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d4593392e87669836670f87d62fc754059eaeb0e6157af44060a46558cebe5a3", size = 567522, upload-time = "2026-09-21T09:08:38.94Z" }, - { url = "https://files.pythonhosted.org/packages/e3/ac/3aa1f84abd4dbbfbae99a817dd931f77b439261c911189cad4c30fdfd470/watchfiles-1.3.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:26b81bc515a0f03f66a69a6fea86eea54c8eca4173c46dd7222569f79dd2f977", size = 461997, upload-time = "2026-09-21T09:08:40.142Z" }, - { url = "https://files.pythonhosted.org/packages/82/1c/27c66764d5b0dbb70a36770a32eca217eba739c28b24e8583a035087a3d7/watchfiles-1.3.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca39661934749df580d89f3dde266f2af7c6968f4c21c72ce2dc387d299e6aa7", size = 451856, upload-time = "2026-09-21T09:08:41.305Z" }, - { url = "https://files.pythonhosted.org/packages/1e/b3/a45827084d953c1d0dd3d75abf85dcac26a0f5d115ad2fe0b7e9e931573b/watchfiles-1.3.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:04c5500faa725d69a99b0f63750e80795e455bb951849e9c98a811b4324997c4", size = 459889, upload-time = "2026-09-21T09:08:42.58Z" }, - { url = "https://files.pythonhosted.org/packages/7a/3d/07740d23ce2bb23419bb24055c435a9abe5fe03efdaea1ba0720b831aab6/watchfiles-1.3.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:ec3cd4bb181a7b6329134204c2277c7144ab5f62cce9c5335d6f901ee7ce8d6a", size = 624482, upload-time = "2026-09-21T09:08:44.064Z" }, - { url = "https://files.pythonhosted.org/packages/91/46/9540f8123eaec86df989f26d7704cad0448d9fb7271763a4f8f9fe23617d/watchfiles-1.3.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:e5871d4a7f788a9f64fb06f5793389d29d171e5c32d37c3ebfd520b017cc7694", size = 653724, upload-time = "2026-09-21T09:08:45.257Z" }, - { url = "https://files.pythonhosted.org/packages/25/9d/b9deb52f1e4528ffe44338c5ebab95c32ed79203082da661de50288e130a/watchfiles-1.3.0-cp314-cp314t-win32.whl", hash = "sha256:81c989d7267bfb7b676cd32c83bec97914e396870983cbf493e29415037bff5e", size = 270863, upload-time = "2026-09-21T09:08:46.518Z" }, - { url = "https://files.pythonhosted.org/packages/59/59/8b1881afccbafda06248be4185e28034dd73c80c85e4da24f2cb0c1321eb/watchfiles-1.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d754e049006e81a9be49dc78ba7802081cee426e968cbc63ee19e164fa2d0e39", size = 286879, upload-time = "2026-09-21T09:08:47.874Z" }, - { url = "https://files.pythonhosted.org/packages/46/dd/41c12ae9745d5d72f709333287679d71cbba68ad7678fed872207bba94f4/watchfiles-1.3.0-cp314-cp314t-win_arm64.whl", hash = "sha256:a5b631db08fd3032db57ec6a92d1777cd60f88803287e4e941a4858c53aab1e0", size = 276924, upload-time = "2026-09-21T09:08:48.976Z" }, - { url = "https://files.pythonhosted.org/packages/cd/eb/289fec71eba51d6c3ef3a28c81f7213f4e860084ffae5abc866933c564f0/watchfiles-1.3.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:45726c6b5a8d67c8087eb2933c4398948546d04206ef40f629dc4881d65d23d1", size = 396932, upload-time = "2026-09-21T09:08:50.217Z" }, - { url = "https://files.pythonhosted.org/packages/92/cc/a3c3f557992a20a5bb24607f0da44d39cf6d6ba3f8f6ed7cb31f6c73371a/watchfiles-1.3.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:6398d250994baff581147ccba846223076fe6492ca93c0d1b3588fcf5355eb5c", size = 394852, upload-time = "2026-09-21T09:08:51.412Z" }, - { url = "https://files.pythonhosted.org/packages/55/65/d45763a5e1108a65af85a217af2930ebf1081c73fd8169d3f75e586992bb/watchfiles-1.3.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:591de392458bca26f6130fea4e667c06b657e873ad334ea06fad5a79f5086cef", size = 451789, upload-time = "2026-09-21T09:08:53.144Z" }, - { url = "https://files.pythonhosted.org/packages/02/96/165c6e540bf765ca1115062017adf861d0816525f02464ba71313fe7cf92/watchfiles-1.3.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5ec46a1ff4c1d81405a5fc645abdbff5e4e9388f7c9a6cdb392316a7c29b884f", size = 456919, upload-time = "2026-09-21T09:08:54.372Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/e2/55/087e45c2a3ed8223bc9f30d6b65f051de35513cfc30c989c2b1a14bf862e/watchdog-7.1.0.tar.gz", hash = "sha256:d3861e255416f49a1384474cb2efa097de165fb330d4c5432ce6708b509ed922", size = 218748, upload-time = "2026-11-05T09:33:21.28Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dd/d7/e6d9c38630aa844ea4ad7f2d66924926fc1f73ed770ec7f3caa773f6b874/watchdog-7.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:be3f5f953b11bde13ee3c54ae740948f61b01b6b79442f92ff5b9d0c15e5b7e7", size = 120911, upload-time = "2026-11-05T09:32:28.095Z" }, + { url = "https://files.pythonhosted.org/packages/a1/78/87400e56145c88bf6b53474110009f3bc20edfea3b8e6bfcd20faada84d9/watchdog-7.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a79b77db565ae3bc9ff490df2ce51a4bdd6b344a99732055e828e8dadaaf1c97", size = 112978, upload-time = "2026-11-05T09:32:29.511Z" }, + { url = "https://files.pythonhosted.org/packages/bf/3e/dd912eaf296c3c5e279b8e6824fb0cb103523a1dae209667c1221f205480/watchdog-7.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bb9182d0b0b75a78137ea9ae8d74943e53ebc3fc5ea11178fdb3da32ced6ef18", size = 113552, upload-time = "2026-11-05T09:32:30.829Z" }, + { url = "https://files.pythonhosted.org/packages/59/14/40662f61f6e09f6a0371d95d916f6fc134825a7937b3ebff08cb6be433a8/watchdog-7.1.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:5047bc32663aa6c8a720940072a64cd648f4c6c6f34cd43592719bcc880b7465", size = 120967, upload-time = "2026-11-05T09:32:32.212Z" }, + { url = "https://files.pythonhosted.org/packages/83/dd/a36aed1934abf1b9a827f5d5b4fab23de395526eb1bc40da34aad9f2d589/watchdog-7.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:24bf3345278ed7861438cd1ff162888e955250124d1e3c122f9be1d5c2a142c3", size = 112992, upload-time = "2026-11-05T09:32:33.631Z" }, + { url = "https://files.pythonhosted.org/packages/a5/4d/a490bcebc20c0c2781b0e1b2674245354502c9a62b274cc41859f4b269cd/watchdog-7.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:84a196f6259d18ce53cc58f211f7d0184939dbbfaaebae6efc509cec333ba9ea", size = 113581, upload-time = "2026-11-05T09:32:34.752Z" }, + { url = "https://files.pythonhosted.org/packages/c3/1f/804e62a8895212f436944ea2f13cdb3e6a7e2570b14f3723d3fef2bc9db7/watchdog-7.1.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:33501d3ab5627e41b6230d5f92e651ea843b1d236cf2b135959dfda2d42d2f69", size = 120813, upload-time = "2026-11-05T09:32:35.831Z" }, + { url = "https://files.pythonhosted.org/packages/30/35/59365fa94ebc1cddf89a21752eb17afef037bd534d63ab1800721540e5f4/watchdog-7.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:531f1a21bf0d37ea82be9a717ab92c05ab6f2f32ec6c1f2e7a748f9cfd21c8b2", size = 112905, upload-time = "2026-11-05T09:32:37.371Z" }, + { url = "https://files.pythonhosted.org/packages/41/ac/d4d6fb1bd6f25b614fa7150629b8eb3e30f7ded82f63a19b4427b140475e/watchdog-7.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fb84cdb12a3c4c273d71e4e5a4f76861fbf8f49bc9ca5be86f085ab6f57c683f", size = 113516, upload-time = "2026-11-05T09:32:38.48Z" }, + { url = "https://files.pythonhosted.org/packages/d4/8c/a25dac9642a4962d70cace9ffbb9ea4e575e6a61412ba5c80569460e0c81/watchdog-7.1.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:a0fdb62a48b5073ea3bcca29b9910f1cbde1026ab8bffb87a69b112bf6d97d1c", size = 122360, upload-time = "2026-11-05T09:32:39.85Z" }, + { url = "https://files.pythonhosted.org/packages/c7/56/b262a7c5acb47cb7eebc0cb25ded697ac4fbfc2d65c3a505a210ecb2b2e3/watchdog-7.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:8b637a1525d7e23548419368485bf1de931aca4c9e132e89a41bad52ff435fca", size = 113003, upload-time = "2026-11-05T09:32:40.873Z" }, + { url = "https://files.pythonhosted.org/packages/e0/5f/5133b328bae8ec5fab02c329c4364445459d678194c42457c9721b6f64ea/watchdog-7.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:b1a669c90ae6dc734f2a5a417f15ba30d5ef41d890bc28aef161d51bb62b7882", size = 113518, upload-time = "2026-11-05T09:32:41.924Z" }, + { url = "https://files.pythonhosted.org/packages/13/e1/0de47b185b82317696f59c0f0b9bb105f6492d6d3423cb1535ce60f70c2f/watchdog-7.1.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:4332ae52b5e530d2c25a8525d765f1d34e595cfb07096c6b6368f9da10b5a8bf", size = 123108, upload-time = "2026-11-05T09:32:43.453Z" }, + { url = "https://files.pythonhosted.org/packages/56/f7/84b94e50c73479a291733027bd572336ba5b85dca27c18982186293bd8bd/watchdog-7.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:701586db59c9c421389e2e007713a821d934c3d83d034f0cafa95516a422758d", size = 113369, upload-time = "2026-11-05T09:32:44.689Z" }, + { url = "https://files.pythonhosted.org/packages/12/71/a6e482e81cb7ebe9f2aea7955254dee2865ea99a580bfeceaf53c274875d/watchdog-7.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:d4c9804d3db8e18659cd7cd968e2dbb31a655d12fcc07ec54df5ae47ff929f50", size = 113900, upload-time = "2026-11-05T09:32:45.742Z" }, + { url = "https://files.pythonhosted.org/packages/2a/ab/0c57f765c0b29534e12ca4aa69fc0b1cb8437ed307c4250887ecb400d8e8/watchdog-7.1.0-pp311-pypy311_pp80-macosx_10_15_x86_64.whl", hash = "sha256:cf55c6108cce5c590661ebf3345d5203b6c6455237d73122a64acb74acc6a920", size = 112010, upload-time = "2026-11-05T09:32:54.588Z" }, + { url = "https://files.pythonhosted.org/packages/67/f8/755e32b082b3b27c3f4730874dc09d11eed5c39ffbe512d30e2662e917b8/watchdog-7.1.0-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:b390a8a0b85a93882d2ad27cbcc222e1e93293a5410d2ceffb48c0fdb38e0b17", size = 112577, upload-time = "2026-11-05T09:32:55.7Z" }, + { url = "https://files.pythonhosted.org/packages/33/7d/1d661f910c1f3717603b3eea0e3bd5540c7a76221371ae24bb42e0e3b049/watchdog-7.1.0-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:550ff9204139b6d759cd37210935bb88f6aac42542ad17516edaf17c9b35fd41", size = 112168, upload-time = "2026-11-05T09:32:57.02Z" }, + { url = "https://files.pythonhosted.org/packages/b6/29/f3b91fe0ef86c11f508de1c189054e2b4f00be8da6043e96130f841697d0/watchdog-7.1.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:22d8869d9cb822c735923eea39d9279f03d5fd23e6d325800ac9e402e34c0a28", size = 112671, upload-time = "2026-11-05T09:32:58.143Z" }, + { url = "https://files.pythonhosted.org/packages/b3/5b/1e62e5ab365634f84afe91f8fd78563c71226056d57e36d5fcba9d99b536/watchdog-7.1.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:dbd4e701a31b9bfa686bd831177b433695f5e4dabee6aa0bdf4efcf6f0fd5b9f", size = 103268, upload-time = "2026-11-05T09:32:59.401Z" }, + { url = "https://files.pythonhosted.org/packages/6e/0a/1da133041dfa1ca8d512e06485ce82dd2a9af7b6cc4fe9c277008380d10a/watchdog-7.1.0-py3-none-manylinux2014_armv7l.whl", hash = "sha256:d47f3067eb77a83d04de1cac214284da604f960eaee9816d7ebfd01a165b4175", size = 103269, upload-time = "2026-11-05T09:33:00.478Z" }, + { url = "https://files.pythonhosted.org/packages/e5/b4/3c9142add82c134fcbb748cc23e52603519679dddc4b5900d83e473d0648/watchdog-7.1.0-py3-none-manylinux2014_i686.whl", hash = "sha256:400788184d62c0e384da67de4d7fcb892bfeb064b2e59a7d1a1dccb9ff4b49bc", size = 103267, upload-time = "2026-11-05T09:33:01.522Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d3/dbbc79e5ce139516cad0b88ec08df27fd00ef478547c0e584951f2c687b3/watchdog-7.1.0-py3-none-manylinux2014_ppc64.whl", hash = "sha256:b76e3ac088550b33046c4eabacdd7dd4cb9db9147c8749b202643a4b5c2433c8", size = 103266, upload-time = "2026-11-05T09:33:02.614Z" }, + { url = "https://files.pythonhosted.org/packages/7a/ad/721ff870f9ecf25532a07d58fb677764e17390a46b675486bf23ce278873/watchdog-7.1.0-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:d94d0bcf30a9ea5ac5387df290b9e175c04747558c33443d2b0f763471699531", size = 103269, upload-time = "2026-11-05T09:33:03.694Z" }, + { url = "https://files.pythonhosted.org/packages/ab/4c/dfe0265c572027b2af9e824c6370a6ca39da33c819a99af48ddbc0cf1706/watchdog-7.1.0-py3-none-manylinux2014_s390x.whl", hash = "sha256:cbae4a087f712bac4086e653273a949f86e2f908d16f157fd3568217e0c07cbe", size = 103268, upload-time = "2026-11-05T09:33:04.738Z" }, + { url = "https://files.pythonhosted.org/packages/98/4d/60e1c38c27973d63f8748cfe8da70bdf698d1c1ab0e94fd18de15b3044fe/watchdog-7.1.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:77f06d709fe5d766ec51ec07b79773f5e29a0b3c4c3d195cfc7aa1e909fa566c", size = 103269, upload-time = "2026-11-05T09:33:05.95Z" }, + { url = "https://files.pythonhosted.org/packages/72/88/9190129165760c76191f4711b64a728d1bff02de74649c675797ae253f26/watchdog-7.1.0-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:48db8dd8f9f92359ca5d4bccbd82be814facc3f57feaa3c67be964cc86b1dc33", size = 103270, upload-time = "2026-11-05T09:33:07.48Z" }, + { url = "https://files.pythonhosted.org/packages/5e/6c/1c3a9066266b5c3f0db9146422f67e5d13781b2fb1b9e777ead5553fc1a7/watchdog-7.1.0-py3-none-manylinux_2_17_armv7l.whl", hash = "sha256:a47d6e1418d7ed80f69454fb7f000ded554363209f8b04b812bf46b6c9e3093f", size = 103268, upload-time = "2026-11-05T09:33:08.639Z" }, + { url = "https://files.pythonhosted.org/packages/40/6b/aa8fb28263d3965f91228ce9b251a786e36060a3571f4d724b2fab44a1c1/watchdog-7.1.0-py3-none-manylinux_2_17_i686.whl", hash = "sha256:71b0ebfd5b3ffe7cf53143f2ab63fa5038ca190fc10782ec23202765a859b057", size = 103268, upload-time = "2026-11-05T09:33:10.041Z" }, + { url = "https://files.pythonhosted.org/packages/63/bb/8757c54c6dcb0edcc514a47b0dc026f8751a266b6c320a0df8830d9f89a4/watchdog-7.1.0-py3-none-manylinux_2_17_ppc64.whl", hash = "sha256:c71bd120d57b16c2c49abd55d74d3c83f984e19024249ebe7ba4dc4903eb27ee", size = 103268, upload-time = "2026-11-05T09:33:11.147Z" }, + { url = "https://files.pythonhosted.org/packages/79/47/bdd6c0176695fb5b44fa9164ab5aa3edbefd322eea7dc584073fe7bfe67c/watchdog-7.1.0-py3-none-manylinux_2_17_ppc64le.whl", hash = "sha256:a17f37720ea088430754a7cc5869fad93915c69eaff8d5284adbac41f1befaaa", size = 103268, upload-time = "2026-11-05T09:33:12.264Z" }, + { url = "https://files.pythonhosted.org/packages/e6/99/13406d1424ed4a8796a800016d21ac6fba3ba9ac508cc860e97ce352f14e/watchdog-7.1.0-py3-none-manylinux_2_17_s390x.whl", hash = "sha256:89f78b2b1c153715463e27fc86f0f95fd4dd6cb07a2cdad932fe01840101fb5a", size = 103269, upload-time = "2026-11-05T09:33:13.414Z" }, + { url = "https://files.pythonhosted.org/packages/bb/28/96130c970c236e4278a188cb6b8dec2500ff395ddcebb74c6171f5fc6069/watchdog-7.1.0-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:ad6d0b473cb8cde0721692b22b30fcbea8b52102430528874b3593549888bd81", size = 103269, upload-time = "2026-11-05T09:33:14.916Z" }, + { url = "https://files.pythonhosted.org/packages/17/54/312036da06d83b4a21d25a0d83643d2a9b2188eb2e5031e52fe82eddbe0a/watchdog-7.1.0-py3-none-win32.whl", hash = "sha256:9c937139c8afdb26405639309956352ef72c453006e772e0cf5c0bbc0d1cba82", size = 103255, upload-time = "2026-11-05T09:33:16.394Z" }, + { url = "https://files.pythonhosted.org/packages/5a/bc/c04fbb2d6366afb0850e39c6d848f2d38066ff6dadccc886b3cb12c39e32/watchdog-7.1.0-py3-none-win_amd64.whl", hash = "sha256:16a5ba8694587cdbeae4ab8e6434cece994f9cce4e5bab03e61e6d1a0a93a643", size = 103260, upload-time = "2026-11-05T09:33:17.687Z" }, + { url = "https://files.pythonhosted.org/packages/92/9c/5a39ec8880c08e50f75d90f4e0e27b95dc91a04deb5e6e04871dd4b7e006/watchdog-7.1.0-py3-none-win_arm64.whl", hash = "sha256:5ed4b94365c53ffd51d88e47ca48d6afae02fb1bd849175a9a10927a2fbfb932", size = 103260, upload-time = "2026-11-05T09:33:18.987Z" }, + { url = "https://files.pythonhosted.org/packages/c0/aa/7a7210433e000f2491ddec7756d312009b0a47847e5c3457ccb03852cfdf/watchdog-7.1.0-py3-none-win_ia64.whl", hash = "sha256:0cfc5a6b3d4e76fc3e18fd371ee79d57945004da4105b589f71bb16966fd3e67", size = 103256, upload-time = "2026-11-05T09:33:20.159Z" }, ] [[package]] @@ -3335,127 +3075,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/6f/0c/309b1813b230d1dbbd6f2c2ab2bb21ef68992358977605d9ef289bbfedcc/wcwidth-0.9.4-py3-none-any.whl", hash = "sha256:901eace6d2dd25ebb917d0ce5db18e5c537e1504c905cf32f0d006c12098b05d", size = 301806, upload-time = "2026-10-24T18:10:52.651Z" }, ] -[[package]] -name = "websockets" -version = "17.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/30/4b/4692be6d5bf739ed049b3813901c42091f8c054df89d5c089343823dea0d/websockets-17.3.tar.gz", hash = "sha256:1c7dd93a1c9f89297471493674b1fc1d9467cafd45374f2172213046bdb3a329", size = 188878, upload-time = "2026-10-19T16:58:05.813Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/b8/282f114a67886fccde02a77ff296501ad7fea25f4d696b2b1b337cbd27da/websockets-17.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:45cc1ccb12ced6d242335159e8221733c8696da5ad0b6ceef6debb0f5ce89110", size = 218223, upload-time = "2026-10-19T16:54:25.998Z" }, - { url = "https://files.pythonhosted.org/packages/8b/ba/8043c303aa60af053e092c1d667165f46d6729217ce2af795a23a3cd700a/websockets-17.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:46ae05aa1aecd47d4d7de0f05ce2d1d2eb418f8de614964d754cc3b9a409c400", size = 215908, upload-time = "2026-10-19T16:54:27.785Z" }, - { url = "https://files.pythonhosted.org/packages/21/3d/5d0eaa9b29db6c999a2cf749605141796cff21a5e235b2488bd39dcdcac9/websockets-17.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:43f270a5f21e12db08c73d83849a877c02ab7b7d0fb6e2718b5101d9c810212f", size = 216181, upload-time = "2026-10-19T16:54:29.267Z" }, - { url = "https://files.pythonhosted.org/packages/43/fb/33080a7b2d8427b343056eab32ba78235a4bfbbdc79b5593688c7b7c62ef/websockets-17.3-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2d875224bac1a05a20acade268a7a0e3498e7f8cf890acb7c2b23bacd2bd3659", size = 225246, upload-time = "2026-10-19T16:54:30.807Z" }, - { url = "https://files.pythonhosted.org/packages/61/8c/d4220455cee00adb553c602ba4f1f6a47cd882d86dd9e5124679c0c95c75/websockets-17.3-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:5ad409b7ea102339041281117cf2dadfe71edbb653dc48037cc55d516fb7f448", size = 225517, upload-time = "2026-10-19T16:54:32.182Z" }, - { url = "https://files.pythonhosted.org/packages/75/a3/0ff8e4f0195884ae446844185e81bf7619673d816424b8a58bb5812dd4b8/websockets-17.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56d43c311f3519fb1057b6114dc24e9060bc3fb6aedf4aa11160484154b66b63", size = 226751, upload-time = "2026-10-19T16:54:33.52Z" }, - { url = "https://files.pythonhosted.org/packages/06/cf/82c88e3fbb6a75a62b2997932664bccfe68256661c69144bd48020160cf1/websockets-17.3-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a9eacb382f400bb5865e7e6d24bbe709a84510291e707f169dd4a24ee4a5ac6a", size = 230063, upload-time = "2026-10-19T16:54:34.855Z" }, - { url = "https://files.pythonhosted.org/packages/4a/e4/9131d3b73504902a83d10b1e1244319377ca72755351998ac9c408ba6ddb/websockets-17.3-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f09f145b89ea292cf6c25fd7c8c0d90207fd6a9e54c7828499669996a1e5bdcc", size = 227310, upload-time = "2026-10-19T16:54:36.248Z" }, - { url = "https://files.pythonhosted.org/packages/ca/b2/2208506afb45d181b0d6ccf377d9d79985fbcbf871af02ef4f7f3d405f5b/websockets-17.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:49fb5b4960ebe1bc557b435da8687deef1302a08f030a33c5606fa6fb11b773b", size = 226087, upload-time = "2026-10-19T16:54:37.583Z" }, - { url = "https://files.pythonhosted.org/packages/39/53/da73e3809f1d4e8c3346ca89a4bed7995de5708f2cb14c9359172a85f5a5/websockets-17.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:13cffaedde6e06183860fc92d88fe1d190abda73837fe4c14f5d4803c472f5dd", size = 223360, upload-time = "2026-10-19T16:54:38.91Z" }, - { url = "https://files.pythonhosted.org/packages/9a/7b/eaf828fd414401672e615570b9f2bfd84342b49c86ffb2ae735e4aada32f/websockets-17.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:ef2950896673a9809e8e5ab857525924fbcacfc98b858b0509ccf50d341f80f4", size = 226240, upload-time = "2026-10-19T16:54:40.294Z" }, - { url = "https://files.pythonhosted.org/packages/79/bd/4b6aa6e761c8d89aa6defdd83e40a6b2d9aa21bd01520c8e8470fe8d8681/websockets-17.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:2d08ca4bf5a9cdb6fd81b86b51bd5cfb10527d3a1199888f2b02cc6c6a3d5f80", size = 224833, upload-time = "2026-10-19T16:54:41.939Z" }, - { url = "https://files.pythonhosted.org/packages/37/a8/0a6aea08cad7db2c1aa53dbd3ece3ebc09e420e8301cb02f2b812a728a5b/websockets-17.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5e0c0ed37472c4729f3001066510a656486f08f149dda1ebfd3dfe4450c9756e", size = 225599, upload-time = "2026-10-19T16:54:43.54Z" }, - { url = "https://files.pythonhosted.org/packages/1d/82/3998ea56beb079f43fc39dd5935ef8dc150f915bf2de8bd6ddcd50c0fae6/websockets-17.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:62059d739af7fc035ed6e63c5390118a60a5e9aa5a5541cd0486a83e741842c7", size = 226643, upload-time = "2026-10-19T16:54:44.914Z" }, - { url = "https://files.pythonhosted.org/packages/c1/a5/6568add8d0a2f37c5780c6de62b5b8ee191ca9d2d0b8ff2123b8277c41b7/websockets-17.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:bc6f87d03e3691154673aaa8f08991723d6e3394c83ef2875c7a9049eac9595c", size = 224223, upload-time = "2026-10-19T16:54:46.429Z" }, - { url = "https://files.pythonhosted.org/packages/72/79/b11bc05b0f64d8b14901443a4b01ea80d039cc68b260250b4cb488070aca/websockets-17.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:3d78d93846eddc990551c1c31914d90d71957ca3af468969826f7ed0d7d1d51c", size = 225255, upload-time = "2026-10-19T16:54:47.82Z" }, - { url = "https://files.pythonhosted.org/packages/71/f9/9a8902074db7044b64a05feff349e4f44144a961310d3419bab612f00dd1/websockets-17.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:2a377c7132b1e69be7a50d7434d7f26f69e93c70166ebb6d8f8cabf802ac4506", size = 225494, upload-time = "2026-10-19T16:54:49.171Z" }, - { url = "https://files.pythonhosted.org/packages/99/ba/7b873060ce6764207a24c10e81294739abffe2a90dc67c7f7db5042c596c/websockets-17.3-cp311-cp311-win32.whl", hash = "sha256:29b01520c39ef2f23c88b002f11e6ef4165675f6c92f5f3578fd587d69b5a5fc", size = 218720, upload-time = "2026-10-19T16:54:50.501Z" }, - { url = "https://files.pythonhosted.org/packages/28/11/7469f3f28513ec0d43f10b1c88bf970b0b6f0aa8190c42731954297e824c/websockets-17.3-cp311-cp311-win_amd64.whl", hash = "sha256:d338813a440bf6d2f0df55140d3f3080284410b1ebfe9df50e3847bcdb1a17bb", size = 219017, upload-time = "2026-10-19T16:54:51.843Z" }, - { url = "https://files.pythonhosted.org/packages/bc/fd/4724610baabbba94a44c5d1cf1b1a33ff77031e94a51addb0387c7f56b10/websockets-17.3-cp311-cp311-win_arm64.whl", hash = "sha256:6a8248b1ba8861e48e4c7ced3895a1264d2a3b617de72ec94172ce6e64bf16c7", size = 218950, upload-time = "2026-10-19T16:54:53.37Z" }, - { url = "https://files.pythonhosted.org/packages/0d/29/902ffe19c0d35603102f31490dea342f083bc77d8f8bcdc7d8b16f5810f9/websockets-17.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:41665c7ea01d3ae497a0c61fd22d3424230d18782a5fceb79f04db9ccb2042c9", size = 218250, upload-time = "2026-10-19T16:54:54.718Z" }, - { url = "https://files.pythonhosted.org/packages/f0/66/f56a2637b1aac263205b0e3cd7b2ff2e2f8b404b8118c991f4d122fd381f/websockets-17.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:8f7469408740cf06a79b01605f2ae0b2acc8839c03fcbbf05da49baee12d3302", size = 215927, upload-time = "2026-10-19T16:54:56.124Z" }, - { url = "https://files.pythonhosted.org/packages/22/7d/a27f25451c4cc62141992b51005688481210f3d3e63de3dc66f9e882ba59/websockets-17.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d68da281ac208b6236ffa8beef23fe7c7c956d8bf09b421d447232fd94441b35", size = 216196, upload-time = "2026-10-19T16:54:57.538Z" }, - { url = "https://files.pythonhosted.org/packages/9f/77/40bbc1a5c016cf9f598dea21d1250a93245c995eafaec6401d0e4eb4e647/websockets-17.3-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:078d1d41f45ee34eed5a4f3bbe7c588caecbdd6e12dfca73e8c1b0e803773793", size = 225516, upload-time = "2026-10-19T16:54:59.104Z" }, - { url = "https://files.pythonhosted.org/packages/3d/9c/91889c8c62fb7d16cd58e3074473a259303d6229bf0ce496aec87e66f3dc/websockets-17.3-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a7f391838e8adcf1f2fe71561d9e5a9f74ea7ffa5052eb2db329aac677383136", size = 225795, upload-time = "2026-10-19T16:55:00.438Z" }, - { url = "https://files.pythonhosted.org/packages/b8/29/2e5e2158e9920f806cd45f3cbc81cf5f3eef2b9e5a74b9ef049e2a3578e3/websockets-17.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c15a165673bb3fb57facbf040edf5c0556d20ccd2e0ccc5f23ebb69fb715fdc1", size = 227034, upload-time = "2026-10-19T16:55:02.065Z" }, - { url = "https://files.pythonhosted.org/packages/b6/af/fbab5c4098b26026b877bfc139b1ea0d7c6eaf7a86b84544933b4c445f82/websockets-17.3-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:28d1935c16782a1e3650c9baa79069b016fff739e292e4cb14bbb830d6930491", size = 229863, upload-time = "2026-10-19T16:55:03.415Z" }, - { url = "https://files.pythonhosted.org/packages/ac/72/d6e460a991607794072fe3fdfcb3221a0342af61586f5bd7ea40bddcfd21/websockets-17.3-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c534c9524a2acd0b97b7022074bec3784ac273c683cf9535087e437672ea8531", size = 227669, upload-time = "2026-10-19T16:55:04.763Z" }, - { url = "https://files.pythonhosted.org/packages/ec/8f/1c7da1cfb632e141e019cf2e0bbbd4e6dc8c198c8cc29544e4acf1a89f56/websockets-17.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b459d29c8b82a420a98fa0ce8e9cf787ce0062d98cc90604ef9574fb3cc26ff8", size = 226429, upload-time = "2026-10-19T16:55:06.112Z" }, - { url = "https://files.pythonhosted.org/packages/3e/63/c48ef8bbfbd982f2cfae1cfcf9e63f5bfbb8468fd37ca700507efc0b0007/websockets-17.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53209dffd91b0aefed9ea630fa6ad5c2944d6210ba3a8a3a8664dc1575289b14", size = 223653, upload-time = "2026-10-19T16:55:07.473Z" }, - { url = "https://files.pythonhosted.org/packages/cb/37/7bedaad48ae8e89eaa4f3942c11be0c41de77ce2118a475f3ba05e9b5a0f/websockets-17.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9662a9fe457820c60365b3209e03cbd8e4a817195d55de65a80fa680b4bea136", size = 226465, upload-time = "2026-10-19T16:55:08.791Z" }, - { url = "https://files.pythonhosted.org/packages/33/cf/ab9a8a0de4769ca1dce392021b6a922e21b4d3687fe9e1ab4db585a088f8/websockets-17.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:5670a762c7ae388bf8aa04199fd436180a4d28318dca9c1eae7b38604676dbfd", size = 225071, upload-time = "2026-10-19T16:55:10.127Z" }, - { url = "https://files.pythonhosted.org/packages/89/96/64d8460cec95f873c61c6d13a09b435915150640525ae56d5871400aec09/websockets-17.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:ed59cb4ee258674a6ed9b8515e42079db02cb3be94f133fdd3f200183a40c49d", size = 225841, upload-time = "2026-10-19T16:55:11.519Z" }, - { url = "https://files.pythonhosted.org/packages/a6/98/2b83211ee3087db4ae66533782664c0e283cf4a08cbb14036018d0803e09/websockets-17.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:0f78bb2e82fe88912c9d7b25c98e57a9b08655579af89f164fd4c0657a075d62", size = 226945, upload-time = "2026-10-19T16:55:12.85Z" }, - { url = "https://files.pythonhosted.org/packages/9f/fe/6b2a37d422d7f4dfc0c92c95a14649d9bd662243ed8b0774523ed2703604/websockets-17.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:71250e010eede33c1d638e2c7a98288520d67f782fd5eceecaeca3129233a09a", size = 224502, upload-time = "2026-10-19T16:55:14.48Z" }, - { url = "https://files.pythonhosted.org/packages/0c/c5/364015c9311c89ea6085d54c70d654c5d27ba05014d44ef9fd9daa09462b/websockets-17.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:729989759feb81ff6493879a0d60a0bd7d2eee41001bbec0381a080318439382", size = 225483, upload-time = "2026-10-19T16:55:15.899Z" }, - { url = "https://files.pythonhosted.org/packages/c2/b3/75d0cae8398816ed34a16a78252bfc8651f2f883cc5a568e1198395f15df/websockets-17.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:90d8c4fa5ba293cf92de351fbc292cdaadb1a1d58d031a1a97ff9b8fb6250ec7", size = 225761, upload-time = "2026-10-19T16:55:17.28Z" }, - { url = "https://files.pythonhosted.org/packages/f0/af/9a7c4b2e87f47a2a6a066acdc2157e9b7cb6222a224b95a432f54ae786ce/websockets-17.3-cp312-cp312-win32.whl", hash = "sha256:0824e6ecee838cc28e6481062574c7fde49f9a2cedfacd36f0e91cb4b37fd6fe", size = 218722, upload-time = "2026-10-19T16:55:18.658Z" }, - { url = "https://files.pythonhosted.org/packages/f7/e8/e52953a8280a1e51cb9307218443f68c8f4dc4b9952db6021d5c12d03c0f/websockets-17.3-cp312-cp312-win_amd64.whl", hash = "sha256:6644eecd99c4e8cdf72e646e17b391bb70b054f44becde37dcdc48cbec7e1527", size = 219024, upload-time = "2026-10-19T16:55:19.987Z" }, - { url = "https://files.pythonhosted.org/packages/85/a4/005eb7c1f5c1a249c1231a6ed83a54ada0b6b8ffab33a608ca20e3034ea0/websockets-17.3-cp312-cp312-win_arm64.whl", hash = "sha256:4a9133dbaedc6f1af358127275676171d9a1bb3e61f47ee62b2ff9acb78af3d0", size = 218950, upload-time = "2026-10-19T16:55:22.161Z" }, - { url = "https://files.pythonhosted.org/packages/ee/1d/c1f4a1c45c5ca2c35ae9fd7cac0e491f8a014c9a86933a5da7b04ff825cf/websockets-17.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:52a2ca6f401fb49a8d5d9e0e48ade5f58f1bdda33132907b0e4e3b702628fa4e", size = 218243, upload-time = "2026-10-19T16:55:23.851Z" }, - { url = "https://files.pythonhosted.org/packages/4e/e8/f1b47d0ced4964ae748931a54347fd27b06b62e8ea7837a9de3aee0c5999/websockets-17.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:80578e91764bfca297ddca322c00a3136d993b829e9839e7fa378a19c1fcc25d", size = 215927, upload-time = "2026-10-19T16:55:25.317Z" }, - { url = "https://files.pythonhosted.org/packages/16/df/ab0ed0445d8d81a133c8fed760f3b4f743a2f563804fdbecb2c32fe05d94/websockets-17.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fe7a168d805c8a7bf1c2de55b7ab2bc958586bfd88d0e87235a92cac66b590a7", size = 216185, upload-time = "2026-10-19T16:55:26.678Z" }, - { url = "https://files.pythonhosted.org/packages/9f/51/b30fd6c5a33dac76a78083be125e3f9804f3d735da494ff03a46834f31f4/websockets-17.3-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:54fcd24944e6d127d198c28dc363967b7131ff0c97833962c2ef2048018de02d", size = 225574, upload-time = "2026-10-19T16:55:28.097Z" }, - { url = "https://files.pythonhosted.org/packages/1c/8a/8ede659919c0805d1fcc79c2ed16588d3419f1687c5117ba46f0217750ec/websockets-17.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:de2c12555bf05546f3ee75733f2c81de70aab7f530e86d0d2162b0ddcb3c39ae", size = 225854, upload-time = "2026-10-19T16:55:29.491Z" }, - { url = "https://files.pythonhosted.org/packages/a6/6a/e75d10e3896edc61320062890f71cdc0767dc4a54e2a26a943b703042d13/websockets-17.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c95d25b5382ee0e6191ecafdeabefdc1f7bff8dfee29239b9b79e760ef3b04bd", size = 227091, upload-time = "2026-10-19T16:55:31.146Z" }, - { url = "https://files.pythonhosted.org/packages/dc/d3/658f1e153566e5edae02812122d9f020c30785d8b53c4bda61b8e976f77f/websockets-17.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8f244dfee05ea29b8064701880865eb1684f3a704a5665bd10b64694444dbbd4", size = 228526, upload-time = "2026-10-19T16:55:32.524Z" }, - { url = "https://files.pythonhosted.org/packages/28/00/002f95a02d721d8c6ec2676c5aee904a823838a9c205fc0b31eedd882a7b/websockets-17.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e99440ef446c7833690c1754e23b0188d440f3cb89812b0764c697a7880cb33", size = 227718, upload-time = "2026-10-19T16:55:34.085Z" }, - { url = "https://files.pythonhosted.org/packages/fa/9c/d36ec9499a62ec4e2a4eb570f93c6fcedd80ad5685e0f9d6866e8cfbbb84/websockets-17.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:26838e2d95d7004c52e8c7b6b51676c872093a3b55a497824f899116a15a8a55", size = 226472, upload-time = "2026-10-19T16:55:35.484Z" }, - { url = "https://files.pythonhosted.org/packages/36/5d/3a6d74e409f24ae4e8661a9d74d6645f71b3e91425a527c0e3f2e78bb15b/websockets-17.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:508775efa11d26aec186d10154359f52276e2baf9ca201b52356330883276dfd", size = 223710, upload-time = "2026-10-19T16:55:36.853Z" }, - { url = "https://files.pythonhosted.org/packages/e1/90/e08eb5d69b73cf5babf80922a8c964019b48339ce5c694a5d0c0f083c5a8/websockets-17.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2789d203babb6ceb2770aadc2394c1f99263ec37fba57a93064f9a8ad899e8ff", size = 226532, upload-time = "2026-10-19T16:55:38.191Z" }, - { url = "https://files.pythonhosted.org/packages/c2/45/b1916efa1dad5af33beafe5c536810e1c80856b7e913f671c35031c57745/websockets-17.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:cfef7f7aa434a1e632e0ebda14b39f4f1d7975e0fce5c77ea7b43156fabf9bd8", size = 225129, upload-time = "2026-10-19T16:55:39.635Z" }, - { url = "https://files.pythonhosted.org/packages/04/c1/d427abb3f11e92f102f70f8e73addb767fc62c614565c0ee3f5657fa3551/websockets-17.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:39f532fa0d9026de4b9315a175998646112776baad54d55348435c11b05d034e", size = 225900, upload-time = "2026-10-19T16:55:41.033Z" }, - { url = "https://files.pythonhosted.org/packages/07/2b/462fab8e4b09eaa4eac2f40fcff8ee30f851aa40fb518efb0177262f6590/websockets-17.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:85d6daa3a7ca404570ae130babbeb347ef9d3faca5300fb13cfa4bb48c3d30d1", size = 227007, upload-time = "2026-10-19T16:55:42.314Z" }, - { url = "https://files.pythonhosted.org/packages/71/36/7404a4376021a0cc7ae9fcbdb1196c0c8aa48df4fd370c185f4f5b677bff/websockets-17.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ce39283ef08b0f28478e920d4d89a1fc169176e568e8a6a821332673145522eb", size = 224565, upload-time = "2026-10-19T16:55:43.93Z" }, - { url = "https://files.pythonhosted.org/packages/c9/5f/b8ada5787d11e6edbf58e2d680235fb3b2fb3298991cc310566f4d6c2fbf/websockets-17.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:23046098ebf844753cfd211033624a8247520e5bf2194c24cb1a8c222917acff", size = 225516, upload-time = "2026-10-19T16:55:45.398Z" }, - { url = "https://files.pythonhosted.org/packages/23/1c/0533f760237ac6604efd0bf98c18ea4c1381f2cadd8c8d0b05faecb07a80/websockets-17.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:724224d4c457207271239114bf43afafc3eca4a1b4661ccdd428d11869a03bbd", size = 225797, upload-time = "2026-10-19T16:55:46.989Z" }, - { url = "https://files.pythonhosted.org/packages/97/b4/0e580e8f96197130ebdb32b727e9c891594c930be30d8a9de9aa0bbb7e2c/websockets-17.3-cp313-cp313-win32.whl", hash = "sha256:5af7070d80d278832cbca9c3c3dd44b30a26dcfa3ae1e0f6f19ff34edc27b689", size = 218712, upload-time = "2026-10-19T16:55:48.379Z" }, - { url = "https://files.pythonhosted.org/packages/7d/6c/db5c907d1cbea84444bc759ff63db97fc586988d11a34d5565e8b50080fa/websockets-17.3-cp313-cp313-win_amd64.whl", hash = "sha256:66027e401c70d0cf55021b91b8a7ec2cd5810e20602f945b4fe6ae8b37ed232b", size = 219026, upload-time = "2026-10-19T16:55:50.688Z" }, - { url = "https://files.pythonhosted.org/packages/f1/d3/30f04bec5b9cf0c00c98c038494b210ece923a0b05b6df38a162b759e5ed/websockets-17.3-cp313-cp313-win_arm64.whl", hash = "sha256:6b14914e67044724c31a9360c7b89e9d070117c630746eefdc1620d967545acd", size = 218958, upload-time = "2026-10-19T16:55:52.085Z" }, - { url = "https://files.pythonhosted.org/packages/27/ad/f65e365bbf38d61164b0c2f64776fc7714bfa59ac51e492b038a35f4ab1b/websockets-17.3-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:bc8fd230ef013951900c1fda100eebe4a4b1b407dde2a44186995042dda2c628", size = 218288, upload-time = "2026-10-19T16:55:53.387Z" }, - { url = "https://files.pythonhosted.org/packages/48/1c/33271eba53b4927a1b91d99d838a6d7b888e6f708425262c911450d73696/websockets-17.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:cdb8e4b0f6a41b857c74c03116e8ffbef59ef8e533e934b532843178990d01d5", size = 215977, upload-time = "2026-10-19T16:55:55.063Z" }, - { url = "https://files.pythonhosted.org/packages/3d/f3/6d982c60f6c7c95e5faed53d39263df273ecfda904c7d6920c37eee58dd1/websockets-17.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:018fab26140ce221c3853454a608e4e7004f4f10641cb97819dcd5b917bb2e99", size = 216193, upload-time = "2026-10-19T16:55:56.424Z" }, - { url = "https://files.pythonhosted.org/packages/ff/c6/4ff6b8d2a4b32719d4658bbd791ee9d19939a47a69b961c961fd9dc3a64c/websockets-17.3-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:dd0f3037d501178a761fd2814370aca547f79e99a200a61a1f6e7b79ec3d78b9", size = 225573, upload-time = "2026-10-19T16:55:58.252Z" }, - { url = "https://files.pythonhosted.org/packages/eb/8f/46e4030947f5590cb61832901f44a3edb07ef8d1e27f6c06b42c5f1c4d33/websockets-17.3-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8dbb3862aa649de95660b6337d97101977f160b5b354d07b82fe309874d2c8bc", size = 225927, upload-time = "2026-10-19T16:55:59.561Z" }, - { url = "https://files.pythonhosted.org/packages/f0/1b/3db30fdf4fbefa4ac463060d3f87e2d444f960aa1234028468c09b88bffc/websockets-17.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:af37a1e6b6bd506b597d5fb4cf111fb527d1b2223608a5d441d4738827cfd166", size = 227169, upload-time = "2026-10-19T16:56:01.029Z" }, - { url = "https://files.pythonhosted.org/packages/02/ed/849799cfc0e3e359b75ca1d50605376da52dc9ef0b2a53931e3f5991f96e/websockets-17.3-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:740bba4223fa5216d4d6c5dcd29e697f37229b8a61b69e1a50527b0ea993ab2c", size = 228542, upload-time = "2026-10-19T16:56:02.377Z" }, - { url = "https://files.pythonhosted.org/packages/19/53/dcc397e20ce792fffd9a8f79b6333275748ee7a23f807e576166a0b16edd/websockets-17.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4170556762c6fd2913d99dfdd8dbb4c927584899df7facb1034627e355263c45", size = 227772, upload-time = "2026-10-19T16:56:03.768Z" }, - { url = "https://files.pythonhosted.org/packages/c9/36/e5935782f71e9e22247b2a2e562da05e18d8945c49f2692ca1bdaceec178/websockets-17.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d355b22270be8062360b9df2ee0b10277590789a1059257916fb9e256a0cff80", size = 226518, upload-time = "2026-10-19T16:56:05.332Z" }, - { url = "https://files.pythonhosted.org/packages/27/76/bd5978a1e403fc646230cf35cf7c06b40b3a232d440881b9e89ede229b18/websockets-17.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4aa85b34c21cf97b3470793d0bf0763d32bfd1e67b83067a0a3ba8dc3474dacf", size = 223766, upload-time = "2026-10-19T16:56:06.703Z" }, - { url = "https://files.pythonhosted.org/packages/da/87/c66eb39bd851d5c14d9eb75aa64d03cfcf2ded77927ca067b5917291d19d/websockets-17.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a0e2e7c2c1a4f25db7b6596738d810c10732e77f852247300a1bc49e364d6dc9", size = 226644, upload-time = "2026-10-19T16:56:08.198Z" }, - { url = "https://files.pythonhosted.org/packages/fe/ae/b9a31d5497fa0b73629a097b173a26123da2ed656b562114644bc623414b/websockets-17.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:7fa69212ea60ea24e2d8aff23fe102b1f87f1b27a320f92d2e7b3468997a496a", size = 225107, upload-time = "2026-10-19T16:56:09.627Z" }, - { url = "https://files.pythonhosted.org/packages/61/0c/b773a102f84b60b2052b2cfde773d2f3cd3e8eaa93a145f54450460549cf/websockets-17.3-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:80a6e37e235780f189558ab804f3cbc01c18f5c578995739b49613d544d34ebf", size = 225891, upload-time = "2026-10-19T16:56:10.973Z" }, - { url = "https://files.pythonhosted.org/packages/b2/fa/e7e538575dd4912dea9ea4c9ae86519aa1420969d9cb5cf02fd10fd20ba7/websockets-17.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:628efe13630ac3397e7d1278b6be6f22f37a86d638a324334b4cd43c1daf9928", size = 227064, upload-time = "2026-10-19T16:56:12.295Z" }, - { url = "https://files.pythonhosted.org/packages/28/87/bf2b928c156deefd0c50285a48fc985e2ca85d284e7d9981cc5b79b0e696/websockets-17.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:443fa28652682d2a3ec3eca49af1b87cb2523561257683e62e03a98967b22138", size = 224618, upload-time = "2026-10-19T16:56:13.73Z" }, - { url = "https://files.pythonhosted.org/packages/8c/9a/d59817ba3535f787c1cf8990a01b3d2896a7d9d8f3b5d55bed22fce595a6/websockets-17.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:6705af9d1005127302c04d9f1533ba56e289336c465923ef878430e99295a0b9", size = 225571, upload-time = "2026-10-19T16:56:15.199Z" }, - { url = "https://files.pythonhosted.org/packages/a6/96/8210379dac889e16c75099aefffa200dc55dc8cb030010f309a7eb9c75c1/websockets-17.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9bde5d82d7ac4859e0cb3a35e148f537a8d4e56aa43f42582b5f263982f095ae", size = 225869, upload-time = "2026-10-19T16:56:16.569Z" }, - { url = "https://files.pythonhosted.org/packages/97/0b/d4741c977fec9e6482beffece572d544d42d230f56fc3ef504f96521063a/websockets-17.3-cp314-cp314-win32.whl", hash = "sha256:be7be57097a65a8fab3d0f0a10d12931deb626a7d8082eb732b1ae41f3a202e3", size = 218232, upload-time = "2026-10-19T16:56:18.028Z" }, - { url = "https://files.pythonhosted.org/packages/33/69/2f9ce899776d0c522f7f44080cad4228a1c14ec13b0125a2efc12ebe41c9/websockets-17.3-cp314-cp314-win_amd64.whl", hash = "sha256:2b06213c8e1ce93b18d0476d7a5e647436c8f23d099888c9065e930e80f4bed5", size = 218582, upload-time = "2026-10-19T16:56:19.399Z" }, - { url = "https://files.pythonhosted.org/packages/4e/e9/11b885666d72add674440a3435c059bea325616959cec8be42605948714c/websockets-17.3-cp314-cp314-win_arm64.whl", hash = "sha256:6b7b540bb321f7f0a7b8f5d107f941bb361e3a154c0b594dae0394997b91b743", size = 218465, upload-time = "2026-10-19T16:56:21.005Z" }, - { url = "https://files.pythonhosted.org/packages/c4/0e/0c0f40ab8eefe9d5a6c78b4e267d8e37d70d3db8dd195574e0ab867e4f81/websockets-17.3-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:c9d06edfd974e918b40e0662a7e76dac13125529ee5ec9fbe42dc0d6faa209c3", size = 218614, upload-time = "2026-10-19T16:56:22.457Z" }, - { url = "https://files.pythonhosted.org/packages/1f/93/d22b3d63aa439bc01a9477880070d05e0b257b0548294786a33be3e842ec/websockets-17.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:0a0bcf66289b9d017c175562c35c5304b5cc3ed56aded994ae30b0a9654ba405", size = 216151, upload-time = "2026-10-19T16:56:23.95Z" }, - { url = "https://files.pythonhosted.org/packages/b9/92/f60a9672cdeb8cb4f7156e6e83c76d59fdc586737a97ac77129e9fc188a2/websockets-17.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f3ed747b7651668131029c720fbc32c7ee2d129bdad200e6c8f4037b20f7913a", size = 216354, upload-time = "2026-10-19T16:56:25.251Z" }, - { url = "https://files.pythonhosted.org/packages/9d/da/2be8c5f3c6612d4523f95b074e2352bc11bd090cf121d32bc11af1d52e70/websockets-17.3-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:5868a02c4f6d698ddd19b4c9742748c03dec045289915806845189d96bc3d314", size = 225937, upload-time = "2026-10-19T16:56:26.726Z" }, - { url = "https://files.pythonhosted.org/packages/85/1c/cb84aec871840acd66dfa84520bf7b8e48ce70bdb3f4baa4efd097fbe6b1/websockets-17.3-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:fa87ea2ad64e59fe5622c1dc5716106b6d6e7e4b26b848cb5f5710a75c292ef5", size = 226215, upload-time = "2026-10-19T16:56:28.1Z" }, - { url = "https://files.pythonhosted.org/packages/9b/7b/cfb65557accec2eda2c80288e13eca6f1c797c579375906eb73f4053cfd1/websockets-17.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65e937576141ac50fac32fa9736dbb3e0e4a7769f91be004011a09216c6ab05f", size = 227389, upload-time = "2026-10-19T16:56:29.518Z" }, - { url = "https://files.pythonhosted.org/packages/70/a3/7e08ec4b23e376ed228831aa44b2f2a3f2e7025cc66dda4b2e53dcc2619e/websockets-17.3-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:35381b575f70a08d4241e73c0cde4672bb9b2a9aae8767ca6b7fb61305a052c8", size = 229534, upload-time = "2026-10-19T16:56:31.072Z" }, - { url = "https://files.pythonhosted.org/packages/4b/7d/8a813e3e53956f876cfaad4f6358625bbd94168aa8046c44e2f3561f12af/websockets-17.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5142798871a248b422f353e0684d51dfa119de3403a6fa0904b7cb806d9790ce", size = 227959, upload-time = "2026-10-19T16:56:32.656Z" }, - { url = "https://files.pythonhosted.org/packages/41/23/5f3dab6ab44f2f30042db83a658a57129d5e3c0425c798b3c3e727bc060a/websockets-17.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e164c4a6868d11988c7f2386e3278ccff21c665cd7d08279b62709dd37a3167c", size = 226691, upload-time = "2026-10-19T16:56:34.101Z" }, - { url = "https://files.pythonhosted.org/packages/5b/49/99a3fb5a2e94d677fbd0d014a6f9a56a3d2b8e8007b7175727bc4fc4ae94/websockets-17.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:10b24e836ee0233ca078e1244f6ba40343a22127a9a736f46a7e7b18de2cc711", size = 224225, upload-time = "2026-10-19T16:56:35.452Z" }, - { url = "https://files.pythonhosted.org/packages/6f/e5/f503a4d757858d083c90ea85dd1fd636ae9eb63c9552c75a4c38514ee7ed/websockets-17.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:56a76556ab04ab54a675acce2cac8b4e74ea2cec558a7c9ed37e0367b04b5d50", size = 226984, upload-time = "2026-10-19T16:56:36.887Z" }, - { url = "https://files.pythonhosted.org/packages/4a/a6/8586844ad4b21988837624e1f4b331bc71919c85a6eb1ee3c8bd29893f27/websockets-17.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:33221e49be79d7bfe6d12bc52ef9458b256ab74fa8ac5660acfa3065de1c7870", size = 225436, upload-time = "2026-10-19T16:56:38.213Z" }, - { url = "https://files.pythonhosted.org/packages/a7/b9/f419506494d6ffd205a9c3258f56ff5aeae6976de26361057de74f4ab659/websockets-17.3-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:2fa79b9a48ae59744316c71a34cb9f76f30c93e117338522c5135cb7eac10351", size = 226325, upload-time = "2026-10-19T16:56:39.606Z" }, - { url = "https://files.pythonhosted.org/packages/28/c5/55a58faa67149e84cb98b33f9d8fda95242677ea07b78f3ecaf2e77877d6/websockets-17.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:f87f02afe05c1c246012e3de100a77cfbabd17db709fe93cf074271ab239b312", size = 227342, upload-time = "2026-10-19T16:56:41.041Z" }, - { url = "https://files.pythonhosted.org/packages/35/e0/fbe561dff24b6ef1b2034877f37b56eb9b81b3c103e2a8b03819bf2b3b6d/websockets-17.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8135a549e27e9941a70e2d2156676ef2ffeff4b06e9d564dbaaae963482afdef", size = 225036, upload-time = "2026-10-19T16:56:42.433Z" }, - { url = "https://files.pythonhosted.org/packages/0d/37/d80753064f8370a24d3bec74807c3928d7b0ebef5381956e2a0108b365c2/websockets-17.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:ace8dd1efa5f44c482d091aa38322e20e3ffe5adcdba6b67ad9f4e7da58f3f68", size = 225807, upload-time = "2026-10-19T16:56:43.774Z" }, - { url = "https://files.pythonhosted.org/packages/f1/9d/a11d3168522a2959c4a5661728744d62b9eee344abdba5f9fbc1d359742f/websockets-17.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2129c9a5fc05a230ce088745a790af073e582b584badc7b05db067ee326f56d7", size = 226241, upload-time = "2026-10-19T16:56:45.088Z" }, - { url = "https://files.pythonhosted.org/packages/06/28/16107b3b83fd2b5024bfecf8d000140f555204a0191202f9c4c981137810/websockets-17.3-cp314-cp314t-win32.whl", hash = "sha256:af7c474f0d8f4d2a196370e85033873c7b063a0b5da9a4f143aa023e3bd25407", size = 218365, upload-time = "2026-10-19T16:56:46.41Z" }, - { url = "https://files.pythonhosted.org/packages/77/dd/8b00e1dd552788d8c7762d7ef61de8f2f238d7357b1a02d4c4650b112196/websockets-17.3-cp314-cp314t-win_amd64.whl", hash = "sha256:0c63ad657695e8f1a48624754cb6b464118ac50d4c1d477c26461c98390f0a62", size = 218706, upload-time = "2026-10-19T16:56:47.754Z" }, - { url = "https://files.pythonhosted.org/packages/39/eb/5d90d57a5cbe614b2f13433aaf1c0b068c804589379061ba06812a185a89/websockets-17.3-cp314-cp314t-win_arm64.whl", hash = "sha256:3c4f631dc8d00e470cde3ec0a35d4b58a817bea592411956f1cf4099dbb306b3", size = 218622, upload-time = "2026-10-19T16:56:49.07Z" }, - { url = "https://files.pythonhosted.org/packages/e1/f1/b462b1518779adf0b6fce305beee07357a79cf0724bbe61113ed6521882e/websockets-17.3-pp311-pypy311_pp80-macosx_10_15_x86_64.whl", hash = "sha256:34c78052277053bcb09810ac8e9ba4029f9e3e277833fc18ec1c928a6246ac91", size = 215839, upload-time = "2026-10-19T16:57:47.742Z" }, - { url = "https://files.pythonhosted.org/packages/a9/59/7dcea408892967516cc00d491ee7bba48577059c6eb0811f436b720bcd98/websockets-17.3-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:ef07e0b6b879f699a16fc7a513b974246fdeaef44908a021130cf4afe6a1c89c", size = 216114, upload-time = "2026-10-19T16:57:49.111Z" }, - { url = "https://files.pythonhosted.org/packages/c6/b7/2d447e461f1160dc8dcdd8b143e2adba54d402e5f828eeb1f8469970c937/websockets-17.3-pp311-pypy311_pp80-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:99c5637b74e2805ee4de9e2a43c8b45f678e50abb1c2da9880f0372f6498ba2f", size = 217065, upload-time = "2026-10-19T16:57:50.424Z" }, - { url = "https://files.pythonhosted.org/packages/01/51/35aa5edd12b23e0001b85517ad447342c07a29fcee62009b0859825b77a7/websockets-17.3-pp311-pypy311_pp80-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:2c460aeb12c2bd1c204944d9e9199595bf9e505eb542018d304bf9e63cb60cad", size = 216952, upload-time = "2026-10-19T16:57:51.72Z" }, - { url = "https://files.pythonhosted.org/packages/6c/db/537306b92236d761b99dc56a7316c0ad46f2854cd0756585b3a9d3fe5639/websockets-17.3-pp311-pypy311_pp80-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5e1c174b366565e101f903f9d1cc96d5508f805759dd37d012743f1c73ec0d7b", size = 217844, upload-time = "2026-10-19T16:57:53.144Z" }, - { url = "https://files.pythonhosted.org/packages/e0/c2/494bed87536f3822872e57b07ac9afa744af88ff64dda664b9caa32b1a72/websockets-17.3-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:c4b3f2c7d84f303da873b634d0beef83b5e1137294c3de4e23102841dac0cf4a", size = 306274, upload-time = "2026-10-19T16:57:54.525Z" }, - { url = "https://files.pythonhosted.org/packages/5a/1a/5582103e0362f86c4725051ded89e585ceaf750f26beace530b7e42c81c0/websockets-17.3-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:0e65260a1b1d7b81651f47343d836de70b88b02358ae3658efa6382104ec37b1", size = 215872, upload-time = "2026-10-19T16:57:55.95Z" }, - { url = "https://files.pythonhosted.org/packages/ef/a7/f69d65ed3ff9ae73d428a918300c23a992e4d50683090b8dc33cc3341d5a/websockets-17.3-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:94c02b0702656f083c098bdbd93bce22a7aa7a2b34ba56d2472efb67dab7cf58", size = 216136, upload-time = "2026-10-19T16:57:57.251Z" }, - { url = "https://files.pythonhosted.org/packages/69/76/c64fda4ac18a3aeb32e66acec481011a766add480b6362fad80e2c3c1963/websockets-17.3-pp312-pypy312_pp80-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ade76f8c84ade325bbed96806357fffd353fcc29a5166d6dc6d39381f6d9f76c", size = 217080, upload-time = "2026-10-19T16:57:58.593Z" }, - { url = "https://files.pythonhosted.org/packages/6b/6d/085a3f0e6152bbe79917973f3d33cd008437de6c04675e2f15253b921f21/websockets-17.3-pp312-pypy312_pp80-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9a215749c9a88ef2842e880215193e56ae60b856773c99702b078236bc6d4adb", size = 216966, upload-time = "2026-10-19T16:57:59.924Z" }, - { url = "https://files.pythonhosted.org/packages/ed/b8/7eb904583ea2090b329f50487e6f8dc58eb558712b9f3c16f289f0be668e/websockets-17.3-pp312-pypy312_pp80-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4e7b5d23ef144b32645d97bd99f382c4394c443395f45fe1576786838d26e308", size = 217828, upload-time = "2026-10-19T16:58:01.822Z" }, - { url = "https://files.pythonhosted.org/packages/79/36/f54b4a1cd9456ca0a65a76d77d181621433793aca633dfeed214748ff4f0/websockets-17.3-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:13eace1b315345ebac5b27821f5dcce24e5cf9976ab18f79e00a59bdd67e5d19", size = 306301, upload-time = "2026-10-19T16:58:03.161Z" }, - { url = "https://files.pythonhosted.org/packages/d7/b0/3f01fcb3406662f6deb1e3e72b34dd0979e993991c0b7435a9e12bc14f02/websockets-17.3-py3-none-any.whl", hash = "sha256:dc2b495a92b3971966bf102e73589f950db3ec1ca6713265355ce7771d97b199", size = 212375, upload-time = "2026-10-19T16:58:04.483Z" }, -] - [[package]] name = "win32-setctime" version = "1.2.1" @@ -3627,3 +3246,40 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/2a/99/f6431c8968e89be608d74b28ae2d024521b2953f27dd44e0dece5e04f67a/yarl-1.25.1-cp314-cp314t-win_arm64.whl", hash = "sha256:287e99ff5aa4dc1c7630bfc683ded6f106d756c99dec432a2d7f197a784f51c6", size = 102094, upload-time = "2026-09-15T19:33:31.151Z" }, { url = "https://files.pythonhosted.org/packages/54/22/318c7980066769c6bcd9221ed2248294f5698811da099013098c670565ed/yarl-1.25.1-py3-none-any.whl", hash = "sha256:681c758b0490f9e96b78e5fa8e8dc6e648e9185bb6eaebe73183c33ea0c445f3", size = 63617, upload-time = "2026-09-15T19:34:59.616Z" }, ] + +[[package]] +name = "zensical" +version = "0.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "jinja2" }, + { name = "markdown" }, + { name = "pathspec" }, + { name = "pygments" }, + { name = "pymdown-extensions", version = "12.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11.5'" }, + { name = "pymdown-extensions", version = "13.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11.5'" }, + { name = "pyyaml" }, + { name = "tomli" }, + { name = "zensical-ui" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a6/d5/ba1ca8e16c3728a732d4b785ea08b14c40c369638597cd74973b9e9012f2/zensical-0.1.1.tar.gz", hash = "sha256:0405d2891dca76a6fb42fae8141dba93a95f31905148940a9f13883bf1ccfe43", size = 533578, upload-time = "2026-11-10T16:41:54.209Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e1/29/e2f2f1237910ca8c3f161c040bd4d72930048517e1b9a6da0f85e8e2aaba/zensical-0.1.1-cp311-abi3-macosx_10_12_x86_64.whl", hash = "sha256:39f40e800f89ce9253839dcba1a06fdd160ff00ac600ab79ae6f18e6a42ee8f7", size = 8743278, upload-time = "2026-11-10T16:41:37.329Z" }, + { url = "https://files.pythonhosted.org/packages/25/22/d7ede9ffd1d70734d45855127d841c2751c2468f82d67ed61c9a41eb1789/zensical-0.1.1-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:267a8f038ca2c720414c0c5810e29962999fbf799369c06a9530b8c702a28f92", size = 8326508, upload-time = "2026-11-10T16:41:39.588Z" }, + { url = "https://files.pythonhosted.org/packages/b4/1c/e2ccfda3524271135914a88495fa5409e998b2774f893c7a884a2559be11/zensical-0.1.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:547d2c5c68db7db1faa4394d99ab81f5e9eed6eefe528eb139ff4ea196b2a4fb", size = 8776712, upload-time = "2026-11-10T16:41:41.248Z" }, + { url = "https://files.pythonhosted.org/packages/ff/2f/b2b12131181d144d5c452820654f40d84e63480dcdff11de6d15f5bc0a16/zensical-0.1.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e11abaf2669c5ee780a145d114e8c3db4cd81cd3fdfc8a4513a324301fefd113", size = 9282659, upload-time = "2026-11-10T16:41:43.405Z" }, + { url = "https://files.pythonhosted.org/packages/0e/ce/d2cc1059f840f433e507bd633f2eec959b5989430857543e784070b3c84d/zensical-0.1.1-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:d5cff293282dd27bd511f7bd33db8088fd450de4c1611db842a411466140f637", size = 8949937, upload-time = "2026-11-10T16:41:46.024Z" }, + { url = "https://files.pythonhosted.org/packages/4f/f8/df2eddd488bd9898b774b7d15f987b72e833d10127f34514507b2e651ff0/zensical-0.1.1-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:dd4082e317ac5784c50e21cbe209fd1881a351da6ae4e81cc700d6673d5312f3", size = 9553730, upload-time = "2026-11-10T16:41:48.281Z" }, + { url = "https://files.pythonhosted.org/packages/4a/91/57e77cf8e3963e494f57afc1b3605e3f78ef35c9f62d4ff53febc572f044/zensical-0.1.1-cp311-abi3-win_amd64.whl", hash = "sha256:1316ba8c5e18b9e46823b0a10105585a582a6e85d2df764b3b65f3de4d1a711f", size = 9495498, upload-time = "2026-11-10T16:41:50.344Z" }, + { url = "https://files.pythonhosted.org/packages/26/25/759c22b7ae459683920d4f87621c1d3196172911827fdf4c8fb3d86768fb/zensical-0.1.1-cp311-abi3-win_arm64.whl", hash = "sha256:332e74e3fe91cd8476369217e28ab5d4692486da32d0177c8bcb93c972f0cc8b", size = 8875015, upload-time = "2026-11-10T16:41:52.205Z" }, +] + +[[package]] +name = "zensical-ui" +version = "0.0.42" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/91/26/e41d79b1d1ccf46b2737d06c4104ecabfa3b8009395f3de475d5a0335e13/zensical_ui-0.0.42.tar.gz", hash = "sha256:db4f532b45d7f8200d08d5fb8e7945c69dd738eed49417008b847572a8e3ac8d", size = 4070756, upload-time = "2026-11-10T10:24:23.017Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ae/fa/5cdcf389236fb992da1c2f88be781d34484a3cc97244ee5daa748ec5bb4f/zensical_ui-0.0.42-py3-none-any.whl", hash = "sha256:eb824d9c971debc2031837e8d287adf81f5d9ce06304cfbd33fc88ff833abbf3", size = 10042030, upload-time = "2026-11-10T10:24:20.499Z" }, +] diff --git a/zensical.toml b/zensical.toml new file mode 100644 index 00000000..664e6a1b --- /dev/null +++ b/zensical.toml @@ -0,0 +1,149 @@ +[project] +site_name = "ECLYPSE" +site_description = "Edge-CLoud pYthon Platform for Simulated runtime Environments" +site_author = "Jacopo Massa & Valerio De Caro" +site_dir = "_site" +# Read the Docs canonical URL; Zensical does not interpolate environment variables +site_url = "https://eclypse.readthedocs.io/en/latest/" +repo_url = "https://github.com/eclypse-org/eclypse" +repo_name = "eclypse-org/eclypse" +edit_uri = "edit/main/docs/" +copyright = "Copyright © Jacopo Massa & Valerio De Caro" +extra_css = ["_static/css/custom.css"] +# logo masters and legacy artwork are kept in the repo but not published +exclude_docs = """ +*.tiff +/_static/images/legacy/ +/_build/ +/source/ +/overrides/ +""" +not_in_nav = "/index.md" +nav = [ + { "Overview" = [ + "overview/index.md", + "overview/install.md", + { "Getting started" = [ + "overview/getting-started/index.md", + "overview/getting-started/minimal-local-run.md", + "overview/getting-started/inspect-results.md", + "overview/getting-started/remote-emulation.md", + ] }, + { "Concepts" = [ + "overview/concepts/index.md", + "overview/concepts/topology.md", + "overview/concepts/assets.md", + "overview/concepts/builders.md", + "overview/concepts/import-export.md", + "overview/concepts/placement-strategy.md", + "overview/concepts/update-policy.md", + "overview/concepts/events.md", + "overview/concepts/simulation-configuration.md", + ] }, + { "Advanced topics" = [ + "overview/advanced/index.md", + "overview/advanced/triggers.md", + { "Emulation" = [ + "overview/advanced/emulation/index.md", + "overview/advanced/emulation/emulation.md", + "overview/advanced/emulation/messaging.md", + ] }, + "overview/advanced/reporting.md", + ] }, + { "Examples" = [ + "overview/examples/index.md", + "overview/examples/echo.md", + "overview/examples/grid_analysis.md", + "overview/examples/image_prediction.md", + "overview/examples/io_round_trip.md", + "overview/examples/off_the_shelf.md", + "overview/examples/sock_shop.md", + "overview/examples/user_distribution.md", + ] }, + ] }, + # filled by api-autonav + { "Reference" = "reference/" }, + { "Changelog" = "changelog.md" }, +] + +[project.theme] +custom_dir = "docs/overrides" +logo = "_static/images/logo.png" +favicon = "_static/favicon/favicon.ico" +font.text = "Montserrat" +features = [ + "content.action.edit", + "content.code.copy", + "content.code.annotate", + "content.code.select", + "content.tabs.link", + "navigation.indexes", + "navigation.instant", + "navigation.instant.progress", + # "navigation.instant.preview", + "navigation.tracking", + "navigation.top", + "toc.follow", + # render only the visible nav branch; the full API tree would add ~250 KB per page + "navigation.prune", + "navigation.tabs", + "search.highlight", +] + +[[project.theme.palette]] +media = "(prefers-color-scheme: light)" +scheme = "default" +primary = "custom" +accent = "custom" +toggle.icon = "lucide/sun" +toggle.name = "Switch to dark mode" + +[[project.theme.palette]] +media = "(prefers-color-scheme: dark)" +scheme = "slate" +primary = "custom" +accent = "custom" +toggle.icon = "lucide/moon" +toggle.name = "Switch to light mode" + +# Setting markdown_extensions replaces Zensical's defaults, so list all that are used +[project.markdown_extensions] +admonition = {} +attr_list = {} +md_in_html = {} +toc.permalink = true +# toc.toc_depth = 3 +pymdownx.details = {} +pymdownx.emoji.emoji_generator = "zensical.extensions.emoji.to_svg" +pymdownx.emoji.emoji_index = "zensical.extensions.emoji.twemoji" +pymdownx.highlight.anchor_linenums = true +pymdownx.highlight.line_spans = "__span" +pymdownx.highlight.pygments_lang_class = true +pymdownx.inlinehilite = {} +# includes resolve from the repository root (examples/, eclypse/) +pymdownx.snippets.base_path = ["."] +pymdownx.snippets.check_paths = true +pymdownx.superfences.custom_fences = [ + { name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" }, +] +pymdownx.tabbed.alternate_style = true +pymdownx.tabbed.combine_header_slug = true + +[project.plugins.api-autonav] +modules = ["eclypse"] +nav_section_title = "Reference" + +[project.plugins.mkdocstrings.handlers.python] +paths = ["."] + +[project.plugins.mkdocstrings.handlers.python.options] +docstring_style = "google" +# Sphinx never checked docstring types; mypy covers the annotations +docstring_options.warn_missing_types = false +members_order = "source" +show_if_no_docstring = true +inherited_members = false +show_bases = true +show_source = true +separate_signature = true +show_signature_annotations = false