Skip to main content

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)

python -m pip install statusline

Install (editable / dev)

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:

python -m pip install -e .

Versioning / Release Notes

  • PyPI publishes versioned releases. Install a specific version like:
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

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.

Metadata

Release files for statusline 0.1.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 statusline 0.1.1
File Size Uploaded
statusline-0.1.1.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / statusline-0.1.1.tar.gz

Download URL statusline-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4a23558aae9d7abcea3c78bb26f8c311dd17f304375c1f8d4a6535111d987d13
BLAKE2b-256 checksum
How to use checksums
f5a32da62b98a365509c5a33f702aa3bcaf2176a7961d345ffc09b2d67667a5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / statusline-0.1.1-py3-none-any.whl

Download URL statusline-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e900e3f65b6f8d370f3c3f34a1d3dec48dc43321173c45c56ca822457dbc241c
BLAKE2b-256 checksum
How to use checksums
c47ce74001460633ed07cc49d16992fa1ba7ca9d45f8add2e583309c00a71f0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.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