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/<your-username>/<your-repo>.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.1.tar.gz (3.1 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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spacebar_counter-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 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.1.tar.gz
Algorithm Hash digest
SHA256 d0d285a7bd6f5ef7115c2a37c983984159696ddf5835fcb5767e53c67666bdc3
MD5 5db0657efcc6f07f4d79cd43ccb49a68
BLAKE2b-256 90f5a4dc60d357c8496624947aa4a355a85f1734119cda4062f399d71791063a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spacebar_counter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6967687d3422e66d8293110b37a6db4d31afd941c8c10c5bf3b4986ee8f0b158
MD5 d2995bc36642276878932340409a63f9
BLAKE2b-256 3cac15c6f65b95bd9f56e6885ee7e2b211afc0fa7597fe7ac96accaae83da666

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