Function-first tunables with auto JSON/YAML/TOML config & schema, per-executable composition (tags or trace), and runtime auto-injection.
Project description
tunablex
Function-first tunable parameters for Python apps — with automatic JSON & JSON Schema, per-executable composition (via tags) or dynamic composition (via call-graph tracing), and runtime auto-injection.
Key API
@tunable(...)— declare which parameters are user-tunable (per function).schema_for_apps(*apps)/defaults_for_apps(*apps)— by app tags.schema_by_trace(entrypoint)/make_app_config_for_entry(entrypoint)— by tracing (no tags needed).use_config(cfg)— injects sections into all decorated functions during the run.load_app_config(app, path)/load_config_for_entry(entry, path)— validate JSON against the composed model.
See examples/ for:
- argparse + app tags
- argparse + tracing (no app)
- jsonargparse + app tags
- jsonargparse + tracing (no app)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tunablex-0.0.0.tar.gz.
File metadata
- Download URL: tunablex-0.0.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7a5607b271fd744d0f407b2c7b8e9acdb818fa35afccef0be5ac27acc885229
|
|
| MD5 |
bf1c870985dc2c265394c003f9095e74
|
|
| BLAKE2b-256 |
052cc231562c1c5e8af258d3283331edb09e03cdc549c358a098a12a80f544a5
|
File details
Details for the file tunablex-0.0.0-py3-none-any.whl.
File metadata
- Download URL: tunablex-0.0.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1dc40fe3b24ad4e073bc4c3e8912d4d2c89045a789dc3668d55e2dbd60049d1
|
|
| MD5 |
6c50dd5e69147af625c3dd574d28d8f1
|
|
| BLAKE2b-256 |
b858f3838548a3ca875528aa192669408a2359fea4f456fc6e485974813f4e45
|