Metadata-Version: 2.3
Name: moch
Version: 0.2.6
Summary: TUI to test and develop regexes
Author: Dor Schrieber
Author-email: schreiberdor@gmail.com
Requires-Python: >=3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: colorama (>=0.4.4,<0.5.0)
Requires-Dist: rich (>=13.9.4,<14.0.0)
Requires-Dist: textual (>=1.0.0,<2.0.0)
Requires-Dist: typer (>=0.9.0,<0.10.0)
Project-URL: Homepage, https://github.com/dor1202/moch
Project-URL: Repository, https://github.com/dor1202/moch
Description-Content-Type: text/markdown

```text
____________________________
 _ __ ___   ___   ___| |____
| '_ ` _ \ / _ \ / __| '_ \|
| | | | | | (_) | (__| | | |
|_| |_| |_|\___/ \___|_| |_|
```

## Mochi - Python Regex CLI Tool!

Mochi provides a terminal UI to test and develop regexes.

The aim of this project is to make it easier to test and develop regexes without having to leave the terminal or browse the web.

---

## Note...

Mochi is an idea of a frustrated developer who got the task of developing regexes and not by a big corporation with deep pockets.

It is a project that is being developed by a single person in their free time.

If you feel Mochi makes your regex journey a bit easier, saves you time and makes you more productive, please consider [sponsoring!](https://github.com/sponsors/dor1202)
Your donations will go a long way in keeping the project alive and beers in my fridge! 🍺

**Thank you!**

---

[![Release](https://img.shields.io/github/release-pre/dor1202/moch.svg)](https://github.com/dor1202/moch/releases)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dor1202/moch/blob/main/LICENSE)
<!-- [![Downloads](https://img.shields.io/github/downloads/dor1202/moch/total.svg)](https://github.com/dor1202/moch/releases) -->

---

## Screenshots

1. Match
   <img src="https://github.com/dor1202/moch/blob/main/assets/match_example.png?raw=true"/>
2. Substitution
   <img src="https://github.com/dor1202/moch/blob/main/assets/sub_example.png?raw=true"/>
3. Regex Options
   <img src="https://github.com/dor1202/moch/blob/main/assets/options_example.png?raw=true"/>

## Installation

* Via [Pypi](https://pypi.org/)

   ```shell
   pip install mochi-re
   ```

---

## Starting Mochi

  ```shell
  moch
  ```

---

## Building From Source

 Mochi is currently using Python v3.8.X or above.
 In order to build Mochi from source you must:

 1. Clone the repo
 2. Build and run the executable

      ```shell
      poetry run moch
      ```

---

## Mochi Compatibility Matrix

|         Mochi        | python |
| ------------------ | ---------- |
|     LTS     |   "3.8", "3.9", "3.10", "3.11", "3.12"   |

---

## Contributors

Without the contributions from these fine folks, this project would be a total dud!

<a href="https://github.com/dor1202/moch/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=dor1202/moch" />
</a>

---

## Known Issues

This is still work in progress! If something is broken or there's a feature
that you want, please file an issue and if so inclined submit a PR!

---

## Contributions Guideline

* File an issue first prior to submitting a PR!
* Ensure all exported items are properly commented

---

## References

Big thanks to the following projects for their inspiration:

* [Textual](https://github.com/Textualize/textual)
* [k9s](https://github.com/derailed/k9s)
* [rexi](https://github.com/royreznik/rexi)

Without them, this project would not be possible.
