Skip to main content

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.

Metadata

Release files for rexi 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rexi 1.2.1
File Size Uploaded
rexi-1.2.1.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rexi 1.2.1
File Interpreter ABI Platform
rexi-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / rexi-1.2.1.tar.gz

Download URL rexi-1.2.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
307ce5efa4a921b472736f1334652b206a77eb1130528ee5995a45c0a5b1fe82
BLAKE2b-256 checksum
How to use checksums
79e1fb8f5b939f6d71012b173071a8a9791e7628f1f61491a46be1d009636378
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure

Release files / rexi-1.2.1-py3-none-any.whl

Download URL rexi-1.2.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ba1098d48a83c0628381bac03f4979b124f86ba77b5f9e76de04bacdcc0ee8
BLAKE2b-256 checksum
How to use checksums
bfa91760518b503ebd5d09a0d950d8cbe7167ce7cee9a13027c460c78d3c57b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.13 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page