encommon 0.22.7__tar.gz → 0.22.9__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.
- {encommon-0.22.7/encommon.egg-info → encommon-0.22.9}/PKG-INFO +1 -1
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_windows.py +11 -2
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/window.py +3 -5
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/windows.py +19 -2
- encommon-0.22.9/encommon/version.txt +1 -0
- {encommon-0.22.7 → encommon-0.22.9/encommon.egg-info}/PKG-INFO +1 -1
- encommon-0.22.7/encommon/version.txt +0 -1
- {encommon-0.22.7 → encommon-0.22.9}/LICENSE +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/MANIFEST.in +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/README.md +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/colors/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/colors/color.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/colors/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/colors/test/test_color.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/config.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/files.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/logger.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/params.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/paths.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/test/test_config.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/test/test_files.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/test/test_logger.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/test/test_paths.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/test/test_utils.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/config/utils.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/conftest.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/crypts.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/hashes.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/params.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/test/test_crypts.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/crypts/test/test_hashes.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/parse/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/parse/jinja2.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/parse/network.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/parse/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/parse/test/test_jinja2.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/parse/test/test_network.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/py.typed +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/common.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/duration.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/params.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/parse.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_duration.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_params.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_parse.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_time.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_timer.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_timers.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_unitime.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_utils.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/test/test_window.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/time.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/timer.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/timers.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/unitime.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/times/utils.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/classes.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/dicts.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/empty.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/funcs.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/lists.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/notate.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/strings.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_classes.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_dicts.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_empty.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_funcs.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_lists.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_notate.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/test/test_strings.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/types/types.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/common.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/files.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/match.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/paths.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/sample.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/stdout.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/test/test_files.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/test/test_match.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/test/test_paths.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/test/test_sample.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/utils/test/test_stdout.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/content.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/images/enasis.svg +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/images/failure.svg +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/images/information.svg +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/images/success.svg +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/images/warning.svg +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/index.html +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/color.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/datagrid.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/datetime.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/default.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/duration.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/helpers.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/image.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/message.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/moderate.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/numeric.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/statate.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/scripts/tagues.js +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/color.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/datagrid.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/datetime.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/default.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/duration.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/image.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/message.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/moderate.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/numeric.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/statate.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/styles/tagues.css +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/__init__.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/conftest.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_color.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_content.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_datagrid.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_datetime.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_default.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_duration.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_helpers.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_image.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_message.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_moderate.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_numeric.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_statate.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon/webkit/test/test_tagues.py +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon.egg-info/SOURCES.txt +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon.egg-info/dependency_links.txt +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon.egg-info/requires.txt +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/encommon.egg-info/top_level.txt +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/pyproject.toml +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/require/install.txt +0 -0
- {encommon-0.22.7 → encommon-0.22.9}/setup.cfg +0 -0
@@ -169,7 +169,7 @@ def test_Windows(
|
|
169
169
|
|
170
170
|
|
171
171
|
def test_Windows_cover(
|
172
|
-
windows:
|
172
|
+
windows: Windows,
|
173
173
|
) -> None:
|
174
174
|
"""
|
175
175
|
Perform various tests associated with relevant routines.
|
@@ -179,23 +179,32 @@ def test_Windows_cover(
|
|
179
179
|
|
180
180
|
|
181
181
|
assert windows.ready('two')
|
182
|
+
assert windows.ready('two')
|
183
|
+
assert windows.pause('two')
|
182
184
|
|
183
185
|
windows.update('two', '+1h')
|
184
186
|
|
185
187
|
assert not windows.ready('two')
|
188
|
+
assert windows.pause('two')
|
186
189
|
|
187
190
|
|
188
191
|
windows = Windows()
|
189
192
|
|
190
|
-
|
193
|
+
|
194
|
+
params = WindowParams(
|
195
|
+
window=1,
|
196
|
+
start='+1s')
|
191
197
|
|
192
198
|
windows.create('fur', params)
|
193
199
|
|
194
200
|
assert not windows.ready('fur')
|
201
|
+
assert windows.pause('fur')
|
195
202
|
|
196
203
|
sleep(2)
|
197
204
|
|
198
205
|
assert windows.ready('fur')
|
206
|
+
assert windows.ready('fur')
|
207
|
+
assert windows.pause('fur')
|
199
208
|
|
200
209
|
windows.delete('fur')
|
201
210
|
|
@@ -31,8 +31,8 @@ class Window:
|
|
31
31
|
Example
|
32
32
|
-------
|
33
33
|
>>> window = Window('* * * * *', '-4m@m')
|
34
|
-
>>> [window.ready() for _ in range(
|
35
|
-
[True, True, True, True, False]
|
34
|
+
>>> [window.ready() for _ in range(6)]
|
35
|
+
[True, True, True, True, True, False]
|
36
36
|
|
37
37
|
:param window: Parameters for defining scheduled time.
|
38
38
|
:param start: Determine the start for scheduling window.
|
@@ -252,7 +252,7 @@ class Window:
|
|
252
252
|
raise NotImplementedError
|
253
253
|
|
254
254
|
|
255
|
-
def ready(
|
255
|
+
def ready(
|
256
256
|
self,
|
257
257
|
update: bool = True,
|
258
258
|
) -> bool:
|
@@ -283,8 +283,6 @@ class Window:
|
|
283
283
|
self.__wlast = wlast
|
284
284
|
self.__wnext = wnext
|
285
285
|
|
286
|
-
if wnext > soonest:
|
287
|
-
return False
|
288
286
|
|
289
287
|
return True
|
290
288
|
|
@@ -94,8 +94,8 @@ class Windows:
|
|
94
94
|
>>> source = {'one': WindowParams(window=1)}
|
95
95
|
>>> params = WindowsParams(windows=source)
|
96
96
|
>>> windows = Windows(params, '-2s', 'now')
|
97
|
-
>>> [windows.ready('one') for x in range(
|
98
|
-
[True, True, False]
|
97
|
+
>>> [windows.ready('one') for x in range(4)]
|
98
|
+
[True, True, True, False]
|
99
99
|
|
100
100
|
:param params: Parameters used to instantiate the class.
|
101
101
|
:param start: Determine the start for scheduling window.
|
@@ -431,6 +431,23 @@ class Windows:
|
|
431
431
|
return ready
|
432
432
|
|
433
433
|
|
434
|
+
def pause(
|
435
|
+
self,
|
436
|
+
unique: str,
|
437
|
+
update: bool = True,
|
438
|
+
) -> bool:
|
439
|
+
"""
|
440
|
+
Determine whether or not the appropriate time has passed.
|
441
|
+
|
442
|
+
:param unique: Unique identifier for the related child.
|
443
|
+
:param update: Determines whether or not time is updated.
|
444
|
+
:returns: Boolean indicating whether enough time passed.
|
445
|
+
"""
|
446
|
+
|
447
|
+
return not self.ready(
|
448
|
+
unique, update)
|
449
|
+
|
450
|
+
|
434
451
|
def create(
|
435
452
|
self,
|
436
453
|
unique: str,
|
@@ -0,0 +1 @@
|
|
1
|
+
0.22.9
|
@@ -1 +0,0 @@
|
|
1
|
-
0.22.7
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|