Skip to main content

A CLI tool to count spacebar presses.

Project description

spacebar-counter

A simple Python CLI tool to count your spacebar presses per day and visualize your stats!

Installation

Install from PyPI:

pip install spacebar-counter

Or install the latest version from GitHub:

pip install git+https://github.com/kalashb/spacebar-counter.git

Usage

Start tracking your spacebar presses:

spacebar-counter start
  • This will count your spacebar presses for the current day.
  • The count resets automatically at midnight.
  • A file named spacebar_stats.json will be created in the directory where you run this command.
  • This file stores your daily spacebar stats (date, count, first and last press times).

Generate a dashboard:

spacebar-counter dashboard
  • This creates spacebar_dashboard.html in the same directory.
  • Open it in your browser to see your daily spacebar stats as a dot plot.

Data Storage

  • spacebar_stats.json: Stores your daily stats. Created/updated when you run start.
  • spacebar_dashboard.html: The dashboard file. Created/updated when you run dashboard.
  • Both files are created in the directory where you run the commands.
  • Each user has their own local files; your stats are private and not shared.

Requirements

  • Python 3.7+
  • pynput
  • plotly
  • typer

License

MIT


Tip:

  • Add a "Features" section if you want to highlight more.
  • Add a "Contributing" section if you want others to help improve your tool.

Would you like me to update your README.md for you? If so, let me know your GitHub username and repo name, or I can leave placeholders for you to fill in!

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

spacebar_counter-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

spacebar_counter-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file spacebar_counter-0.1.2.tar.gz.

File metadata

  • Download URL: spacebar_counter-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for spacebar_counter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 be3ba29af1b14b018f27d66b3cbdf6a769c5215efa78fd64c32e1f5e9088c347
MD5 fac3343efce61d1f80f1d633b65d7dcc
BLAKE2b-256 6ed04540405f23f88bfe5d154f4acde44bb51b9bab8118577170c5cbc427052d

See more details on using hashes here.

File details

Details for the file spacebar_counter-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for spacebar_counter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c39472674330961739d053d593033d414de2054f297c998f9dd7db41322eca1
MD5 cabd82275ddf34166602233adc6b6324
BLAKE2b-256 637413d6f3d822c85917344ec3dc67ed5d2fe366c52184994bd6f8309ad96008

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