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

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

Uploaded Source

Built Distribution

pyfile_runner-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfile_runner-0.1.1.tar.gz
  • Upload date:
  • Size: 67.0 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.1.tar.gz
Algorithm Hash digest
SHA256 e73eb25b194cb783bf44cd0924760c50988f01334431afb91de7555979da2d19
MD5 db621f2f0e881e30e7852e7a6855b9a7
BLAKE2b-256 6ba9b37cdd57bc1d683894daf925011e741387f87cf54cc6e507bcceeb2adb21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfile_runner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1edbb69da4e77296a7b2a5ca201d1ee14675a44dbf559278040afba7f7b57ef2
MD5 ee2f54c8dd6214d3bbfbe7f33135256c
BLAKE2b-256 5d0e247f309ff78861df9d949c020261cd54b436c4b527e3aba5bceea0893dbb

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