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()
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1f4edd1775c2ba3fce0c53fc6631194716bd3dc7399a8154ad04608e11c2147
|
|
| MD5 |
a3d901198dc845ad895e2ddf1e292511
|
|
| BLAKE2b-256 |
decf0561864cb241dca2f12582eac07ab10c98a31d9b8cfd417283f92df7b3dd
|
File details
Details for the file pyfile_runner-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pyfile_runner-0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2efd305aae75735a42a5ee9ba270099b2ac497843f397703856f8e619bbfc8c
|
|
| MD5 |
5b3f746e2510518fa222ad580c63f430
|
|
| BLAKE2b-256 |
b971a0fc0b765540d4d0d007fff89b183d278afbf132b357a84eb4d627786bc3
|