Skip to main content

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


Download files

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

Source Distribution

tunablex-0.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

tunablex-0.0.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for tunablex-0.0.0.tar.gz
Algorithm Hash digest
SHA256 d7a5607b271fd744d0f407b2c7b8e9acdb818fa35afccef0be5ac27acc885229
MD5 bf1c870985dc2c265394c003f9095e74
BLAKE2b-256 052cc231562c1c5e8af258d3283331edb09e03cdc549c358a098a12a80f544a5

See more details on using hashes here.

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

Hashes for tunablex-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1dc40fe3b24ad4e073bc4c3e8912d4d2c89045a789dc3668d55e2dbd60049d1
MD5 6c50dd5e69147af625c3dd574d28d8f1
BLAKE2b-256 b858f3838548a3ca875528aa192669408a2359fea4f456fc6e485974813f4e45

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