⬇ Markdown Word Count
A word counter for raw Markdown files, excluding punctuation, footnotes, and special Markdown or HTML tag syntax.
💻 Installation
You will need...
- 🐍 Python 3
- 🐑 PIP3 or a clone of this repo.
▶ Usage
Through PIP
The easiest way is to run:
pip install markdown-word-count
Then, you'll be able to analyze any file by passing its name (relative path) to the mwc script:
mwc yourfile.md
You can also pass in multiple files or a blob if your shell supports it. This allows for checking all files in a folder, for example.
mwc text1.md text2.md
mwc test/*.md
Manually
If you want to clone the repo and run the Python script manually, run:
python mwc/cli.py myfile.md
If this doesn't work, try python3 instead of python.
⛏ Development
Run this to execute all tests:
python -m unittest discover
💬 Ports to Other Programming Languages
- A PHP port can be found here, with thanks to @Arcesilas!
Metadata
Release files for markdown-word-count 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 | |
|---|---|---|---|
| markdown_word_count-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| markdown_word_count-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / markdown_word_count-0.1.0.tar.gz
| Download URL | markdown_word_count-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56095ce1b1934a988b8dbe7dd5d9bb3f3ffcf353afa3f46adc8c26ea56501d31
|
|
BLAKE2b-256 checksum How to use checksums |
504da747bf3756fb0a7f24920e864b104d417e636daadd23ffbe032dcd2ce152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / markdown_word_count-0.1.0-py3-none-any.whl
| Download URL | markdown_word_count-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2cec5ee5ed04ea439651c732cfd8a610c8f676657749453819561639af83d94
|
|
BLAKE2b-256 checksum How to use checksums |
c8d3ea8588b925d4de53b76ddd80739332daeb6b1eebe459e3e397739142ce08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|