An open API service indexing awesome lists of open source software.

https://github.com/amirali104/text2excel

A GUI desktop application that can extract data from a text file and put them in an Excel or CSV file using regular expression (regex) patterns
https://github.com/amirali104/text2excel

automation csv data-extraction data-extractor data-processing excel openpyxl productivity-tool productivity-tools regex text-parsing text-processing text-to-excel tkinter tkinter-gui

Last synced: 12 days ago
JSON representation

A GUI desktop application that can extract data from a text file and put them in an Excel or CSV file using regular expression (regex) patterns

Awesome Lists containing this project

README

          

# Text2Excel

**Text2Excel** is a desktop GUI application that extracts data from text files and saves them into Excel or CSV files using regular expression (regex) patterns. It is built with Python’s `re` module.

![screenshot](assets/screenshot.png)

## Features
- Add regex patterns via the **patterns widget** (right-click → context menu).
- Choose whether data goes into **columns** or **rows**, and select the target sheet.
- **Exact Order** option:
- Disabled → places data starting from the last filled row in the file.
- Enabled → aligns data strictly with existing entries (only in “put in columns” mode).
- Support for regex **groups**:
- Example:
```regex
\w{5}(\d)
```
This matches 5 word characters followed by a digit, but only the digit will be saved if wrapped in a group.
- Export to **Excel (.xlsx)** or **CSV (.csv)** (CSV available via the output file context menu).

**note: You cannot place multiple groups in one pattern**

## Installation
This project requires `openpyxl`. Install it with:

```bash
python -m pip install openpyxl
```

Version used during development:
```bash
python -m pip install openpyxl==3.1.5
```

Run the app with:
```bash
python src/text2excel.py
```
## Build
To build an executable with `pyinstaller`:
```bash
cd build
pyinstaller text2excel.spec
```

Install `pyinstaller` if needed:
```bash
pip install pyinstaller
```

## License

This project is licensed under the [MIT License](LICENSE).

[def]: assets/screenshot.png