clox 0.4__tar.gz → 0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of clox might be problematic. Click here for more details.
- {clox-0.4 → clox-0.6}/CHANGELOG.md +15 -1
- {clox-0.4 → clox-0.6}/PKG-INFO +62 -6
- {clox-0.4 → clox-0.6}/README.md +44 -2
- {clox-0.4 → clox-0.6}/SECURITY.md +2 -2
- {clox-0.4 → clox-0.6}/clox/functions.py +80 -19
- {clox-0.4 → clox-0.6}/clox/params.py +7 -3
- {clox-0.4 → clox-0.6}/clox.egg-info/PKG-INFO +62 -6
- {clox-0.4 → clox-0.6}/dev-requirements.txt +1 -1
- {clox-0.4 → clox-0.6}/setup.py +3 -3
- {clox-0.4 → clox-0.6}/AUTHORS.md +0 -0
- {clox-0.4 → clox-0.6}/FACES.md +0 -0
- {clox-0.4 → clox-0.6}/LICENSE +0 -0
- {clox-0.4 → clox-0.6}/MANIFEST.in +0 -0
- {clox-0.4 → clox-0.6}/TIMEZONES.md +0 -0
- {clox-0.4 → clox-0.6}/clox/__init__.py +0 -0
- {clox-0.4 → clox-0.6}/clox/__main__.py +0 -0
- {clox-0.4 → clox-0.6}/clox.egg-info/SOURCES.txt +0 -0
- {clox-0.4 → clox-0.6}/clox.egg-info/dependency_links.txt +0 -0
- {clox-0.4 → clox-0.6}/clox.egg-info/entry_points.txt +0 -0
- {clox-0.4 → clox-0.6}/clox.egg-info/requires.txt +0 -0
- {clox-0.4 → clox-0.6}/clox.egg-info/top_level.txt +0 -0
- {clox-0.4 → clox-0.6}/requirements.txt +0 -0
- {clox-0.4 → clox-0.6}/setup.cfg +0 -0
|
@@ -5,6 +5,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
|
+
## [0.6] - 2025-02-25
|
|
9
|
+
### Added
|
|
10
|
+
- `--calendar` argument
|
|
11
|
+
### Changed
|
|
12
|
+
- `README.md` updated
|
|
13
|
+
## [0.5] - 2025-02-14
|
|
14
|
+
### Added
|
|
15
|
+
- `--hide-date` argument
|
|
16
|
+
- `--hide-timezone` argument
|
|
17
|
+
- `--am-pm` argument
|
|
18
|
+
### Changed
|
|
19
|
+
- `README.md` updated
|
|
8
20
|
## [0.4] - 2025-01-18
|
|
9
21
|
### Added
|
|
10
22
|
- Date
|
|
@@ -31,7 +43,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
31
43
|
- `TIMEZONES.md`
|
|
32
44
|
- `FACES.md`
|
|
33
45
|
|
|
34
|
-
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.
|
|
46
|
+
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.6...dev
|
|
47
|
+
[0.6]: https://github.com/sepandhaghighi/clox/compare/v0.5...v0.6
|
|
48
|
+
[0.5]: https://github.com/sepandhaghighi/clox/compare/v0.4...v0.5
|
|
35
49
|
[0.4]: https://github.com/sepandhaghighi/clox/compare/v0.3...v0.4
|
|
36
50
|
[0.3]: https://github.com/sepandhaghighi/clox/compare/v0.2...v0.3
|
|
37
51
|
[0.2]: https://github.com/sepandhaghighi/clox/compare/v0.1...v0.2
|
{clox-0.4 → clox-0.6}/PKG-INFO
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: clox
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6
|
|
4
4
|
Summary: A Geeky Clock for Terminal Enthusiasts
|
|
5
5
|
Home-page: https://github.com/sepandhaghighi/clox
|
|
6
|
-
Download-URL: https://github.com/sepandhaghighi/clox/tarball/v0.
|
|
6
|
+
Download-URL: https://github.com/sepandhaghighi/clox/tarball/v0.6
|
|
7
7
|
Author: Sepand Haghighi
|
|
8
8
|
Author-email: me@sepand.tech
|
|
9
9
|
License: MIT
|
|
10
10
|
Project-URL: Source, https://github.com/sepandhaghighi/clox
|
|
11
11
|
Keywords: clock time timer timezone terminal cli geek clox
|
|
12
|
-
Classifier: Development Status ::
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Natural Language :: English
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
@@ -103,13 +103,13 @@ Clox is a terminal-based clock application designed for terminal enthusiasts who
|
|
|
103
103
|
## Installation
|
|
104
104
|
|
|
105
105
|
### Source Code
|
|
106
|
-
- Download [Version 0.
|
|
106
|
+
- Download [Version 0.6](https://github.com/sepandhaghighi/clox/archive/v0.6.zip) or [Latest Source](https://github.com/sepandhaghighi/clox/archive/dev.zip)
|
|
107
107
|
- `pip install .`
|
|
108
108
|
|
|
109
109
|
### PyPI
|
|
110
110
|
|
|
111
111
|
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
112
|
-
- `pip install clox==0.
|
|
112
|
+
- `pip install clox==0.6`
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
## Usage
|
|
@@ -169,12 +169,54 @@ Disable blinking mode
|
|
|
169
169
|
clox --no-blink
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
+
### Hide Date
|
|
173
|
+
|
|
174
|
+
In this mode, the date will not be shown
|
|
175
|
+
|
|
176
|
+
```console
|
|
177
|
+
clox --hide-date
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Hide Timezone
|
|
181
|
+
|
|
182
|
+
In this mode, the timezone will not be shown
|
|
183
|
+
|
|
184
|
+
```console
|
|
185
|
+
clox --hide-timezone
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### AM/PM Mode
|
|
189
|
+
|
|
190
|
+
In this mode, the clock will be displayed in 12-hour format
|
|
191
|
+
|
|
192
|
+
```console
|
|
193
|
+
clox --am-pm
|
|
194
|
+
```
|
|
195
|
+
|
|
172
196
|
### Vertical Mode
|
|
173
197
|
|
|
174
198
|
```console
|
|
175
199
|
clox --vertical
|
|
176
200
|
```
|
|
177
201
|
|
|
202
|
+
### Calendar Mode
|
|
203
|
+
|
|
204
|
+
In this mode, the calendar will be displayed
|
|
205
|
+
|
|
206
|
+
ℹ️ Valid choices: [`month`, `year`]
|
|
207
|
+
|
|
208
|
+
```console
|
|
209
|
+
clox --calendar=month
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Screen Record
|
|
213
|
+
|
|
214
|
+
<div align="center">
|
|
215
|
+
|
|
216
|
+
<img src="https://github.com/sepandhaghighi/clox/raw/main/otherfiles/help.gif">
|
|
217
|
+
|
|
218
|
+
</div>
|
|
219
|
+
|
|
178
220
|
## Issues & Bug Reports
|
|
179
221
|
|
|
180
222
|
Just fill an issue and describe it. We'll check it ASAP!
|
|
@@ -225,6 +267,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
225
267
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
226
268
|
|
|
227
269
|
## [Unreleased]
|
|
270
|
+
## [0.6] - 2025-02-25
|
|
271
|
+
### Added
|
|
272
|
+
- `--calendar` argument
|
|
273
|
+
### Changed
|
|
274
|
+
- `README.md` updated
|
|
275
|
+
## [0.5] - 2025-02-14
|
|
276
|
+
### Added
|
|
277
|
+
- `--hide-date` argument
|
|
278
|
+
- `--hide-timezone` argument
|
|
279
|
+
- `--am-pm` argument
|
|
280
|
+
### Changed
|
|
281
|
+
- `README.md` updated
|
|
228
282
|
## [0.4] - 2025-01-18
|
|
229
283
|
### Added
|
|
230
284
|
- Date
|
|
@@ -251,7 +305,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
251
305
|
- `TIMEZONES.md`
|
|
252
306
|
- `FACES.md`
|
|
253
307
|
|
|
254
|
-
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.
|
|
308
|
+
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.6...dev
|
|
309
|
+
[0.6]: https://github.com/sepandhaghighi/clox/compare/v0.5...v0.6
|
|
310
|
+
[0.5]: https://github.com/sepandhaghighi/clox/compare/v0.4...v0.5
|
|
255
311
|
[0.4]: https://github.com/sepandhaghighi/clox/compare/v0.3...v0.4
|
|
256
312
|
[0.3]: https://github.com/sepandhaghighi/clox/compare/v0.2...v0.3
|
|
257
313
|
[0.2]: https://github.com/sepandhaghighi/clox/compare/v0.1...v0.2
|
{clox-0.4 → clox-0.6}/README.md
RENAMED
|
@@ -53,13 +53,13 @@ Clox is a terminal-based clock application designed for terminal enthusiasts who
|
|
|
53
53
|
## Installation
|
|
54
54
|
|
|
55
55
|
### Source Code
|
|
56
|
-
- Download [Version 0.
|
|
56
|
+
- Download [Version 0.6](https://github.com/sepandhaghighi/clox/archive/v0.6.zip) or [Latest Source](https://github.com/sepandhaghighi/clox/archive/dev.zip)
|
|
57
57
|
- `pip install .`
|
|
58
58
|
|
|
59
59
|
### PyPI
|
|
60
60
|
|
|
61
61
|
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
62
|
-
- `pip install clox==0.
|
|
62
|
+
- `pip install clox==0.6`
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
## Usage
|
|
@@ -119,12 +119,54 @@ Disable blinking mode
|
|
|
119
119
|
clox --no-blink
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
+
### Hide Date
|
|
123
|
+
|
|
124
|
+
In this mode, the date will not be shown
|
|
125
|
+
|
|
126
|
+
```console
|
|
127
|
+
clox --hide-date
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Hide Timezone
|
|
131
|
+
|
|
132
|
+
In this mode, the timezone will not be shown
|
|
133
|
+
|
|
134
|
+
```console
|
|
135
|
+
clox --hide-timezone
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### AM/PM Mode
|
|
139
|
+
|
|
140
|
+
In this mode, the clock will be displayed in 12-hour format
|
|
141
|
+
|
|
142
|
+
```console
|
|
143
|
+
clox --am-pm
|
|
144
|
+
```
|
|
145
|
+
|
|
122
146
|
### Vertical Mode
|
|
123
147
|
|
|
124
148
|
```console
|
|
125
149
|
clox --vertical
|
|
126
150
|
```
|
|
127
151
|
|
|
152
|
+
### Calendar Mode
|
|
153
|
+
|
|
154
|
+
In this mode, the calendar will be displayed
|
|
155
|
+
|
|
156
|
+
ℹ️ Valid choices: [`month`, `year`]
|
|
157
|
+
|
|
158
|
+
```console
|
|
159
|
+
clox --calendar=month
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Screen Record
|
|
163
|
+
|
|
164
|
+
<div align="center">
|
|
165
|
+
|
|
166
|
+
<img src="https://github.com/sepandhaghighi/clox/raw/main/otherfiles/help.gif">
|
|
167
|
+
|
|
168
|
+
</div>
|
|
169
|
+
|
|
128
170
|
## Issues & Bug Reports
|
|
129
171
|
|
|
130
172
|
Just fill an issue and describe it. We'll check it ASAP!
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
import os
|
|
4
4
|
import sys
|
|
5
5
|
import time
|
|
6
|
+
import calendar
|
|
6
7
|
import random
|
|
7
8
|
import datetime
|
|
8
9
|
import argparse
|
|
9
10
|
import pytz
|
|
10
11
|
from art import tprint
|
|
11
|
-
from .params import
|
|
12
|
-
from .params import
|
|
12
|
+
from .params import HORIZONTAL_TIME_24H_FORMATS, VERTICAL_TIME_24H_FORMATS
|
|
13
|
+
from .params import HORIZONTAL_TIME_12H_FORMATS, VERTICAL_TIME_12H_FORMATS
|
|
14
|
+
from .params import TIMEZONES_LIST, CLOX_VERSION, DATE_FORMAT
|
|
13
15
|
from .params import ADDITIONAL_INFO, EXIT_MESSAGE
|
|
14
|
-
from .params import FACES_MAP, FACES_LIST
|
|
16
|
+
from .params import FACES_MAP, FACES_LIST, CALENDAR_LIST
|
|
15
17
|
from .params import HORIZONTAL_FACES_LIST_EXAMPLE, VERTICAL_FACES_LIST_EXAMPLE
|
|
16
18
|
from .params import CLOX_OVERVIEW, CLOX_REPO
|
|
17
19
|
|
|
@@ -66,9 +68,9 @@ def show_faces_list(vertical=False):
|
|
|
66
68
|
if vertical:
|
|
67
69
|
example = VERTICAL_FACES_LIST_EXAMPLE
|
|
68
70
|
mode = "Vertical"
|
|
69
|
-
print("Faces list ({
|
|
71
|
+
print("Faces list ({mode}):\n".format(mode=mode))
|
|
70
72
|
for i in sorted(FACES_MAP):
|
|
71
|
-
print('Face {}\n'.format(i))
|
|
73
|
+
print('Face {index}\n'.format(index=i))
|
|
72
74
|
tprint(example, font=get_face(i))
|
|
73
75
|
print('=' * 80)
|
|
74
76
|
|
|
@@ -81,10 +83,53 @@ def show_timezones_list():
|
|
|
81
83
|
"""
|
|
82
84
|
print("Timezones list:\n")
|
|
83
85
|
for index, timezone in enumerate(TIMEZONES_LIST, 1):
|
|
84
|
-
print("{
|
|
86
|
+
print("{index}. {timezone}".format(index=index, timezone=timezone))
|
|
85
87
|
|
|
86
88
|
|
|
87
|
-
def
|
|
89
|
+
def print_calendar(mode="month", timezone=None, v_shift=0, h_shift=0):
|
|
90
|
+
"""
|
|
91
|
+
Print calendar.
|
|
92
|
+
|
|
93
|
+
:param mode: calendar mode
|
|
94
|
+
:type mode: str
|
|
95
|
+
:param timezone: timezone
|
|
96
|
+
:type timezone: str
|
|
97
|
+
:param v_shift: vertical shift
|
|
98
|
+
:type v_shift: int
|
|
99
|
+
:param h_shift: horizontal shift
|
|
100
|
+
:type h_shift: int
|
|
101
|
+
:return: None
|
|
102
|
+
"""
|
|
103
|
+
tz = None
|
|
104
|
+
timezone_str = "Local"
|
|
105
|
+
if timezone is not None:
|
|
106
|
+
timezone_str = timezone
|
|
107
|
+
tz = pytz.timezone(timezone)
|
|
108
|
+
v_shift = max(0, v_shift)
|
|
109
|
+
h_shift = max(0, h_shift)
|
|
110
|
+
datetime_now = datetime.datetime.now(tz=tz)
|
|
111
|
+
current_date = datetime_now.strftime(DATE_FORMAT)
|
|
112
|
+
print('\n' * v_shift, end='')
|
|
113
|
+
print(" " * h_shift, end='')
|
|
114
|
+
print("Today: {date}".format(date=current_date))
|
|
115
|
+
print(" " * h_shift, end='')
|
|
116
|
+
print("Timezone: {timezone}\n".format(timezone=timezone_str))
|
|
117
|
+
calendar_str = calendar.month(datetime_now.year, datetime_now.month)
|
|
118
|
+
if mode == "year":
|
|
119
|
+
calendar_str = calendar.calendar(datetime_now.year)
|
|
120
|
+
print("\n".join([" " * h_shift + x for x in calendar_str.split("\n")]))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def run_clock(
|
|
124
|
+
timezone=None,
|
|
125
|
+
v_shift=0,
|
|
126
|
+
h_shift=0,
|
|
127
|
+
face=1,
|
|
128
|
+
no_blink=False,
|
|
129
|
+
vertical=False,
|
|
130
|
+
hide_date=False,
|
|
131
|
+
hide_timezone=False,
|
|
132
|
+
am_pm=False):
|
|
88
133
|
"""
|
|
89
134
|
Run clock.
|
|
90
135
|
|
|
@@ -100,17 +145,22 @@ def run_clock(timezone=None, v_shift=0, h_shift=0, face=1, no_blink=False, verti
|
|
|
100
145
|
:type no_blink: bool
|
|
101
146
|
:param vertical: vertical mode flag
|
|
102
147
|
:type vertical: bool
|
|
148
|
+
:param hide_date: hide date flag
|
|
149
|
+
:type hide_date: bool
|
|
150
|
+
:param hide_timezone: hide timezone flag
|
|
151
|
+
:type hide_timezone: bool
|
|
152
|
+
:param am_pm: AM/PM mode flag
|
|
153
|
+
:type am_pm: bool
|
|
103
154
|
:return: None
|
|
104
155
|
"""
|
|
105
156
|
format_index = 0
|
|
106
|
-
|
|
107
|
-
time_formats = HORIZONTAL_TIME_FORMATS
|
|
157
|
+
time_formats = HORIZONTAL_TIME_12H_FORMATS if am_pm else HORIZONTAL_TIME_24H_FORMATS
|
|
108
158
|
if vertical:
|
|
109
|
-
time_formats =
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
159
|
+
time_formats = VERTICAL_TIME_12H_FORMATS if am_pm else VERTICAL_TIME_24H_FORMATS
|
|
160
|
+
tz = None
|
|
161
|
+
timezone_str = "Local"
|
|
162
|
+
if timezone is not None:
|
|
163
|
+
timezone_str = timezone
|
|
114
164
|
tz = pytz.timezone(timezone)
|
|
115
165
|
v_shift = max(0, v_shift)
|
|
116
166
|
h_shift = max(0, h_shift)
|
|
@@ -123,10 +173,12 @@ def run_clock(timezone=None, v_shift=0, h_shift=0, face=1, no_blink=False, verti
|
|
|
123
173
|
current_time = datetime_now.strftime(time_formats[format_index])
|
|
124
174
|
current_date = datetime_now.strftime(DATE_FORMAT)
|
|
125
175
|
tprint(current_time, font=face, sep="\n" + " " * h_shift)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
176
|
+
if not hide_date:
|
|
177
|
+
print(" " * h_shift, end='')
|
|
178
|
+
print(current_date)
|
|
179
|
+
if not hide_timezone:
|
|
180
|
+
print(" " * h_shift, end='')
|
|
181
|
+
print("Timezone: {timezone}".format(timezone=timezone_str))
|
|
130
182
|
time.sleep(1)
|
|
131
183
|
if not no_blink:
|
|
132
184
|
format_index = int(not format_index)
|
|
@@ -150,6 +202,10 @@ def main():
|
|
|
150
202
|
parser.add_argument('--timezones-list', help='timezones list', nargs="?", const=1)
|
|
151
203
|
parser.add_argument('--no-blink', help='disable blinking mode', nargs="?", const=1)
|
|
152
204
|
parser.add_argument('--vertical', help='vertical mode', nargs="?", const=1)
|
|
205
|
+
parser.add_argument('--hide-date', help='hide date', nargs="?", const=1)
|
|
206
|
+
parser.add_argument('--hide-timezone', help='hide timezone', nargs="?", const=1)
|
|
207
|
+
parser.add_argument('--am-pm', help='AM/PM mode', nargs="?", const=1)
|
|
208
|
+
parser.add_argument('--calendar', help='calendar mode', type=str, choices=CALENDAR_LIST)
|
|
153
209
|
args = parser.parse_args()
|
|
154
210
|
if args.version:
|
|
155
211
|
print(CLOX_VERSION)
|
|
@@ -159,6 +215,8 @@ def main():
|
|
|
159
215
|
show_faces_list(vertical=args.vertical)
|
|
160
216
|
elif args.timezones_list:
|
|
161
217
|
show_timezones_list()
|
|
218
|
+
elif args.calendar:
|
|
219
|
+
print_calendar(mode=args.calendar, timezone=args.timezone, h_shift=args.h_shift, v_shift=args.v_shift)
|
|
162
220
|
else:
|
|
163
221
|
try:
|
|
164
222
|
run_clock(
|
|
@@ -167,6 +225,9 @@ def main():
|
|
|
167
225
|
v_shift=args.v_shift,
|
|
168
226
|
face=args.face,
|
|
169
227
|
no_blink=args.no_blink,
|
|
170
|
-
vertical=args.vertical
|
|
228
|
+
vertical=args.vertical,
|
|
229
|
+
hide_date=args.hide_date,
|
|
230
|
+
hide_timezone=args.hide_timezone,
|
|
231
|
+
am_pm=args.am_pm)
|
|
171
232
|
except (KeyboardInterrupt, EOFError):
|
|
172
233
|
print(EXIT_MESSAGE)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""clox params."""
|
|
3
3
|
import pytz
|
|
4
4
|
|
|
5
|
-
CLOX_VERSION = "0.
|
|
5
|
+
CLOX_VERSION = "0.6"
|
|
6
6
|
|
|
7
7
|
CLOX_OVERVIEW = '''
|
|
8
8
|
Clox is a terminal-based clock application designed for terminal enthusiasts who appreciate simplicity,
|
|
@@ -18,8 +18,10 @@ EXIT_MESSAGE = "See you. Bye!"
|
|
|
18
18
|
HORIZONTAL_FACES_LIST_EXAMPLE = "12:34"
|
|
19
19
|
VERTICAL_FACES_LIST_EXAMPLE = "12\n34"
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
HORIZONTAL_TIME_24H_FORMATS = ['%H:%M', '%H:%M.']
|
|
22
|
+
VERTICAL_TIME_24H_FORMATS = ['%H\n%M', '%H\n%M.']
|
|
23
|
+
HORIZONTAL_TIME_12H_FORMATS = ['%I:%M %p', '%I:%M %p.']
|
|
24
|
+
VERTICAL_TIME_12H_FORMATS = ['%I\n%M\n%p', '%I\n%M\n%p.']
|
|
23
25
|
DATE_FORMAT = "%A, %B %d, %Y"
|
|
24
26
|
|
|
25
27
|
TIMEZONES_LIST = pytz.all_timezones
|
|
@@ -54,3 +56,5 @@ FACES_MAP = {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
FACES_LIST = [-1] + sorted(FACES_MAP)
|
|
59
|
+
|
|
60
|
+
CALENDAR_LIST = ["month", "year"]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: clox
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6
|
|
4
4
|
Summary: A Geeky Clock for Terminal Enthusiasts
|
|
5
5
|
Home-page: https://github.com/sepandhaghighi/clox
|
|
6
|
-
Download-URL: https://github.com/sepandhaghighi/clox/tarball/v0.
|
|
6
|
+
Download-URL: https://github.com/sepandhaghighi/clox/tarball/v0.6
|
|
7
7
|
Author: Sepand Haghighi
|
|
8
8
|
Author-email: me@sepand.tech
|
|
9
9
|
License: MIT
|
|
10
10
|
Project-URL: Source, https://github.com/sepandhaghighi/clox
|
|
11
11
|
Keywords: clock time timer timezone terminal cli geek clox
|
|
12
|
-
Classifier: Development Status ::
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Natural Language :: English
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
@@ -103,13 +103,13 @@ Clox is a terminal-based clock application designed for terminal enthusiasts who
|
|
|
103
103
|
## Installation
|
|
104
104
|
|
|
105
105
|
### Source Code
|
|
106
|
-
- Download [Version 0.
|
|
106
|
+
- Download [Version 0.6](https://github.com/sepandhaghighi/clox/archive/v0.6.zip) or [Latest Source](https://github.com/sepandhaghighi/clox/archive/dev.zip)
|
|
107
107
|
- `pip install .`
|
|
108
108
|
|
|
109
109
|
### PyPI
|
|
110
110
|
|
|
111
111
|
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
112
|
-
- `pip install clox==0.
|
|
112
|
+
- `pip install clox==0.6`
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
## Usage
|
|
@@ -169,12 +169,54 @@ Disable blinking mode
|
|
|
169
169
|
clox --no-blink
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
+
### Hide Date
|
|
173
|
+
|
|
174
|
+
In this mode, the date will not be shown
|
|
175
|
+
|
|
176
|
+
```console
|
|
177
|
+
clox --hide-date
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Hide Timezone
|
|
181
|
+
|
|
182
|
+
In this mode, the timezone will not be shown
|
|
183
|
+
|
|
184
|
+
```console
|
|
185
|
+
clox --hide-timezone
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### AM/PM Mode
|
|
189
|
+
|
|
190
|
+
In this mode, the clock will be displayed in 12-hour format
|
|
191
|
+
|
|
192
|
+
```console
|
|
193
|
+
clox --am-pm
|
|
194
|
+
```
|
|
195
|
+
|
|
172
196
|
### Vertical Mode
|
|
173
197
|
|
|
174
198
|
```console
|
|
175
199
|
clox --vertical
|
|
176
200
|
```
|
|
177
201
|
|
|
202
|
+
### Calendar Mode
|
|
203
|
+
|
|
204
|
+
In this mode, the calendar will be displayed
|
|
205
|
+
|
|
206
|
+
ℹ️ Valid choices: [`month`, `year`]
|
|
207
|
+
|
|
208
|
+
```console
|
|
209
|
+
clox --calendar=month
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Screen Record
|
|
213
|
+
|
|
214
|
+
<div align="center">
|
|
215
|
+
|
|
216
|
+
<img src="https://github.com/sepandhaghighi/clox/raw/main/otherfiles/help.gif">
|
|
217
|
+
|
|
218
|
+
</div>
|
|
219
|
+
|
|
178
220
|
## Issues & Bug Reports
|
|
179
221
|
|
|
180
222
|
Just fill an issue and describe it. We'll check it ASAP!
|
|
@@ -225,6 +267,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
225
267
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
226
268
|
|
|
227
269
|
## [Unreleased]
|
|
270
|
+
## [0.6] - 2025-02-25
|
|
271
|
+
### Added
|
|
272
|
+
- `--calendar` argument
|
|
273
|
+
### Changed
|
|
274
|
+
- `README.md` updated
|
|
275
|
+
## [0.5] - 2025-02-14
|
|
276
|
+
### Added
|
|
277
|
+
- `--hide-date` argument
|
|
278
|
+
- `--hide-timezone` argument
|
|
279
|
+
- `--am-pm` argument
|
|
280
|
+
### Changed
|
|
281
|
+
- `README.md` updated
|
|
228
282
|
## [0.4] - 2025-01-18
|
|
229
283
|
### Added
|
|
230
284
|
- Date
|
|
@@ -251,7 +305,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
251
305
|
- `TIMEZONES.md`
|
|
252
306
|
- `FACES.md`
|
|
253
307
|
|
|
254
|
-
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.
|
|
308
|
+
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.6...dev
|
|
309
|
+
[0.6]: https://github.com/sepandhaghighi/clox/compare/v0.5...v0.6
|
|
310
|
+
[0.5]: https://github.com/sepandhaghighi/clox/compare/v0.4...v0.5
|
|
255
311
|
[0.4]: https://github.com/sepandhaghighi/clox/compare/v0.3...v0.4
|
|
256
312
|
[0.3]: https://github.com/sepandhaghighi/clox/compare/v0.2...v0.3
|
|
257
313
|
[0.2]: https://github.com/sepandhaghighi/clox/compare/v0.1...v0.2
|
{clox-0.4 → clox-0.6}/setup.py
RENAMED
|
@@ -29,7 +29,7 @@ def read_description():
|
|
|
29
29
|
setup(
|
|
30
30
|
name='clox',
|
|
31
31
|
packages=['clox'],
|
|
32
|
-
version='0.
|
|
32
|
+
version='0.6',
|
|
33
33
|
description='A Geeky Clock for Terminal Enthusiasts',
|
|
34
34
|
long_description=read_description(),
|
|
35
35
|
long_description_content_type='text/markdown',
|
|
@@ -37,7 +37,7 @@ setup(
|
|
|
37
37
|
author='Sepand Haghighi',
|
|
38
38
|
author_email='me@sepand.tech',
|
|
39
39
|
url='https://github.com/sepandhaghighi/clox',
|
|
40
|
-
download_url='https://github.com/sepandhaghighi/clox/tarball/v0.
|
|
40
|
+
download_url='https://github.com/sepandhaghighi/clox/tarball/v0.6',
|
|
41
41
|
keywords="clock time timer timezone terminal cli geek clox",
|
|
42
42
|
project_urls={
|
|
43
43
|
'Source': 'https://github.com/sepandhaghighi/clox'
|
|
@@ -45,7 +45,7 @@ setup(
|
|
|
45
45
|
install_requires=get_requires(),
|
|
46
46
|
python_requires='>=3.6',
|
|
47
47
|
classifiers=[
|
|
48
|
-
'Development Status ::
|
|
48
|
+
'Development Status :: 4 - Beta',
|
|
49
49
|
'Natural Language :: English',
|
|
50
50
|
'License :: OSI Approved :: MIT License',
|
|
51
51
|
'Operating System :: OS Independent',
|
{clox-0.4 → clox-0.6}/AUTHORS.md
RENAMED
|
File without changes
|
{clox-0.4 → clox-0.6}/FACES.md
RENAMED
|
File without changes
|
{clox-0.4 → clox-0.6}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clox-0.4 → clox-0.6}/setup.cfg
RENAMED
|
File without changes
|