Skip to main content

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

  1. Pierex monitors the specified directory for changes in relevant files.
  2. When a change is detected, it stops the running Python script.
  3. 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)

Source distribution for pierex 0.1.0
File Size Uploaded Provenance
pierex-0.1.0.tar.gz 3.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pierex 0.1.0
File Interpreter ABI Platform
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page