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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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