Skip to main content

Autotune Python SDK

Typed synchronous and asynchronous interfaces for the autotune command-line tool. The CLI remains the execution engine and the authority for option validation.

Requirements

  • Python 3.10 or newer
  • Node.js 22 or newer
  • An autotune executable on PATH

Select another executable with binary=..., AUTOTUNE_CLI_BIN, or AUTOTUNE_BIN.

Usage

from autotune_cli import Autotune

autotune = Autotune()
space = autotune.analyze("train.py", agent="codex")
result = autotune.run("train.py", trials=20, yes=True, agent="codex")
print(result.best_trial)

run() is intentionally noninteractive: pass yes=True, or provide config="search-space.yaml". A configured run is automatically passed to the CLI with --yes.

Use invoke() for raw CLI features:

print(autotune.invoke(["--help"]).stdout)

The async client has the same API:

from autotune_cli import AsyncAutotune

result = await AsyncAutotune().run("train.py", trials=20, yes=True)

Download files

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

Source Distribution

autotune_cli-0.3.1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

autotune_cli-0.3.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file autotune_cli-0.3.1.tar.gz.

File metadata

  • Download URL: autotune_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autotune_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 7b7fc46428c860fa9b3fff9685ce22f1f9b345a4f8de68fe56c8c9b3d666d349
MD5 1d64eafe818e9178e310f019b8bfe649
BLAKE2b-256 71fdbd7f47b614176a75264b4b11c912fb49e480ec04b841c6a515baeab42fb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for autotune_cli-0.3.1.tar.gz:

Publisher: release.yml on RobertTLange/autotune

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

File details

Details for the file autotune_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: autotune_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autotune_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d63fcb05055e1d4a2accf73b96c4e3b6c1b6109ee2a97184079449341c0d0d
MD5 5c382af218ce2697be754b6281454cf9
BLAKE2b-256 ec91899b49524ff3c77462fd7cfe32a05329811117f7171bae9b223d9bc04097

See more details on using hashes here.

Provenance

The following attestation bundles were made for autotune_cli-0.3.1-py3-none-any.whl:

Publisher: release.yml on RobertTLange/autotune

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