encommon 0.12.1__tar.gz → 0.12.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.
Files changed (81) hide show
  1. {encommon-0.12.1/encommon.egg-info → encommon-0.12.2}/PKG-INFO +1 -1
  2. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_timers.py +2 -0
  3. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/timers.py +12 -7
  4. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/windows.py +5 -5
  5. encommon-0.12.2/encommon/version.txt +1 -0
  6. {encommon-0.12.1 → encommon-0.12.2/encommon.egg-info}/PKG-INFO +1 -1
  7. encommon-0.12.1/encommon/version.txt +0 -1
  8. {encommon-0.12.1 → encommon-0.12.2}/LICENSE +0 -0
  9. {encommon-0.12.1 → encommon-0.12.2}/MANIFEST.in +0 -0
  10. {encommon-0.12.1 → encommon-0.12.2}/README.md +0 -0
  11. {encommon-0.12.1 → encommon-0.12.2}/encommon/__init__.py +0 -0
  12. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/__init__.py +0 -0
  13. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/config.py +0 -0
  14. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/files.py +0 -0
  15. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/logger.py +0 -0
  16. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/params.py +0 -0
  17. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/paths.py +0 -0
  18. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/test/__init__.py +0 -0
  19. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/test/test_config.py +0 -0
  20. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/test/test_files.py +0 -0
  21. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/test/test_logger.py +0 -0
  22. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/test/test_paths.py +0 -0
  23. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/test/test_utils.py +0 -0
  24. {encommon-0.12.1 → encommon-0.12.2}/encommon/config/utils.py +0 -0
  25. {encommon-0.12.1 → encommon-0.12.2}/encommon/conftest.py +0 -0
  26. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/__init__.py +0 -0
  27. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/crypts.py +0 -0
  28. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/hashes.py +0 -0
  29. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/params.py +0 -0
  30. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/test/__init__.py +0 -0
  31. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/test/test_crypts.py +0 -0
  32. {encommon-0.12.1 → encommon-0.12.2}/encommon/crypts/test/test_hashes.py +0 -0
  33. {encommon-0.12.1 → encommon-0.12.2}/encommon/py.typed +0 -0
  34. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/__init__.py +0 -0
  35. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/common.py +0 -0
  36. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/duration.py +0 -0
  37. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/params.py +0 -0
  38. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/parse.py +0 -0
  39. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/__init__.py +0 -0
  40. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_duration.py +0 -0
  41. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_params.py +0 -0
  42. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_parse.py +0 -0
  43. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_timer.py +0 -0
  44. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_times.py +0 -0
  45. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_utils.py +0 -0
  46. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_window.py +0 -0
  47. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/test/test_windows.py +0 -0
  48. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/timer.py +0 -0
  49. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/times.py +0 -0
  50. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/utils.py +0 -0
  51. {encommon-0.12.1 → encommon-0.12.2}/encommon/times/window.py +0 -0
  52. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/__init__.py +0 -0
  53. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/dicts.py +0 -0
  54. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/empty.py +0 -0
  55. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/notate.py +0 -0
  56. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/strings.py +0 -0
  57. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/test/__init__.py +0 -0
  58. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/test/test_dicts.py +0 -0
  59. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/test/test_empty.py +0 -0
  60. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/test/test_notate.py +0 -0
  61. {encommon-0.12.1 → encommon-0.12.2}/encommon/types/test/test_strings.py +0 -0
  62. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/__init__.py +0 -0
  63. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/common.py +0 -0
  64. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/files.py +0 -0
  65. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/match.py +0 -0
  66. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/paths.py +0 -0
  67. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/sample.py +0 -0
  68. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/stdout.py +0 -0
  69. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/test/__init__.py +0 -0
  70. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/test/test_files.py +0 -0
  71. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/test/test_match.py +0 -0
  72. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/test/test_paths.py +0 -0
  73. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/test/test_sample.py +0 -0
  74. {encommon-0.12.1 → encommon-0.12.2}/encommon/utils/test/test_stdout.py +0 -0
  75. {encommon-0.12.1 → encommon-0.12.2}/encommon.egg-info/SOURCES.txt +0 -0
  76. {encommon-0.12.1 → encommon-0.12.2}/encommon.egg-info/dependency_links.txt +0 -0
  77. {encommon-0.12.1 → encommon-0.12.2}/encommon.egg-info/requires.txt +0 -0
  78. {encommon-0.12.1 → encommon-0.12.2}/encommon.egg-info/top_level.txt +0 -0
  79. {encommon-0.12.1 → encommon-0.12.2}/pyproject.toml +0 -0
  80. {encommon-0.12.1 → encommon-0.12.2}/reqs-install.txt +0 -0
  81. {encommon-0.12.1 → encommon-0.12.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: encommon
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Enasis Network Common Library
5
5
  License: MIT
6
6
  Classifier: Programming Language :: Python :: 3
@@ -58,6 +58,7 @@ def timers(
58
58
  timer = TimersTable(
59
59
  group='default',
60
60
  unique='two',
61
+ last='1970-01-01T00:00:00Z',
61
62
  update='1970-01-01T00:00:00Z')
62
63
 
63
64
  session.add(timer)
@@ -68,6 +69,7 @@ def timers(
68
69
  timer = TimersTable(
69
70
  group='default',
70
71
  unique='tre',
72
+ last='1970-01-01T00:00:00Z',
71
73
  update='1970-01-01T00:00:00Z')
72
74
 
73
75
  session.add(timer)
@@ -61,6 +61,10 @@ class TimersTable(SQLBase):
61
61
  primary_key=True,
62
62
  nullable=False)
63
63
 
64
+ last = Column(
65
+ String,
66
+ nullable=False)
67
+
64
68
  update = Column(
65
69
  String,
66
70
  nullable=False)
@@ -268,14 +272,14 @@ class Timers:
268
272
  for record in query.all():
269
273
 
270
274
  unique = str(record.unique)
271
- update = str(record.update)
275
+ last = str(record.last)
272
276
 
273
277
  if unique not in config:
274
278
  continue
275
279
 
276
280
  _config = config[unique]
277
281
 
278
- _config.start = update
282
+ _config.start = last
279
283
 
280
284
 
281
285
  items = config.items()
@@ -323,6 +327,7 @@ class Timers:
323
327
  append = TimersTable(
324
328
  group=group,
325
329
  unique=unique,
330
+ last=timer.times.subsec,
326
331
  update=update.subsec)
327
332
 
328
333
  session.merge(append)
@@ -373,12 +378,12 @@ class Timers:
373
378
  :returns: Newly constructed instance of related class.
374
379
  """
375
380
 
376
- timers = self.params.timers
381
+ config = self.params.timers
377
382
 
378
- if unique in timers:
383
+ if unique in config:
379
384
  raise ValueError('unique')
380
385
 
381
- timers[unique] = params
386
+ config[unique] = params
382
387
 
383
388
  self.load_children()
384
389
 
@@ -406,9 +411,9 @@ class Timers:
406
411
 
407
412
  timer = timers[unique]
408
413
 
409
- self.save_children()
414
+ timer.update(value)
410
415
 
411
- return timer.update(value)
416
+ self.save_children()
412
417
 
413
418
 
414
419
  def delete(
@@ -443,12 +443,12 @@ class Windows:
443
443
  :returns: Newly constructed instance of related class.
444
444
  """
445
445
 
446
- windows = self.params.windows
446
+ config = self.params.windows
447
447
 
448
- if unique in windows:
448
+ if unique in config:
449
449
  raise ValueError('unique')
450
450
 
451
- windows[unique] = params
451
+ config[unique] = params
452
452
 
453
453
  self.load_children()
454
454
 
@@ -476,9 +476,9 @@ class Windows:
476
476
 
477
477
  window = windows[unique]
478
478
 
479
- self.save_children()
479
+ window.update(value)
480
480
 
481
- return window.update(value)
481
+ self.save_children()
482
482
 
483
483
 
484
484
  def delete(
@@ -0,0 +1 @@
1
+ 0.12.2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: encommon
3
- Version: 0.12.1
3
+ Version: 0.12.2
4
4
  Summary: Enasis Network Common Library
5
5
  License: MIT
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1 +0,0 @@
1
- 0.12.1
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes