Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johannestaas/pire
Python Interactive Regular Expressions
https://github.com/johannestaas/pire
Last synced: about 2 months ago
JSON representation
Python Interactive Regular Expressions
- Host: GitHub
- URL: https://github.com/johannestaas/pire
- Owner: johannestaas
- License: other
- Created: 2019-09-17T08:02:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T03:41:04.000Z (over 4 years ago)
- Last Synced: 2024-03-27T03:45:10.721Z (3 months ago)
- Language: Python
- Size: 293 KB
- Stars: 124
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Lists
- cli-apps - pire - Python Interactive Regular Expressions. (<a name="programming"></a>Programming)
- awesome-cli-apps - pire - Python Interactive Regular Expressions. (<a name="programming"></a>Programming)
README
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: centerInstallation
------------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: centerReleases
--------: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