Skip to main content

wordgoal

Build codecov

wordgoal is a command line tool for graphing your word count toward a goal.

wordgoal example

Installation

wordgoal requires Python 3.8 or later.

pip install wordgoal

Configuration

wordgoal reads configuration from a YAML file named wordgoal.yml inside each directory.

For an example, see the wordgoal.yml file for this project.

Describing your word count goals

In order of precedence, a document's word count goal can be described by:

  1. A Markdown document's goal can be described in its front matter:

    ---
    goal:
      words: 400
    ---
    # My 400-word short story
    
    It was the best of times…
    
  2. Any file's goal can be described in its directory's wordgoal.yml:

    files:
      short-story.txt:
        goal: 2000
      long-story.txt:
        goal: 80000
    
  3. To apply the same goal to all the files in a directory, set the default in that directory's wordgoal.yml:

    default:
      goal: 2000
    
  4. If neither a goal nor a default has been described for a file, a goal of 1,000 words will be assumed.

Ignoring files and directories

wordgoal tracks the following files in each directory and subdirectory:

  • *.markdown
  • *.md
  • *.text
  • *.txt

To ignore a specific file or subdirectory, add its name to that directory's wordgoal.yml:

ignore:
  - LICENCE.txt  # file
  - drafts       # subdirectory

Styling the output

Styling options can be set in each directory's wordgoal.yml:

style:
  fractions: true    # <current word count> / <goal>
  percentages: true

Related packages

wordgoal uses:

Thank you! 🎉

My name is Cariad, and I'm an independent freelance DevOps engineer.

I'd love to spend more time working on projects like this, but--as a freelancer--my income is sporadic and I need to chase gigs that pay the rent.

If this project has value to you, please consider ☕️ sponsoring me. Sponsorships grant me time to work on your wants rather than someone else's.

Thank you! ❤️

Metadata

Release files for wordgoal 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wordgoal 1.1.0
File Interpreter ABI Platform
wordgoal-1.1.0-py3-none-any.whl Python 3 none any Details

Release files / wordgoal-1.1.0-py3-none-any.whl

Download URL wordgoal-1.1.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dd3503ce8b50140f5eff13f671b302f11b212f9a7a2154c55c138a98c3f3cd8
BLAKE2b-256 checksum
How to use checksums
783d99ee24cd594048d2a7e35ca424bb88c55be851bb192bbb131d9be403c991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page