Skip to main content

A Geeky Clock for Terminal Enthusiasts

Project description

Clox: A Geeky Clock for Terminal Enthusiasts


PyPI version built with Python3 GitHub repo size

Overview

Clox is a terminal-based clock application designed for terminal enthusiasts who appreciate simplicity, elegance, and productivity within their command-line environment. Whether you're coding, monitoring tasks, or simply enjoying the terminal aesthetic, Clox brings a stylish and customizable time display to your workspace.

PyPI Counter
Github Stars
Branch main dev
CI
Code Quality CodeFactor

Installation

Source Code

PyPI

Usage

ℹ️ You can use clox or python -m clox to run this program

Version

clox --version

Info

clox --info

Basic

ℹ️ Press Ctrl + C to exit

clox

Face

clox --face=3
  • Use --face=-1 for random mode
  • Faces List: clox --faces-list

Timezone

clox --timezone="Etc/GMT+7"

Manual Offset

ℹ️ The local and timezone offset both have default values of 0

These arguments allow you to manually adjust the time by ±X hours. This is especially useful when daylight saving time (DST) is not correctly applied by the system or timezone database.

clox --offset-local=1 --offset-timezone=-1

Country

The --country argument allows you to specify a country using its ISO 3166 code format

ℹ️ When the --country argument is provided, the --timezone argument will be ignored

ℹ️ If the specified country has multiple timezones, the first timezone will be selected automatically

clox --country="DE"

Vertical/Horizontal Shift

ℹ️ The vertical and horizontal shift both have default values of 0

clox --v-shift=20 --h-shift=30

No Blink

Disable blinking mode

clox --no-blink

Hide Date

In this mode, the date will not be shown

clox --hide-date

Hide Timezone

In this mode, the timezone will not be shown

clox --hide-timezone

AM/PM Mode

In this mode, the clock will be displayed in 12-hour format

clox --am-pm

Vertical Mode

clox --vertical

Calendar Mode

In this mode, the calendar will be displayed

ℹ️ Valid choices: [MONTH, YEAR]

clox --calendar=month --first-weekday="SUNDAY"

Date System

ℹ️ Valid choices: [GREGORIAN, JALALI]

ℹ️ The default date system is GREGORIAN

clox --date-system=jalali

Date Format

ℹ️ Valid choices: [ISO, US, US-SHORT, EU, EU-SHORT, DOT, DASH, YMD, DMY, MDY, FULL]

ℹ️ The default date format is FULL

clox --date-system=jalali --date-format=EU
  • Date Formats List: clox --date-formats-list

Screen Record

Try Clox Online!

Clox can be used online in interactive Jupyter Notebooks via the Binder or Colab services! Try it out now! :

Binder

Google Colab

  • Open notebook.ipynb

Issues & Bug Reports

Just fill an issue and describe it. We'll check it ASAP!

  • Please complete the issue template

Show Your Support

Star This Repo

Give a ⭐️ if this project helped you!

Donate to Our Project

Bitcoin

1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy

Ethereum

0xcD4Db18B6664A9662123D4307B074aE968535388

Litecoin

Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ

Doge

DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh

Tron

TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7

Ripple

rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq

Binance Coin

bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef

Tether

0xcD4Db18B6664A9662123D4307B074aE968535388

Dash

Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s

Stellar

GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL

Zilliqa

zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5

Coffeete

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased

1.3 - 2025-11-28

Added

  • notebook.ipynb
  • Jupyter notebook support
  • detect_environment function

Changed

  • clear_screen function modified
  • run_clock function modified
  • print_calendar function modified
  • Python 3.14 added to test.yml
  • README.md updated

1.2 - 2025-09-02

Added

  • --offset-local argument
  • --offset-timezone argument

Changed

  • README.md updated
  • Test system modified
  • _get_weekday_id function renamed to get_weekday_id
  • clox_info function renamed to print_clox_info

1.1 - 2025-05-23

Added

  • --first-weekday argument
  • --date-format argument
  • --date-formats-list argument

Changed

  • README.md updated
  • Test system modified

1.0 - 2025-05-06

Added

  • Local time

Changed

  • clox_info function modified
  • run_clock function modified

0.9 - 2025-04-14

Added

  • Timezone difference

Changed

  • Python typing features added to all modules
  • Test system modified
  • Python 3.6 support dropped

0.8 - 2025-03-16

Added

  • --country argument
  • --countries-list argument
  • COUNTRIES.md

Changed

  • Input case sensitivity bug fixed
  • Test system modified
  • README.md updated

0.7 - 2025-03-06

Added

  • Jalali calendar
  • --date-system argument

Changed

  • README.md updated

0.6 - 2025-02-25

Added

  • --calendar argument

Changed

  • README.md updated

0.5 - 2025-02-14

Added

  • --hide-date argument
  • --hide-timezone argument
  • --am-pm argument

Changed

  • README.md updated

0.4 - 2025-01-18

Added

  • Date
  • --info argument

0.3 - 2025-01-10

Added

  • Logo
  • --vertical argument

Changed

  • show_faces_list function updated
  • AUTHORS.md updated

0.2 - 2025-01-01

Added

  • Blink mode
  • --no-blink argument

Changed

  • README.md updated

0.1 - 2024-12-24

Added

  • --v-shift and --h-shift arguments
  • --timezone argument
  • --face argument
  • run_clock and main functions
  • TIMEZONES.md
  • FACES.md

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

clox-1.3.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

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

clox-1.3-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file clox-1.3.tar.gz.

File metadata

  • Download URL: clox-1.3.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for clox-1.3.tar.gz
Algorithm Hash digest
SHA256 c3b8153844c5d956d23eb57c933ba7ebab00b83e323ca736b21f892378c61fd5
MD5 75b62a5412225e5295da92132a4bcebc
BLAKE2b-256 b22332f169333b050f04f31df3ca43102b4c37e0f466502842dea31256e3efa0

See more details on using hashes here.

File details

Details for the file clox-1.3-py3-none-any.whl.

File metadata

  • Download URL: clox-1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for clox-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 905410ab098b30261a107bd962f9e93a63c836ec21b4b68689fffac5bb9d3b23
MD5 c3da3628ca528630569b0f9941cd9d20
BLAKE2b-256 581613814419afe8e51993ce75d8e85044002f67f11de262f1fd2afb1028d7ca

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