Socket
Socket
Sign inDemoInstall

pire

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pire

Python Interactive Regular Expression


Maintainers
1

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: 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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc