{"id":45053578,"url":"https://github.com/lokeshmohanty/expman-rs","last_synced_at":"2026-03-08T17:02:57.924Z","repository":{"id":339260874,"uuid":"1160799417","full_name":"lokeshmohanty/expman-rs","owner":"lokeshmohanty","description":"High-performance experiment manager written in Rust, with a Python wrapper for non-blocking logging, a live web dashboard, and a friendly CLI.","archived":false,"fork":false,"pushed_at":"2026-03-06T06:26:03.000Z","size":4398,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-06T10:01:59.579Z","etag":null,"topics":["experiment-manager","interactive-dashboard","python","rust"],"latest_commit_sha":null,"homepage":"https://lokeshmohanty.github.io/expman-rs/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lokeshmohanty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-18T11:40:04.000Z","updated_at":"2026-03-06T06:09:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lokeshmohanty/expman-rs","commit_stats":null,"previous_names":["lokeshmohanty/expman-rs"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/lokeshmohanty/expman-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokeshmohanty%2Fexpman-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokeshmohanty%2Fexpman-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokeshmohanty%2Fexpman-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokeshmohanty%2Fexpman-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lokeshmohanty","download_url":"https://codeload.github.com/lokeshmohanty/expman-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokeshmohanty%2Fexpman-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30243778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["experiment-manager","interactive-dashboard","python","rust"],"created_at":"2026-02-19T09:13:58.770Z","updated_at":"2026-03-08T17:02:57.918Z","avatar_url":"https://github.com/lokeshmohanty.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experiment Manager built using Rust\n\n[![Crates.io](https://img.shields.io/crates/v/expman.svg)](https://crates.io/crates/expman)\n[![PyPI](https://img.shields.io/pypi/v/expman-rs.svg)](https://pypi.org/project/expman-rs/)\n[![GitHub Repo](https://img.shields.io/badge/github-repo-blue.svg?logo=github)](https://github.com/lokeshmohanty/expman-rs)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Documentation](https://img.shields.io/badge/docs-deploy-blue)](https://lokeshmohanty.github.io/expman-rs)\n\nHigh-performance experiment manager written in Rust, with a Python wrapper for non-blocking logging, a live web dashboard, and a friendly CLI.\n\n## Features\n\n- **Non-blocking Python logging**: `log_vector()` is a ~100ns channel send — never blocks your training loop\n- **Live dashboard**: SSE-powered real-time metric streaming, run comparison charts, artifact browser\n- **Scalar metric filtering**: Toggle which metric columns appear in the runs table with one click\n- **Single binary**: CLI + web server in one `exp` binary — no Python runtime needed for the server\n- **Efficient storage**: Batched Arrow/Parquet writes, not per-step read-concat-write\n- **Nix dev environment**: Reproducible with `nix develop`\n\n## Screenshots\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/dashboard-interactive.png\" width=\"400\" /\u003e\n  \u003cimg src=\"assets/dashboard-metrics.png\" width=\"400\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/dashboard-artifacts.png\" width=\"400\" /\u003e\n  \u003cimg src=\"assets/dashboard-interactive-notebook.png\" width=\"400\" /\u003e\n\u003c/p\u003e\n\n## Installation\n\n### From Cargo\n\n```bash\ncargo install expman-cli\n```\n\n### From PYPI\n\n```bash\npip install expman-rs\n```\n\n### Alternatively: Download from GitHub Releases\n\n- **Direct Download**: Download the pre-built standalone `exp` binaries or Python wheels directly from our [GitHub Releases](https://github.com/lokeshmohanty/expman-rs/releases).\n\n## Quick Start\n\n### Python\n\n**Option A: Global Singleton (Easiest)**\n```python\nimport expman as exp\n\nexp.init(\"resnet_cifar10\")\nexp.log_params({\"lr\": 0.001})\nexp.log_vector({\"loss\": 0.5}, step=0)\n# Auto-closes on script exit\n```\n\n**Option B: Context Manager (Recommended for scope control)**\n```python\nfrom expman import Experiment\n\nwith Experiment(\"resnet_cifar10\") as exp:\n    exp.log_vector({\"loss\": 0.5}, step=0)\n```\n\n## For Rust\n\nBasic usage:\n\n```rust\nuse expman::{ExperimentConfig, LoggingEngine, RunStatus};\n\nfn main() -\u003e anyhow::Result\u003c()\u003e {\n   let config = ExperimentConfig::new(\"my_rust_exp\", \"./experiments\");\n   let engine = LoggingEngine::new(config)?;\n\n   engine.log_vector([(\"loss\".to_string(), 0.5.into())].into(), Some(0));\n\n   engine.close(RunStatus::Finished);\n   Ok(())\n}\n   ```\n\n### Dashboard\n\n```bash\nexp serve ./experiments\n# Open http://localhost:8000\n```\n\n### CLI\n\n```bash\nexp list ./experiments              # list all experiments\nexp list ./experiments -e resnet    # list runs for an experiment\nexp inspect ./experiments/resnet/runs/20240101_120000\nexp clean resnet --keep 5 --force   # delete old runs\nexp export ./experiments/resnet/runs/20240101_120000 --format csv\n```\n\n## Development\n\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md) for detailed instructions on setting up your local environment, building the Python bindings, and important git configuration notes.\n\n```bash\nnix develop                    # enter dev shell\njust test                      # run all tests\njust dev-py                    # build Python extension (uv pip install -e .)\njust serve ./experiments       # start dashboard\njust watch                     # watch mode for tests\njust build-docs                # build and open documentation\n```\n\n## Documentation\n\nFor detailed usage, refer to the standalone documentation files for each component:\n- [`expman-cli`](crates/expman-cli/README.md) - Command-line interface definitions and references.\n- [`expman`](crates/expman/README.md) - Core high-performance async Rust logging engine.\n- [`expman-py`](crates/expman-py/README.md) - Python extension for non-blocking logging.\n- [`expman-server`](crates/expman-server/README.md) - Axum web server and SSE live streaming API.\n\n\n### Dashboard Features\n- **Live Metrics**: Real-time SSE streaming of experiment metrics and logs.\n- **Live Jupyter Notebooks**: Instantly spawn a live Jupyter instance natively bound to any run's execution environment directly from the UI, with auto-generated analytics boilerplate (Polars).\n- **Scalar Filter**: Toggle individual metric columns in the Runs table via chip buttons — no page reload.\n- **Deep Inspection**: View detailed run configurations, metadata, and artifacts.\n- **Artifact Browser**: Preview `parquet`, `csv`, and other files directly in the browser.\n- **Comparison View**: Overlay multiple runs on a shared timeline for analysis.\n- **Server-side filtering**: Pass `?metrics=loss,acc` to `/api/experiments/:exp/runs` to limit which scalars are returned.\n\n## Examples\n\nPractical code samples are provided in the [examples/](examples/) directory. The Python example demonstrates logging metrics, alongside generating and storing rich media artifacts (audio, video, plots) directly natively.\n\n- **Python**: [examples/python/basic_training.py](examples/python/basic_training.py)\n- **Rust**: [examples/rust/logging.rs](examples/rust/logging.rs)\n\nTo run the Python examples, ensure you have built the extension first with `just dev-py` and installed the dev dependencies (`uv pip install -e \".[dev]\"`).\n\nTo run the Rust example, use:\n\n```bash\ncargo run --example logging -p expman\n```\n\n## Experiments Layout\n\n```\nexperiments/\n  my_experiment/\n    experiment.yaml          # display name, description\n    20240101_120000/         # run directory\n      metrics.parquet      # all logged metrics (Arrow/Parquet)\n      config.yaml          # logged params/hyperparameters\n      run.yaml             # run metadata (status, duration, timestamps)\n      run.log              # text log\n      artifacts/           # user-saved files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flokeshmohanty%2Fexpman-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flokeshmohanty%2Fexpman-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flokeshmohanty%2Fexpman-rs/lists"}