Skip to main content

InEx is a lightweight highly configurable Python launcher based on microkernel architecture

Project description

GitHub License PyPI - Version PyPI - Python Version

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors

InEx Launcher

Lightweight highly configurable Python launcher based on microkernel architecture

Installation

pip install -U inex-launcher

Single-file configuration

inex-launcher lets you describe an entire experiment in a single YAML file. The plugins list defines the initialization order of handlers. For each handler you only need to provide the module path and its options. The execute section describes the final method that will be called.

plugins:
  - loader
  - model
  - trainer

loader:
  module: myproject.data/Loader
  options:
    path: data/train.csv

model:
  module: myproject.nn/Model
  options:
    hidden: 128

trainer:
  module: myproject.training/Trainer
  imports:
    model: plugins.model
    data: plugins.loader
  options:
    epochs: 10

execute:
  method: myproject.training/run
  imports:
    trainer: plugins.trainer

Run this configuration with:

inex config.yaml

You can fine-tune the experiment by merging it with another file using --merge and overriding specific values with --update:

inex config.yaml -m experiment.yaml -u trainer.epochs=20 model.hidden=64

This approach lets you modify parameters or even replace handlers with just a few lines of YAML—no need to edit high‑level Python files.

Key benefits of this approach:

  • High modularity – modules can be swapped directly in the configuration thanks to the plugin-based structure.
  • Clean structure – a clear sequence of plugins followed by a single execute block keeps the file readable.
  • Flexibility – YAML allows complex nested structures, so even advanced scenarios fit in one file.

Project details


Download files

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

Source Distribution

inex-launcher-3.1.2.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

inex_launcher-3.1.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file inex-launcher-3.1.2.tar.gz.

File metadata

  • Download URL: inex-launcher-3.1.2.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for inex-launcher-3.1.2.tar.gz
Algorithm Hash digest
SHA256 1e53f0d46be8a16edd17a056abed7e74248e00719601bc164acc09dc332874ee
MD5 24422bf88eca1500107ac3968ba5a128
BLAKE2b-256 08d8722123f6a4c5e91ccf7cbeb25c847b6bc80c4f4aecbc5c613f55e868e546

See more details on using hashes here.

File details

Details for the file inex_launcher-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: inex_launcher-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for inex_launcher-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2e917f7ab243158f28ca9e8f2aa978bd4b7a2316ee40f419ff8c0726ccd4606
MD5 afd5f1ca7c067497bcb84c604159caea
BLAKE2b-256 793c86bbf192f8256ce8e747aef24167295ee346dbe0053783e4ee095963266d

See more details on using hashes here.

Supported by

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