Skip to main content

Python Interactive Regular Expression

Project description

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

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

pire-0.2.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pire-0.2.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pire-0.2.1.tar.gz.

File metadata

  • Download URL: pire-0.2.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pire-0.2.1.tar.gz
Algorithm Hash digest
SHA256 97e9fb594ea81df025d1a529096b1620b360f426f0b0fc6275624fe92076a914
MD5 a28760aa927015aeff3b2b14d7fb25e8
BLAKE2b-256 192f12b930bfe7ce547e237a5e8dafbeceab52ef25772b604b339f7f971cbdb7

See more details on using hashes here.

File details

Details for the file pire-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pire-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pire-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 174a3df11bfc29f4f30033e875102fa564061327d0e82d6d334e6df1333bd2dc
MD5 3c342e0e5d1a6bc3da8b96caba912250
BLAKE2b-256 ebba195787bdef17a0666b2c790764b33fb100d92985dd646d6c3cc0bf600351

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page