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 |
Installation
Source Code
- Download Version 1.7 or Latest Source
pip install .
PyPI
- Check Python Packaging User Guide
pip install clox==1.7
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=-1for random mode - Faces List:
clox --faces-list
Timezone
clox --timezone="Etc/GMT+7"
- Timezones List:
clox --timezones-list
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"
- Countries List:
clox --countries-list
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
Once
Print current time once and exit immediately
clox --once
Hide Date
In this mode, the date will not be shown
clox --hide-date
clox --no-date
Hide Timezone
In this mode, the timezone will not be shown
clox --hide-timezone
clox --no-timezone
12-Hour Mode
In this mode, the clock will be displayed in 12-hour format.
clox --12h
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
Color
⚠️ This mode may not be supported on all systems
ℹ️ Valid choices: [BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, LIGHTBLACK, LIGHTRED, LIGHTGREEN, LIGHTYELLOW, LIGHTBLUE, LIGHTMAGENTA, LIGHTCYAN, LIGHTWHITE, RANDOM]
ℹ️ The default color is WHITE
clox --date-system=jalali --color="red"
Background Color
⚠️ This mode may not be supported on all systems
ℹ️ Valid choices: [BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, LIGHTBLACK, LIGHTRED, LIGHTGREEN, LIGHTYELLOW, LIGHTBLUE, LIGHTMAGENTA, LIGHTCYAN, LIGHTWHITE, RANDOM]
ℹ️ The default background color is BLACK
clox --date-system=jalali --color="red" --bg-color="blue"
Intensity
⚠️ This mode may not be supported on all systems
ℹ️ Valid choices: [NORMAL, BRIGHT, DIM, RANDOM]
ℹ️ The default intensity is NORMAL
clox --color="red" --intensity="bright"
Screen Record
Try Clox Online!
Clox can be used online in interactive Jupyter Notebooks via the Binder or Colab services! Try it out now! :
- 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
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCyEthereum
0xcD4Db18B6664A9662123D4307B074aE968535388Litecoin
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZDoge
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDhTron
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7Ripple
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qqBinance Coin
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qefTether
0xcD4Db18B6664A9662123D4307B074aE968535388Dash
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3sStellar
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNLZilliqa
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5Coffeete
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.7 - 2026-10-14
Added
--no-timezoneargument--no-dateargument--12hargumentget_datetime_libraryfunction
Changed
- Test system modified
- Build system modified
- Dependencies structure modified
- CLI arguments modified
run_clockfunction modifiedprint_calendarfunction modifiedprint_clox_infofunction modifiedREADME.mdupdatedPython 3.7support dropped
1.6 - 2026-02-17
Added
- Color random mode
- Background-color random mode
- Intensity random mode
Changed
- Screen record updated
README.mdupdated- Test system modified
1.5 - 2025-12-29
Added
--intensityargument--onceargument- Light colors
Changed
README.mdupdated- Test system modified
notebook.ipynbupdated
1.4 - 2025-12-16
Added
--colorargument--bg-colorargument
Changed
README.mdupdated- Test system modified
1.3 - 2025-11-28
Added
notebook.ipynb- Jupyter notebook support
detect_environmentfunction
Changed
clear_screenfunction modifiedrun_clockfunction modifiedprint_calendarfunction modifiedPython 3.14added totest.ymlREADME.mdupdated
1.2 - 2025-09-02
Added
--offset-localargument--offset-timezoneargument
Changed
README.mdupdated- Test system modified
_get_weekday_idfunction renamed toget_weekday_idclox_infofunction renamed toprint_clox_info
1.1 - 2025-05-23
Added
--first-weekdayargument--date-formatargument--date-formats-listargument
Changed
README.mdupdated- Test system modified
1.0 - 2025-05-06
Added
- Local time
Changed
clox_infofunction modifiedrun_clockfunction modified
0.9 - 2025-04-14
Added
- Timezone difference
Changed
- Python typing features added to all modules
- Test system modified
Python 3.6support dropped
0.8 - 2025-03-16
Added
--countryargument--countries-listargumentCOUNTRIES.md
Changed
- Input case sensitivity bug fixed
- Test system modified
README.mdupdated
0.7 - 2025-03-06
Added
- Jalali calendar
--date-systemargument
Changed
README.mdupdated
0.6 - 2025-02-25
Added
--calendarargument
Changed
README.mdupdated
0.5 - 2025-02-14
Added
--hide-dateargument--hide-timezoneargument--am-pmargument
Changed
README.mdupdated
0.4 - 2025-01-18
Added
- Date
--infoargument
0.3 - 2025-01-10
Added
- Logo
--verticalargument
Changed
show_faces_listfunction updatedAUTHORS.mdupdated
0.2 - 2025-01-01
Added
- Blink mode
--no-blinkargument
Changed
README.mdupdated
0.1 - 2024-12-24
Added
--v-shiftand--h-shiftarguments--timezoneargument--faceargumentrun_clockandmainfunctionsTIMEZONES.mdFACES.md
Metadata
Release files for clox 1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clox-1.7.tar.gz | 31.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clox-1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.2 kB
Release files / clox-1.7.tar.gz
| Download URL | clox-1.7.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a967d30bdb03f30769919141c71cbad13fdeb1d829da80752b52983de980653d
|
|
BLAKE2b-256 checksum How to use checksums |
eb81f9e489fd0918907cb61eaa325f5f9d86dbb1c248ce285adbdb4195b9712d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / clox-1.7-py3-none-any.whl
| Download URL | clox-1.7-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58f75aff7f66c92801610899bf58e411f9241739827a274cfe0a7b3691b6433a
|
|
BLAKE2b-256 checksum How to use checksums |
4b7ad758aea8bc0926e3d3f0266de58978070c24d26d348651304d1393047eb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|