Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.0 instead.
Reason given by maintainers: missing third party license version; use 0.1.1

lifecycle-runner

Run a local command to completion. Three operations over one contract (commandport):

from commandport.domain import CaptureSpec, RunSpec, StreamSpec
from lifecycle_runner.api import capture, run, stream

done = capture(CaptureSpec(("git", "rev-parse", "HEAD"), timeout_seconds=15))
if done.ok:
    print(done.stdout.strip())

for line in stream(StreamSpec(("pytest", "-q"), timeout_seconds=600)):   # a LineStream
    print(line, end="")

run(RunSpec(("make", "build"), inherit_stdio=True))   # attached to this console, or windowless without one

Also a scheduler-task entry point: python -m lifecycle_runner --log run.log --timeout 1800 -- cmd args....

Tests: lifecycle_runner.api.use_commands(commandport.testing.FakeCommandRunner()).

It depends on proclaunch only for the one definition of "no console window" and the process-tree kill.

Metadata

Release files for lifecycle-runner 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lifecycle-runner 0.1.0
File Size Uploaded
lifecycle_runner-0.1.0.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lifecycle-runner 0.1.0
File Interpreter ABI Platform
lifecycle_runner-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / lifecycle_runner-0.1.0.tar.gz

Download URL lifecycle_runner-0.1.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
399f0117c5868be5f3255f5a198ddf5f533264993145dbc8ed7e170368f4a0c0
BLAKE2b-256 checksum
How to use checksums
6d5eaf062174d9d43f00cf600869fd4a015089b2def3722fb3a26b14ed36ab37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / lifecycle_runner-0.1.0-py3-none-any.whl

Download URL lifecycle_runner-0.1.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5a1cdb4ee19a3e1787a8c3860402c825ed4724fc99df2037618d80bf596906b
BLAKE2b-256 checksum
How to use checksums
c136019a2299dce3795d223849062802be7c6fa335b771d524fce5f7a3de3744
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.2.0

1 release file

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page