Skip to main content

Simpel and Interactive regex shell

Project description

Rexi

Testing License coverage versions style


rexi is a simple yet powerful CLI tool designed for developers, data scientists, and anyone interested in working with regular expressions directly from the terminal. Built with Python and leveraging the textual library, rexi offers a user-friendly terminal UI to interactively work with regular expressions. Demo

Features

  • Interactive UI: Built on top of the textual library, providing a clean and intuitive interface to work with.
  • Regex Evaluation: Supports evaluating regular expressions using either match or finditer modes, allowing users to select the most suitable method for their needs.
  • Real-time Feedback: Instantly see how your regular expression patterns match or find iterations over your input, enhancing learning and debugging experiences.
  • Easy to Use: Get started quickly with a simple command. rexi reads input directly from stdin, streamlining the process of testing regular expressions.

Installation

pip install rexi

Usage

cat /etc/hosts | rexi

Once the UI is open, you can:

  1. Write a Regex Pattern: Enter your regex pattern in the designated input area.
  2. Choose a Mode: Select either match or finditer to apply your regex pattern.
  3. View Results: See the marked output based on your regex pattern and selected mode in real-time.

Contributing

We welcome contributions from the community! Whether it's adding new features, fixing bugs, or improving documentation, your help is appreciated. Please see our contribution guidelines for more information on how to contribute to rexi.

rexi is here to make working with regular expressions in the terminal an easy and interactive experience. Try it out and see how it can streamline your regex testing and learning process!

License

This project is licensed under the terms of the MIT license.

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

rexi-1.2.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

rexi-1.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file rexi-1.2.1.tar.gz.

File metadata

  • Download URL: rexi-1.2.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for rexi-1.2.1.tar.gz
Algorithm Hash digest
SHA256 307ce5efa4a921b472736f1334652b206a77eb1130528ee5995a45c0a5b1fe82
MD5 edafae0e7acc4503e4944ce6b026fbe2
BLAKE2b-256 79e1fb8f5b939f6d71012b173071a8a9791e7628f1f61491a46be1d009636378

See more details on using hashes here.

File details

Details for the file rexi-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: rexi-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for rexi-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60ba1098d48a83c0628381bac03f4979b124f86ba77b5f9e76de04bacdcc0ee8
MD5 ef6ac524faf11787f019ef52fd6d7895
BLAKE2b-256 bfa91760518b503ebd5d09a0d950d8cbe7167ce7cee9a13027c460c78d3c57b9

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