Word counter for raw Markdown files
Project description
⬇ 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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file markdown_word_count-0.1.0.tar.gz.
File metadata
- Download URL: markdown_word_count-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56095ce1b1934a988b8dbe7dd5d9bb3f3ffcf353afa3f46adc8c26ea56501d31
|
|
| MD5 |
bd340a2896868827aec5ab08ebd146f7
|
|
| BLAKE2b-256 |
504da747bf3756fb0a7f24920e864b104d417e636daadd23ffbe032dcd2ce152
|
File details
Details for the file markdown_word_count-0.1.0-py3-none-any.whl.
File metadata
- Download URL: markdown_word_count-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2cec5ee5ed04ea439651c732cfd8a610c8f676657749453819561639af83d94
|
|
| MD5 |
8a3b670ac21a07135570a89a619bbfb4
|
|
| BLAKE2b-256 |
c8d3ea8588b925d4de53b76ddd80739332daeb6b1eebe459e3e397739142ce08
|