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.3.tar.gz (67.3 kB view details)

Uploaded Source

Built Distribution

pyfile_runner-0.1.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfile_runner-0.1.3.tar.gz
  • Upload date:
  • Size: 67.3 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.3.tar.gz
Algorithm Hash digest
SHA256 41d221d20de4e1df9f234cd3bb19529dcb16392c47f5e79f659f2be8fe44ecad
MD5 e499b5e9f6f389ba89e391549a6cee31
BLAKE2b-256 9571c569aa77d6bffad611a66ceb93a81314555f3ecba3d04ebc422bd7987f16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfile_runner-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1a8e274ac2c4abfa49748b37eb0ca96b050a3435f80150e27f78f3d50493c2d
MD5 501ee2d4b7c3df30fdf8b2f850509de2
BLAKE2b-256 7e30090f669f4f94a773c44929d812cd838133989e91e39ca387c99b6b56c776

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