PieReX (Python Re eXecute)
PieReX is a lightweight file watcher for Python development. It monitors files and directories for changes and automatically restarts the given Python script when modifications occur. This helps streamline the development process by reducing manual restarts.
Features
- Watches for file changes in the specified directories
- Automatically restarts the Python script when a change is detected
- Improves development workflow by reducing manual intervention
Installation
You can either install the tool manually by building it first or directly from the PyPI index
Manually
Install packages required for building:
pip install setuptools wheel twine
Build the tool:
python setup.py sdist bdist_wheel
Then finally install it using pip:
pip install .
From the PyPI Index
pip install pierex
Usage
pierex your_script.py
Optional Flags
-d,--dir <path>: Specify the directory to watch (default: current directory)-e,--ext <ext1,ext2>: Watch specific file extensions (default:py)
Example:
pierex -d src -e py,toml my_script.py
Requirements
- Python 3.6+
How It Works
- Pierex monitors the specified directory for changes in relevant files.
- When a change is detected, it stops the running Python script.
- It restarts the script automatically to reflect the changes.
Contributing
Pull requests and feature suggestions are welcome! Feel free to open an issue if you find a bug or have an idea to improve Pierex.
License
MIT License
Metadata
Release files for pierex 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pierex-0.1.0.tar.gz | 3.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pierex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / pierex-0.1.0.tar.gz
| Download URL | pierex-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4ce00ef5ad75b9a9a5a565234b4a5fb985100916ab8667023cbbc7bad3453b4
|
|
BLAKE2b-256 checksum How to use checksums |
daf3593347d361c7b59807e92dbb62b957e04cd9efcdcb315236e4bbe0b15b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2025.
Transparency logRelease files / pierex-0.1.0-py3-none-any.whl
| Download URL | pierex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43ab5ac175f5f05e16f917125b306ef7deb6dad1006ff887dd6765de6ced384a
|
|
BLAKE2b-256 checksum How to use checksums |
c6b8fc3da760f1e796057bc5d4f63298ef8b740f52ae57022cd1762a246e6281
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2025.
Transparency logSecurity for pierex 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pierex-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.