Skip to main content

Word counter for raw Markdown files

Project description

⬇ Markdown Word Count

Python package

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdown_word_count-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markdown_word_count-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for markdown_word_count-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56095ce1b1934a988b8dbe7dd5d9bb3f3ffcf353afa3f46adc8c26ea56501d31
MD5 bd340a2896868827aec5ab08ebd146f7
BLAKE2b-256 504da747bf3756fb0a7f24920e864b104d417e636daadd23ffbe032dcd2ce152

See more details on using hashes here.

File details

Details for the file markdown_word_count-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for markdown_word_count-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cec5ee5ed04ea439651c732cfd8a610c8f676657749453819561639af83d94
MD5 8a3b670ac21a07135570a89a619bbfb4
BLAKE2b-256 c8d3ea8588b925d4de53b76ddd80739332daeb6b1eebe459e3e397739142ce08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page