clox 0.1__tar.gz → 0.2__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.1 → clox-0.2}/CHANGELOG.md +8 -1
- {clox-0.1 → clox-0.2}/PKG-INFO +20 -5
- {clox-0.1 → clox-0.2}/README.md +10 -2
- {clox-0.1 → clox-0.2}/SECURITY.md +2 -2
- {clox-0.1 → clox-0.2}/clox/functions.py +15 -3
- {clox-0.1 → clox-0.2}/clox/params.py +3 -1
- {clox-0.1 → clox-0.2}/clox.egg-info/PKG-INFO +20 -5
- {clox-0.1 → clox-0.2}/setup.py +2 -2
- {clox-0.1 → clox-0.2}/AUTHORS.md +0 -0
- {clox-0.1 → clox-0.2}/FACES.md +0 -0
- {clox-0.1 → clox-0.2}/LICENSE +0 -0
- {clox-0.1 → clox-0.2}/MANIFEST.in +0 -0
- {clox-0.1 → clox-0.2}/TIMEZONES.md +0 -0
- {clox-0.1 → clox-0.2}/clox/__init__.py +0 -0
- {clox-0.1 → clox-0.2}/clox/__main__.py +0 -0
- {clox-0.1 → clox-0.2}/clox.egg-info/SOURCES.txt +0 -0
- {clox-0.1 → clox-0.2}/clox.egg-info/dependency_links.txt +0 -0
- {clox-0.1 → clox-0.2}/clox.egg-info/entry_points.txt +0 -0
- {clox-0.1 → clox-0.2}/clox.egg-info/requires.txt +0 -0
- {clox-0.1 → clox-0.2}/clox.egg-info/top_level.txt +0 -0
- {clox-0.1 → clox-0.2}/dev-requirements.txt +0 -0
- {clox-0.1 → clox-0.2}/requirements.txt +0 -0
- {clox-0.1 → clox-0.2}/setup.cfg +0 -0
|
@@ -5,6 +5,12 @@ 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.2] - 2025-01-01
|
|
9
|
+
### Added
|
|
10
|
+
- Blink mode
|
|
11
|
+
- `--no-blink` argument
|
|
12
|
+
### Changed
|
|
13
|
+
- `README.md` updated
|
|
8
14
|
## [0.1] - 2024-12-24
|
|
9
15
|
### Added
|
|
10
16
|
- `--v-shift` and `--h-shift` arguments
|
|
@@ -14,7 +20,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
14
20
|
- `TIMEZONES.md`
|
|
15
21
|
- `FACES.md`
|
|
16
22
|
|
|
17
|
-
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.
|
|
23
|
+
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.2...dev
|
|
24
|
+
[0.2]: https://github.com/sepandhaghighi/clox/compare/v0.1...v0.2
|
|
18
25
|
[0.1]: https://github.com/sepandhaghighi/clox/compare/e9b49e2...v0.1
|
|
19
26
|
|
|
20
27
|
|
{clox-0.1 → clox-0.2}/PKG-INFO
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clox
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
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.2
|
|
7
7
|
Author: Sepand Haghighi
|
|
8
8
|
Author-email: me@sepand.tech
|
|
9
9
|
License: MIT
|
|
@@ -89,13 +89,13 @@ Clox is a terminal-based clock application designed for terminal enthusiasts who
|
|
|
89
89
|
## Installation
|
|
90
90
|
|
|
91
91
|
### Source Code
|
|
92
|
-
- Download [Version 0.
|
|
92
|
+
- Download [Version 0.2](https://github.com/sepandhaghighi/clox/archive/v0.2.zip) or [Latest Source](https://github.com/sepandhaghighi/clox/archive/dev.zip)
|
|
93
93
|
- `pip install .`
|
|
94
94
|
|
|
95
95
|
### PyPI
|
|
96
96
|
|
|
97
97
|
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
98
|
-
- `pip install clox==0.
|
|
98
|
+
- `pip install clox==0.2`
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
## Usage
|
|
@@ -141,6 +141,14 @@ clox --timezone="Etc/GMT+7"
|
|
|
141
141
|
clox --v-shift=20 --h-shift=30
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
+
### No Blink
|
|
145
|
+
|
|
146
|
+
Disable blinking mode
|
|
147
|
+
|
|
148
|
+
```console
|
|
149
|
+
clox --no-blink
|
|
150
|
+
```
|
|
151
|
+
|
|
144
152
|
## Issues & Bug Reports
|
|
145
153
|
|
|
146
154
|
Just fill an issue and describe it. We'll check it ASAP!
|
|
@@ -191,6 +199,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
191
199
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
192
200
|
|
|
193
201
|
## [Unreleased]
|
|
202
|
+
## [0.2] - 2025-01-01
|
|
203
|
+
### Added
|
|
204
|
+
- Blink mode
|
|
205
|
+
- `--no-blink` argument
|
|
206
|
+
### Changed
|
|
207
|
+
- `README.md` updated
|
|
194
208
|
## [0.1] - 2024-12-24
|
|
195
209
|
### Added
|
|
196
210
|
- `--v-shift` and `--h-shift` arguments
|
|
@@ -200,7 +214,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
200
214
|
- `TIMEZONES.md`
|
|
201
215
|
- `FACES.md`
|
|
202
216
|
|
|
203
|
-
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.
|
|
217
|
+
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.2...dev
|
|
218
|
+
[0.2]: https://github.com/sepandhaghighi/clox/compare/v0.1...v0.2
|
|
204
219
|
[0.1]: https://github.com/sepandhaghighi/clox/compare/e9b49e2...v0.1
|
|
205
220
|
|
|
206
221
|
|
{clox-0.1 → clox-0.2}/README.md
RENAMED
|
@@ -52,13 +52,13 @@ Clox is a terminal-based clock application designed for terminal enthusiasts who
|
|
|
52
52
|
## Installation
|
|
53
53
|
|
|
54
54
|
### Source Code
|
|
55
|
-
- Download [Version 0.
|
|
55
|
+
- Download [Version 0.2](https://github.com/sepandhaghighi/clox/archive/v0.2.zip) or [Latest Source](https://github.com/sepandhaghighi/clox/archive/dev.zip)
|
|
56
56
|
- `pip install .`
|
|
57
57
|
|
|
58
58
|
### PyPI
|
|
59
59
|
|
|
60
60
|
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
61
|
-
- `pip install clox==0.
|
|
61
|
+
- `pip install clox==0.2`
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
## Usage
|
|
@@ -104,6 +104,14 @@ clox --timezone="Etc/GMT+7"
|
|
|
104
104
|
clox --v-shift=20 --h-shift=30
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
+
### No Blink
|
|
108
|
+
|
|
109
|
+
Disable blinking mode
|
|
110
|
+
|
|
111
|
+
```console
|
|
112
|
+
clox --no-blink
|
|
113
|
+
```
|
|
114
|
+
|
|
107
115
|
## Issues & Bug Reports
|
|
108
116
|
|
|
109
117
|
Just fill an issue and describe it. We'll check it ASAP!
|
|
@@ -8,6 +8,7 @@ import datetime
|
|
|
8
8
|
import argparse
|
|
9
9
|
import pytz
|
|
10
10
|
from art import tprint
|
|
11
|
+
from .params import TIME_FORMATS
|
|
11
12
|
from .params import TIMEZONES_LIST, CLOX_VERSION
|
|
12
13
|
from .params import ADDITIONAL_INFO, EXIT_MESSAGE
|
|
13
14
|
from .params import FACES_MAP, FACES_LIST, FACES_LIST_EXAMPLE_MESSAGE
|
|
@@ -62,7 +63,7 @@ def show_timezones_list():
|
|
|
62
63
|
print("{0}. {1}".format(index, timezone))
|
|
63
64
|
|
|
64
65
|
|
|
65
|
-
def run_clock(timezone=None, v_shift=0, h_shift=0, face=1):
|
|
66
|
+
def run_clock(timezone=None, v_shift=0, h_shift=0, face=1, no_blink=False):
|
|
66
67
|
"""
|
|
67
68
|
Run clock.
|
|
68
69
|
|
|
@@ -74,8 +75,11 @@ def run_clock(timezone=None, v_shift=0, h_shift=0, face=1):
|
|
|
74
75
|
:type h_shift: int
|
|
75
76
|
:param face: face index
|
|
76
77
|
:type face: int
|
|
78
|
+
:param no_blink: no-blink flag
|
|
79
|
+
:type no_blink: bool
|
|
77
80
|
:return: None
|
|
78
81
|
"""
|
|
82
|
+
format_index = 0
|
|
79
83
|
timezone_str = timezone
|
|
80
84
|
if timezone is None:
|
|
81
85
|
tz = None
|
|
@@ -89,11 +93,13 @@ def run_clock(timezone=None, v_shift=0, h_shift=0, face=1):
|
|
|
89
93
|
clear_screen()
|
|
90
94
|
print('\n' * v_shift, end='')
|
|
91
95
|
print(" " * h_shift, end='')
|
|
92
|
-
current_time = datetime.datetime.now(tz=tz).strftime(
|
|
96
|
+
current_time = datetime.datetime.now(tz=tz).strftime(TIME_FORMATS[format_index])
|
|
93
97
|
tprint(current_time, font=face, sep="\n" + " " * h_shift)
|
|
94
98
|
print(" " * h_shift, end='')
|
|
95
99
|
print("Timezone: {0}".format(timezone_str))
|
|
96
100
|
time.sleep(1)
|
|
101
|
+
if not no_blink:
|
|
102
|
+
format_index = int(not format_index)
|
|
97
103
|
|
|
98
104
|
|
|
99
105
|
def main():
|
|
@@ -111,6 +117,7 @@ def main():
|
|
|
111
117
|
parser.add_argument('--face', help='face', type=int, choices=FACES_LIST, default=1)
|
|
112
118
|
parser.add_argument('--faces-list', help='faces list', nargs="?", const=1)
|
|
113
119
|
parser.add_argument('--timezones-list', help='timezones list', nargs="?", const=1)
|
|
120
|
+
parser.add_argument('--no-blink', help='disable blinking mode', nargs="?", const=1)
|
|
114
121
|
args = parser.parse_args()
|
|
115
122
|
if args.version:
|
|
116
123
|
print(CLOX_VERSION)
|
|
@@ -120,6 +127,11 @@ def main():
|
|
|
120
127
|
show_timezones_list()
|
|
121
128
|
else:
|
|
122
129
|
try:
|
|
123
|
-
run_clock(
|
|
130
|
+
run_clock(
|
|
131
|
+
timezone=args.timezone,
|
|
132
|
+
h_shift=args.h_shift,
|
|
133
|
+
v_shift=args.v_shift,
|
|
134
|
+
face=args.face,
|
|
135
|
+
no_blink=args.no_blink)
|
|
124
136
|
except (KeyboardInterrupt, EOFError):
|
|
125
137
|
print(EXIT_MESSAGE)
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
"""clox params."""
|
|
3
3
|
import pytz
|
|
4
4
|
|
|
5
|
-
CLOX_VERSION = "0.
|
|
5
|
+
CLOX_VERSION = "0.2"
|
|
6
6
|
|
|
7
7
|
ADDITIONAL_INFO = "Additional information: Press `Ctrl+C` to exit."
|
|
8
8
|
EXIT_MESSAGE = "See you. Bye!"
|
|
9
9
|
|
|
10
10
|
FACES_LIST_EXAMPLE_MESSAGE = "12 : 34"
|
|
11
11
|
|
|
12
|
+
TIME_FORMATS = ['%H:%M', '%H:%M.']
|
|
13
|
+
|
|
12
14
|
TIMEZONES_LIST = pytz.all_timezones
|
|
13
15
|
|
|
14
16
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clox
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
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.2
|
|
7
7
|
Author: Sepand Haghighi
|
|
8
8
|
Author-email: me@sepand.tech
|
|
9
9
|
License: MIT
|
|
@@ -89,13 +89,13 @@ Clox is a terminal-based clock application designed for terminal enthusiasts who
|
|
|
89
89
|
## Installation
|
|
90
90
|
|
|
91
91
|
### Source Code
|
|
92
|
-
- Download [Version 0.
|
|
92
|
+
- Download [Version 0.2](https://github.com/sepandhaghighi/clox/archive/v0.2.zip) or [Latest Source](https://github.com/sepandhaghighi/clox/archive/dev.zip)
|
|
93
93
|
- `pip install .`
|
|
94
94
|
|
|
95
95
|
### PyPI
|
|
96
96
|
|
|
97
97
|
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
98
|
-
- `pip install clox==0.
|
|
98
|
+
- `pip install clox==0.2`
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
## Usage
|
|
@@ -141,6 +141,14 @@ clox --timezone="Etc/GMT+7"
|
|
|
141
141
|
clox --v-shift=20 --h-shift=30
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
+
### No Blink
|
|
145
|
+
|
|
146
|
+
Disable blinking mode
|
|
147
|
+
|
|
148
|
+
```console
|
|
149
|
+
clox --no-blink
|
|
150
|
+
```
|
|
151
|
+
|
|
144
152
|
## Issues & Bug Reports
|
|
145
153
|
|
|
146
154
|
Just fill an issue and describe it. We'll check it ASAP!
|
|
@@ -191,6 +199,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
191
199
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
192
200
|
|
|
193
201
|
## [Unreleased]
|
|
202
|
+
## [0.2] - 2025-01-01
|
|
203
|
+
### Added
|
|
204
|
+
- Blink mode
|
|
205
|
+
- `--no-blink` argument
|
|
206
|
+
### Changed
|
|
207
|
+
- `README.md` updated
|
|
194
208
|
## [0.1] - 2024-12-24
|
|
195
209
|
### Added
|
|
196
210
|
- `--v-shift` and `--h-shift` arguments
|
|
@@ -200,7 +214,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
200
214
|
- `TIMEZONES.md`
|
|
201
215
|
- `FACES.md`
|
|
202
216
|
|
|
203
|
-
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.
|
|
217
|
+
[Unreleased]: https://github.com/sepandhaghighi/clox/compare/v0.2...dev
|
|
218
|
+
[0.2]: https://github.com/sepandhaghighi/clox/compare/v0.1...v0.2
|
|
204
219
|
[0.1]: https://github.com/sepandhaghighi/clox/compare/e9b49e2...v0.1
|
|
205
220
|
|
|
206
221
|
|
{clox-0.1 → clox-0.2}/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.2',
|
|
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.2',
|
|
41
41
|
keywords="clock time timer timezone terminal cli geek clox",
|
|
42
42
|
project_urls={
|
|
43
43
|
'Source': 'https://github.com/sepandhaghighi/clox'
|
{clox-0.1 → clox-0.2}/AUTHORS.md
RENAMED
|
File without changes
|
{clox-0.1 → clox-0.2}/FACES.md
RENAMED
|
File without changes
|
{clox-0.1 → clox-0.2}/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
|
|
File without changes
|
{clox-0.1 → clox-0.2}/setup.cfg
RENAMED
|
File without changes
|