Simpel and Interactive regex shell
Project description
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.
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
orfinditer
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:
- Write a Regex Pattern: Enter your regex pattern in the designated input area.
- Choose a Mode: Select either
match
orfinditer
to apply your regex pattern. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rexi-1.2.0.tar.gz
.
File metadata
- Download URL: rexi-1.2.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d273ef40457131bc315f56a50b2bab2421eeaca2e133377d5a1a4f6702d99ba |
|
MD5 | ab6b289a5cf4e44d9baefd0a6ef1874d |
|
BLAKE2b-256 | eb0f69ffb8cffed809abef58df6802e0e0ae704d236bf215059f0f7cdbd659c9 |
File details
Details for the file rexi-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: rexi-1.2.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b67f9feac10de36e87f1aa836004de7bceb1fd77d091b76289705d0f5a32d7e |
|
MD5 | 8dbdd8d312764c25d17e4a371b407919 |
|
BLAKE2b-256 | ea796feaf0f99299ee8ed50850445ba1224a401a48126573cc7a2756537a6aa4 |