Skip to main content

Simple Python library to help run multiple Python files and view their output while running

Project description

Pyfile Runner

Simple Python library to help run multiple Python files and view their output while running.

This "library" contains both a runner, and a TUI which uses that runner to display the output nicely in a terminal.

Example

# Assuming you have some files you want to run in a directory named "tests"
if __name__ == '__main__':
    root = Path("tests")

    runner = PyfileRunner()
    runner.set_number_of_workers(4)  # Or remove this to use the available parallelism on your machine
    runner.add_directory(root)

    # Now you can either call `runner.run()` and use it for example in a CI where there is no interface needed.
    
    # Or you can wrap it in the TUI, to get nice output.
    ui = PyfileRunnerUI(runner=runner)
    ui.set_root(root)
    ui.run()

screenshot

Building and publishing

uvx --from build pyproject-build --installer uv
uvx twine upload dist/*

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

pyfile_runner-0.1.4.tar.gz (67.4 kB view details)

Uploaded Source

Built Distribution

pyfile_runner-0.1.4-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pyfile_runner-0.1.4.tar.gz.

File metadata

  • Download URL: pyfile_runner-0.1.4.tar.gz
  • Upload date:
  • Size: 67.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pyfile_runner-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b1f4edd1775c2ba3fce0c53fc6631194716bd3dc7399a8154ad04608e11c2147
MD5 a3d901198dc845ad895e2ddf1e292511
BLAKE2b-256 decf0561864cb241dca2f12582eac07ab10c98a31d9b8cfd417283f92df7b3dd

See more details on using hashes here.

File details

Details for the file pyfile_runner-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pyfile_runner-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f2efd305aae75735a42a5ee9ba270099b2ac497843f397703856f8e619bbfc8c
MD5 5b3f746e2510518fa222ad580c63f430
BLAKE2b-256 b971a0fc0b765540d4d0d007fff89b183d278afbf132b357a84eb4d627786bc3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page