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

Uploaded Source

Built Distribution

pyfile_runner-0.1.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfile_runner-0.1.2.tar.gz
  • Upload date:
  • Size: 67.1 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.2.tar.gz
Algorithm Hash digest
SHA256 73bb5efc9a7e43093834fcfdde55e883f5535d3bbaed9eb3e73868eb6111bc46
MD5 c86bda7ea4c54d3cca9abbc2ef5c02ff
BLAKE2b-256 82a06fefb2ba921bc324e73e5ebbdd69529578a9cc61215fa1a85731a1f233aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfile_runner-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2411b44df14ab9d44ea63913179a45f3a34966f8fcad29ddff2c8c2520f4b14c
MD5 0912211328f8fad69fd4b4af595c5a4e
BLAKE2b-256 a46020b2dbea2ef5b3e5ad73c7960fa18f38683c5bb4b422fdc576eba8982a9f

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