Skip to main content

hermes-textstats

hermes-textstats is a DIVE-ready Python package that turns short text, files, and notebook drafts into clear writing statistics.

The name connects the package to the Hermes Agent workflow used in the course. The package itself is intentionally small: it gives students a concrete package that can be built, tested, documented, and published from DIVE/JupyterHub.

Motivation

When I write short text for assignments, quiz explanations, README files, or project reflections, I sometimes want quick feedback about length without opening another tool. This package gives a simple example: a student can paste a paragraph into Python, a notebook, or the terminal and immediately see word count, sentence count, paragraph count, lexical diversity, longest sentence length, character count, and estimated reading time.

Example use cases:

  • checking the length of a reflection paragraph before submitting it;
  • measuring a short quiz explanation inside DIVE/JupyterHub;
  • using a small package project to practice the Hermes Agent + git + PyPI workflow.

Installation

python -m pip install hermes-textstats

Published package: https://pypi.org/project/hermes-textstats/

Quick Start

from hermes_textstats import analyze_text, count_words

text = "Hermes helps me build, test, and publish Python packages."
print(count_words(text))
summary = analyze_text(text)
print(summary)
hermes-textstats "Hermes helps me build, test, and publish Python packages."
hermes-textstats --json "Hermes helps me build, test, and publish Python packages."
hermes-textstats --report "Hermes helps me build, test, and publish Python packages."
hermes-textstats --file reflection.txt

API

  • count_words(text)
  • count_sentences(text)
  • count_paragraphs(text)
  • count_characters(text, include_spaces=True)
  • average_word_length(text)
  • estimate_reading_time(text, words_per_minute=200)
  • longest_sentence_length(text)
  • lexical_diversity(text)
  • analyze_text(text)
  • format_markdown_report(text)

Development

python -m pip install -e ".[test]"
python -m pytest tests/ -v
python -m build
python -m twine check dist/*

Project Notes

  • Paper package summary contains the one-line summary, short motivation paragraph, and visual evidence for TALE 2026 notes.
  • Paper notes records what I built, what Hermes helped with, and what is already verified.
  • DIVE verification lists the commands to run in DIVE before saying the package is verified there.
  • Notebook demo demonstrates the Python API in a notebook-style workflow.
  • Demo transcript shows the package running from the command line.
  • Showcase screencap is the compact visual for grant/paper updates.
  • Demo screencap is a screencap-style image made from the real CLI output.
  • Workflow diagram shows how DIVE, Hermes Agent, git, tests, docs, and TestPyPI/PyPI connect.

See docs/ACCOUNT_SETUP.md for the account/token steps used for TestPyPI, PyPI, and Telegram setup.

Metadata

Release files for hermes-textstats 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 hermes-textstats 0.1.1
File Size Uploaded
hermes_textstats-0.1.1.tar.gz 232.7 kB Details

Built distribution (wheel)

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

Total release size: 239.5 kB

Release files / hermes_textstats-0.1.1.tar.gz

Download URL hermes_textstats-0.1.1.tar.gz
Size 232.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2beb5a343ff1f593a805b2b2ea579a1c28460e10a68fa3f3ebb63b7639683a90
BLAKE2b-256 checksum
How to use checksums
80776929a97a500fbca19920e2ea8622c226591132b4d9e1a22d344e38c2c9cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

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

Download URL hermes_textstats-0.1.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c17ead626b20e81de2ae83a4c71e2ece3e6c18ac875c1e7a3303a00db79c245
BLAKE2b-256 checksum
How to use checksums
d64b17d7f255e1ade2d2df3168b619b132722830e5037196b3152fbe161b006c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

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