encommon 0.22.8__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.8/encommon.egg-info → encommon-0.22.9}/PKG-INFO +1 -1
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_windows.py +8 -1
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/windows.py +17 -0
- encommon-0.22.9/encommon/version.txt +1 -0
- {encommon-0.22.8 → encommon-0.22.9/encommon.egg-info}/PKG-INFO +1 -1
- encommon-0.22.8/encommon/version.txt +0 -1
- {encommon-0.22.8 → encommon-0.22.9}/LICENSE +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/MANIFEST.in +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/README.md +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/colors/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/colors/color.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/colors/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/colors/test/test_color.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/config.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/files.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/logger.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/params.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/paths.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/test/test_config.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/test/test_files.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/test/test_logger.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/test/test_paths.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/test/test_utils.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/config/utils.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/conftest.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/crypts.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/hashes.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/params.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/test/test_crypts.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/crypts/test/test_hashes.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/parse/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/parse/jinja2.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/parse/network.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/parse/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/parse/test/test_jinja2.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/parse/test/test_network.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/py.typed +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/common.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/duration.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/params.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/parse.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_duration.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_params.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_parse.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_time.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_timer.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_timers.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_unitime.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_utils.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/test/test_window.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/time.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/timer.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/timers.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/unitime.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/utils.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/times/window.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/classes.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/dicts.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/empty.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/funcs.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/lists.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/notate.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/strings.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_classes.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_dicts.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_empty.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_funcs.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_lists.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_notate.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/test/test_strings.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/types/types.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/common.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/files.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/match.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/paths.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/sample.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/stdout.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/test/test_files.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/test/test_match.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/test/test_paths.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/test/test_sample.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/utils/test/test_stdout.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/content.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/images/enasis.svg +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/images/failure.svg +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/images/information.svg +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/images/success.svg +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/images/warning.svg +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/index.html +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/color.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/datagrid.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/datetime.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/default.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/duration.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/helpers.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/image.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/message.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/moderate.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/numeric.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/statate.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/scripts/tagues.js +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/color.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/datagrid.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/datetime.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/default.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/duration.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/image.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/message.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/moderate.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/numeric.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/statate.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/styles/tagues.css +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/__init__.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/conftest.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_color.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_content.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_datagrid.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_datetime.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_default.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_duration.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_helpers.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_image.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_message.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_moderate.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_numeric.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_statate.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon/webkit/test/test_tagues.py +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon.egg-info/SOURCES.txt +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon.egg-info/dependency_links.txt +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon.egg-info/requires.txt +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/encommon.egg-info/top_level.txt +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/pyproject.toml +0 -0
- {encommon-0.22.8 → encommon-0.22.9}/require/install.txt +0 -0
- {encommon-0.22.8 → 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,14 +179,18 @@ 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
|
|
193
|
+
|
190
194
|
params = WindowParams(
|
191
195
|
window=1,
|
192
196
|
start='+1s')
|
@@ -194,10 +198,13 @@ def test_Windows_cover(
|
|
194
198
|
windows.create('fur', params)
|
195
199
|
|
196
200
|
assert not windows.ready('fur')
|
201
|
+
assert windows.pause('fur')
|
197
202
|
|
198
203
|
sleep(2)
|
199
204
|
|
200
205
|
assert windows.ready('fur')
|
206
|
+
assert windows.ready('fur')
|
207
|
+
assert windows.pause('fur')
|
201
208
|
|
202
209
|
windows.delete('fur')
|
203
210
|
|
@@ -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.8
|
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
|
File without changes
|