⬇ 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 | Provenance | Actions |
|---|---|---|---|---|
| markdown_word_count-0.1.0.tar.gz | 4.6 kB | Without provenance | Details for markdown_word_count-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| markdown_word_count-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for markdown_word_count-0.1.0-py3-none-any.whl |
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
|
Security for markdown-word-count 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.