character counter
a powerful python script and desktop utility to count characters, words, sentences, lines, paragraphs, and estimated pages. features a rich, multi-tab tkinter gui with advanced text metrics and full cli support.
features
1. advanced text metrics
- readability indices: flesch reading ease & flesch-kincaid grade level with educational grade interpretations.
- speech & timing estimates: reading time (at 200 wpm) and speaking time (at 130 wpm) formatted nicely.
- keyword density analysis: lists top 5 content-bearing keywords (excluding common english stopwords).
- character frequency distribution: tracks the most frequently used alphanumeric characters.
2. redesigned gui (tkinter)
- multi-tab notebook layout:
- overview: standard grid of layout cards showing basic counts and page estimations.
- readability & timing: detailed cards for reading ease levels and verbal/silent time tracking.
- keywords: lists the top keywords side-by-side with a dynamic, custom canvas-drawn density bar chart.
- character frequency: displays top characters side-by-side with a dynamic frequency bar chart.
- dark mode toggle: instantly switch between high-contrast light and low-strain dark themes.
- text formatting toolbar: selection-aware uppercase, lowercase, title case, sentence case, and whitespace cleaning converters.
3. command-line interface
- json formatting: output all metrics as structured json using
--jsonor-j. - specific metric filtering: filter output to print only words, characters, readability, or sentences.
- regex querying: search for and count custom strings or regular expressions via
--query/-q.
usage
gui mode
run the script with no arguments to open the gui:
python3 src/main.py
cli mode
run with --cli or -c to force use in the terminal:
python3 src/main.py --cli
examples:
- analyze a file:
python3 src/main.py path/to/file.txt
- pipe text directly:
echo "some text to analyze" | python3 src/main.py
- get json output:
python3 src/main.py --json path/to/file.txt
- extract only specific metrics (e.g. words & lines):
python3 src/main.py --words --lines path/to/file.txt
- count regex pattern occurrences:
python3 src/main.py --query "[a-z]+ing" --regex path/to/file.txt
requirements
- python 3
- tkinter (built-in)
- collections, json, math, re, argparse (built-in standard library)
Metadata
Release files for character-counter-maaren 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| character_counter_maaren-0.1.0.tar.gz | 12.8 kB | Without provenance | Details for character_counter_maaren-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| character_counter_maaren-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for character_counter_maaren-0.1.0-py3-none-any.whl |
Total release size: 24.8 kB
Release files / character_counter_maaren-0.1.0.tar.gz
| Download URL | character_counter_maaren-0.1.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3050a11e802c5b83d64b098db68759d540a7dd4326fd6e43dcbb28251abbcd97
|
|
BLAKE2b-256 checksum How to use checksums |
512981d8404d0efb4d7b894400c32ab6f8eeae80ef3eba368ec7296d143e46c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / character_counter_maaren-0.1.0-py3-none-any.whl
| Download URL | character_counter_maaren-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dacac90ca71f817f720da4f918c1caeb686713067dc4eed7c6661c8b0c760f9a
|
|
BLAKE2b-256 checksum How to use checksums |
cd69e4b988b882c6ef800f8ff253544e5370505e470138799091b1939abc330e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for character-counter-maaren 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.