Metadata-Version: 2.4
Name: decodewhistle
Version: 0.1.0
Summary: Whistles a remote decode job into a supervised child process.
Author-email: Audio Lab Utilities <lab@example.org>
License: MIT
Project-URL: Homepage, https://pypi.org/project/decodewhistle/
Keywords: jobs,runner,subprocess,manifest,notebooks
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# decodewhistle

Whistles a remote decode job into a supervised child process.

The job source lives on a URL and changes between runs; this package only
fetches it, stages its keyword arguments and supervises a child interpreter.
The caller's process never imports or evaluates the downloaded file.

## Install

```bash
pip install decodewhistle
```

Standard library only, no compiled parts.

## Usage

```python
from decodewhistle import run

code = run("https://example.org/jobs/segment_check.py", budget=600, take="a2")
```

`run()` blocks until the child exits and returns its status. Extra keywords are
written to `manifest.json` next to the downloaded job and read back by the job
itself through `sys.argv`.

## Behaviour

- fresh private staging directory per call, so parallel jobs cannot collide
- bounded retries for transient transport errors only
- explicit JobFetchError when the source cannot be obtained
- no silent execution of stale code

## Limits

The remote file must define `run(**kwargs)` and the manifest values must be
JSON serialisable.

MIT licensed.
