Skip to main content

pire

Python Interactive Regular Expression

PIRE is an interactive command-line interface allowing you to edit regexes live and see how your changes match against the input you specify.

.. image:: https://github.com/johannestaas/pire/blob/master/screenshot.png :scale: 75% :alt: example usage :align: center

Installation

Through PyPI::

$ pip install pire

Or from the project root directory::

$ python setup.py install

CLI Usage

Use --help/-h to view info on the arguments::

$ pire --help

Run pire against a text file::

$ pire application.log

Regexes used will be cached to a file in the present directory named regex.pire.

Pass a custom newline-delimited file with regexes::

$ pire -r app.pire application.log

Pass multiple files::

$ pire -r app.pire application.log application.log.1 application.log.2

Or::

$ pire -r app.pire application.log*

Hotkeys

.. image:: https://github.com/johannestaas/pire/blob/master/help.png :scale: 75% :alt: hotkeys :align: center

Releases

:0.2.0: - added several hotkeys for navigation - improved performance :0.1.1: - fixed bug with missing regex.pire file and output display :0.1.0: - curses interface implemented :0.0.1: - Project created

Metadata

Release files for pire 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pire 0.2.1
File Size Uploaded
pire-0.2.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pire 0.2.1
File Interpreter ABI Platform
pire-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / pire-0.2.1.tar.gz

Download URL pire-0.2.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
97e9fb594ea81df025d1a529096b1620b360f426f0b0fc6275624fe92076a914
BLAKE2b-256 checksum
How to use checksums
192f12b930bfe7ce547e237a5e8dafbeceab52ef25772b604b339f7f971cbdb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pire-0.2.1-py3-none-any.whl

Download URL pire-0.2.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
174a3df11bfc29f4f30033e875102fa564061327d0e82d6d334e6df1333bd2dc
BLAKE2b-256 checksum
How to use checksums
ebba195787bdef17a0666b2c790764b33fb100d92985dd646d6c3cc0bf600351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.1

1 release file

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