Metadata-Version: 2.4
Name: statusline
Version: 0.1.1
Summary: Tiny single-line status updater for CLI
Author-email: Hunhee Choi <hunhee9982@gmail.com>
License: MIT License
        
        Copyright (c) 2026 HunheeChoi
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/hunhee99/statusline
Project-URL: Repository, https://github.com/hunhee99/statusline
Project-URL: Issues, https://github.com/hunhee99/statusline/issues
Keywords: cli,terminal,progress,status,logging,tqdm
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# statusline

A tiny, dependency-free status logger for CLI scripts.  
Made because I got tired of spamming `print()` in brute-force / crawling / long loops.

## What it does

`emit()` routes your message automatically:

- If the message starts with `[CHECKING]` (or your custom prefix), it **updates in-place** on a single line (loading-bar vibe).
- Otherwise, it prints a **persistent result line** (won’t be overwritten).

## Install (PyPI)

```bash
python -m pip install statusline
```

## Install (editable / dev)

```bash
git clone https://github.com/hunhee99/statusline.git
cd statusline
python -m pip install -e .
```

Tip: If you're using a specific interpreter/venv, always install with that same Python:

```bash
python -m pip install -e .
```

## Versioning / Release Notes

- PyPI publishes versioned releases. Install a specific version like:

```bash
python -m pip install statusline==X.Y.Z
```

- Git tags match released versions. Check tags or release notes on GitHub if you need
changelogs or want to pin a specific release.

- Note: `0.1.1` removes the `enabled` argument from `StatusLine` to simplify behavior.

## Usage

```python
from statusline import StatusLine

st = StatusLine()  # or: StatusLine(checking_prefix="[PROGRESS]")

st.emit("[CHECKING] probing...")     # updates the same line
st.emit("[CHECKING] still probing...")

st.emit("do not erase this line!")   # printed as a normal line (kept on screen)
```

### Notes
- Prefix matching is simple string logic: `msg.startswith(checking_prefix)`.
- If your editor (e.g., VSCode/Pylance) shows missing-import warnings while it still runs,
your language server is probably using a different interpreter. Select the same interpreter
you used to install this package and restart the language server.

---
