Skip to main content

Terminal program to display countdown timer

Project description

PyPI Status Python Version License

Tests Codecov

This project is based on a Python Morsels exercise for a command-line countdown timer. If you’re working on that exercise right now, please don’t look at the source code for this. 😉

an adorable snake taking a bite out of a cookie with the words Python Morsels next to it (Python Morsels logo)

Wondering how this package works? Don’t look at the source code just yet! Instead, try implementing this package with the Python Morsels “countdown” exercise!

Features

  • Full-screen countdown timer, centered in the terminal window

  • Responsive timer size based on terminal window width/height

  • Command-line interface for Linux/Mac/Windows

  • Pause/resume with p, k, Space, or Enter

  • Add / remove time with + or -

To start a timer:

countdown 6m30s

32:53 shown in large letters in center of an xterm window (black background with white text)

14:57 shown in large letters in center of terminal window (light background with darker text)

Requirements

  • Python 3.10+

Installation

You can install countdown-cli via uv from PyPI:

uv tool install countdown-cli

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, countdown-cli is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

countdown_cli-2.1.0.tar.gz (159.9 kB view details)

Uploaded Source

Built Distribution

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

countdown_cli-2.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file countdown_cli-2.1.0.tar.gz.

File metadata

  • Download URL: countdown_cli-2.1.0.tar.gz
  • Upload date:
  • Size: 159.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for countdown_cli-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a4c62a4a0989c4986ff1e881e2ca56c84445974fb75df9419ee21e25f4465f8c
MD5 14917cbfec30ca7fe0089540bc001206
BLAKE2b-256 0f87680fd0afa3cf356a8931f6e16b86a9728f5cfb1c9ec46807ae484d9f5306

See more details on using hashes here.

File details

Details for the file countdown_cli-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for countdown_cli-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78681dd6f380a482b36a685507965725d85b56362a58448f718de064a2748391
MD5 fa49f75ab2abc88723e7fad1a391f2cb
BLAKE2b-256 7fdefd12572e433f78f9c594b3cedc3092955d0e4b81736329579aed8f7e1642

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