semvec/pypi-packages huggingface dataset:
async-image-extractor 1.1.0
Async Gemini-based image text extractor
Requires Python: >=3.7

# async_image_extractor

**async_image_extractor** is a Python package that uses Google's Gemini API to extract structured text from a batch of images. It supports async batch processing, customizable prompts, and model selection.

---

## 🚀 Features

- 🔍 Extracts English text from images using Gemini.
- ✅ Special handling for forms, checkboxes, and tables.
- ⚡ Asynchronous batch processing for speed.
- 🧠 Customizable prompt and model.
- 📦 Easy to use and extend.

---
## 🧾 Input Format
Each image in the list should be a format accepted by the Gemini API:

- Base64-encoded image string
- File-like object
- Raw image bytes
- You can preprocess PIL or OpenCV images to bytes/base64 before passing


---

##  Installation

Install using `pip`

For the latest stable release:

```bash
pip install medimage-extractor
```

## Usage

Initialize the extractor

``` python
from async_image_extractor import ImageTextExtractor
import asyncio
import time
from google import genai

# Setup Gemini client
# Setup Gemini client
client = genai.Client(api_key="GEMINI_API_KEY")

# Initialize extractor
extractor = ImageTextExtractor(
    client=client,
    model="gemini-2.0-flash",
    prompt="Extract all text from this medical image, preserving structure."
)

```

Run the extractor on a list of images

``` python
# images: a list of image objects (e.g., base64 strings or Gemini-compatible input)
results = asyncio.run(extractor.process_images(images))
```

The output will be in a list format, each item represents an image

``` bash
[
  "Patient Name: James\nAge: 32\nDiagnosis: Diabetes \n...",
  "Results:\n- Glucose: High\n- Hemoglobin: Normal\n...",
  "Discharge Instructions:\nTake insulin twice a day.\nFollow up in 1 week.\n...",
  ...
]
```
nmdown 0.1.0
A terminal-based markdown editor using curses
Requires Python: >=3.7

# NMdown

NMDown is a minimal terminal-based Markdown editor built with Python 3 and `ncurses`. It offers a clean editing experience with live syntax highlighting, autosave, and in-terminal search — all inside your terminal window.

---

## Features

- Markdown syntax highlighting (headers, bold, italic, code, lists, links, etc.)
- Live character count in the footer
- Header/footer UI with consistent styling
- Autosave every 30 seconds with a `.bak` backup file
- Flash message confirmation after autosave
- In-editor search (`Ctrl+F`) with next (`Ctrl+N`) and previous (`Ctrl+P`) navigation
- Safe cursor and rendering logic (handles terminal resizing and wide characters)

---

## ⌨️ Keybindings

| Key Combo   | Action               |
|------------|----------------------|
| `Ctrl+S`   | Save file            |
| `Ctrl+F`   | Search               |
| `Ctrl+N`   | Next match           |
| `Ctrl+P`   | Previous match       |
| `Esc`      | Exit editor          |
| Arrow Keys | Navigate cursor      |

---

## Usage

You'll be prompted to enter a filename. If the file exists, it will be loaded. If not, a new file is created.

---

## Installation

### Install via pip

```bash
pip install mnmdown
```

### Or clone from GitHub

```bash
git clone https://github.com/bearenbey/nmdown.git
cd nmdown
pip install .

# Run
nmdown
```

---

## License

This program is free software: you can redistribute it and/or modify  
it under the terms of the GNU General Public License as published by  
the Free Software Foundation, either version 3 of the License, or  
(at your option) any later version.

This program is distributed in the hope that it will be useful,  
but WITHOUT ANY WARRANTY; without even the implied warranty of  
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  
GNU General Public License for more details.

You should have received a copy of the GNU General Public License  
along with this program. If not, see <https://www.gnu.org/licenses/>.

© 2025 Eren Öğrül [termapp@pm.me](mailto:termapp@pm.me)