encommon 0.12.2__tar.gz → 0.12.3__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.12.2/encommon.egg-info → encommon-0.12.3}/PKG-INFO +1 -1
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_timers.py +0 -10
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_windows.py +0 -10
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/timers.py +24 -3
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/windows.py +24 -3
- encommon-0.12.3/encommon/version.txt +1 -0
- {encommon-0.12.2 → encommon-0.12.3/encommon.egg-info}/PKG-INFO +1 -1
- encommon-0.12.2/encommon/version.txt +0 -1
- {encommon-0.12.2 → encommon-0.12.3}/LICENSE +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/MANIFEST.in +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/README.md +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/config.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/files.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/logger.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/params.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/paths.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/test/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/test/test_config.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/test/test_files.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/test/test_logger.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/test/test_paths.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/test/test_utils.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/config/utils.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/conftest.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/crypts.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/hashes.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/params.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/test/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/test/test_crypts.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/crypts/test/test_hashes.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/py.typed +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/common.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/duration.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/params.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/parse.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_duration.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_params.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_parse.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_timer.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_times.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_utils.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/test/test_window.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/timer.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/times.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/utils.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/times/window.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/dicts.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/empty.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/notate.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/strings.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/test/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/test/test_dicts.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/test/test_empty.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/test/test_notate.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/types/test/test_strings.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/common.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/files.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/match.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/paths.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/sample.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/stdout.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/test/__init__.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/test/test_files.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/test/test_match.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/test/test_paths.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/test/test_sample.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon/utils/test/test_stdout.py +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon.egg-info/SOURCES.txt +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon.egg-info/dependency_links.txt +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon.egg-info/requires.txt +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/encommon.egg-info/top_level.txt +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/pyproject.toml +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/reqs-install.txt +0 -0
- {encommon-0.12.2 → encommon-0.12.3}/setup.cfg +0 -0
@@ -213,13 +213,3 @@ def test_Timers_raises(
|
|
213
213
|
_reason = str(reason.value)
|
214
214
|
|
215
215
|
assert _reason == 'unique'
|
216
|
-
|
217
|
-
|
218
|
-
_raises = raises(ValueError)
|
219
|
-
|
220
|
-
with _raises as reason:
|
221
|
-
timers.delete('dne')
|
222
|
-
|
223
|
-
_reason = str(reason.value)
|
224
|
-
|
225
|
-
assert _reason == 'unique'
|
@@ -240,13 +240,3 @@ def test_Windows_raises(
|
|
240
240
|
_reason = str(reason.value)
|
241
241
|
|
242
242
|
assert _reason == 'unique'
|
243
|
-
|
244
|
-
|
245
|
-
_raises = raises(ValueError)
|
246
|
-
|
247
|
-
with _raises as reason:
|
248
|
-
windows.delete('dne')
|
249
|
-
|
250
|
-
_reason = str(reason.value)
|
251
|
-
|
252
|
-
assert _reason == 'unique'
|
@@ -423,12 +423,33 @@ class Timers:
|
|
423
423
|
"""
|
424
424
|
Delete the timer from the internal dictionary reference.
|
425
425
|
|
426
|
+
.. note::
|
427
|
+
This is a graceful method, will not raise exception
|
428
|
+
when the provided unique value does not exist.
|
429
|
+
|
426
430
|
:param unique: Unique identifier for the related child.
|
427
431
|
"""
|
428
432
|
|
429
433
|
timers = self.__timers
|
430
434
|
|
431
|
-
|
432
|
-
|
435
|
+
group = self.__group
|
436
|
+
|
437
|
+
session = self.store_session
|
438
|
+
|
439
|
+
|
440
|
+
if unique in timers:
|
441
|
+
del timers[unique]
|
442
|
+
|
433
443
|
|
434
|
-
|
444
|
+
_table = TimersTable
|
445
|
+
_group = _table.group
|
446
|
+
_unique = _table.unique
|
447
|
+
|
448
|
+
(session.query(_table)
|
449
|
+
.filter(_unique == unique)
|
450
|
+
.filter(_group == group)
|
451
|
+
.delete())
|
452
|
+
|
453
|
+
|
454
|
+
session.commit()
|
455
|
+
session.close()
|
@@ -488,12 +488,33 @@ class Windows:
|
|
488
488
|
"""
|
489
489
|
Delete the window from the internal dictionary reference.
|
490
490
|
|
491
|
+
.. note::
|
492
|
+
This is a graceful method, will not raise exception
|
493
|
+
when the provided unique value does not exist.
|
494
|
+
|
491
495
|
:param unique: Unique identifier for the related child.
|
492
496
|
"""
|
493
497
|
|
494
498
|
windows = self.__windows
|
495
499
|
|
496
|
-
|
497
|
-
|
500
|
+
group = self.__group
|
501
|
+
|
502
|
+
session = self.store_session
|
503
|
+
|
504
|
+
|
505
|
+
if unique in windows:
|
506
|
+
del windows[unique]
|
507
|
+
|
498
508
|
|
499
|
-
|
509
|
+
_table = WindowsTable
|
510
|
+
_group = _table.group
|
511
|
+
_unique = _table.unique
|
512
|
+
|
513
|
+
(session.query(_table)
|
514
|
+
.filter(_unique == unique)
|
515
|
+
.filter(_group == group)
|
516
|
+
.delete())
|
517
|
+
|
518
|
+
|
519
|
+
session.commit()
|
520
|
+
session.close()
|
@@ -0,0 +1 @@
|
|
1
|
+
0.12.3
|
@@ -1 +0,0 @@
|
|
1
|
-
0.12.2
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|