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.1.1a0.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.1.1a0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file tunablex-0.1.1a0.tar.gz.

File metadata

  • Download URL: tunablex-0.1.1a0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tunablex-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 e380b5bf91d40d89edef13ca65b281e8fbf450c79aad51c91fea19bf07575bb1
MD5 04bfeb3f7f0900ed7205149f322f115b
BLAKE2b-256 9ac7ef0f20f18fd3ab43f3a72804fa421a1d20e3835f3496ec4fa04039698269

See more details on using hashes here.

Provenance

The following attestation bundles were made for tunablex-0.1.1a0.tar.gz:

Publisher: python-publish.yml on jackpap/tunableX

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tunablex-0.1.1a0-py3-none-any.whl.

File metadata

  • Download URL: tunablex-0.1.1a0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tunablex-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4fc721000ef4e66e903c06a92bf1b4e4defcffdd4e6e150237f1da906754acb
MD5 9637eb47a03a3fa9fbf642cf70093416
BLAKE2b-256 3a1e344ec020b8fe222726a0c3c0d56f7d4a529ca96001f9cbc8884679a4416e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tunablex-0.1.1a0-py3-none-any.whl:

Publisher: python-publish.yml on jackpap/tunableX

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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