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
====
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.0.tar.gz
(6.3 kB
view details)
File details
Details for the file pire-0.2.0.tar.gz
.
File metadata
- Download URL: pire-0.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f07c49c0b88f4e7b1571711ea151130831470963876d5153531c7713ba7ddca5 |
|
MD5 | 4022ddaad84ccc648187eb65cfcb4de0 |
|
BLAKE2b-256 | 2173f2aaf92a01835b0b2ebca56b2b919bfdd9d74a45796de42d629fe3e74212 |