cobweb-launcher 0.1.4__tar.gz → 0.1.6__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/PKG-INFO +1 -1
  2. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/distributed/models.py +3 -3
  3. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/single/launcher.py +1 -1
  4. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/single/models.py +3 -4
  5. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/utils.py +1 -1
  6. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb_launcher.egg-info/PKG-INFO +1 -1
  7. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/setup.py +1 -1
  8. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/LICENSE +0 -0
  9. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/README.md +0 -0
  10. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/__init__.py +0 -0
  11. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/bbb.py +0 -0
  12. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/__init__.py +0 -0
  13. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/oss_db.py +0 -0
  14. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/redis_db.py +0 -0
  15. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/scheduler/__init__.py +0 -0
  16. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/scheduler/default.py +0 -0
  17. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/scheduler/textfile.py +0 -0
  18. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/storer/__init__.py +0 -0
  19. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/storer/console.py +0 -0
  20. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/storer/loghub.py +0 -0
  21. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/storer/redis.py +0 -0
  22. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/db/storer/textfile.py +0 -0
  23. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/decorators.py +0 -0
  24. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/distributed/__init__.py +0 -0
  25. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/distributed/launcher.py +0 -0
  26. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/interface.py +0 -0
  27. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/log.py +0 -0
  28. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/setting.py +0 -0
  29. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/single/__init__.py +0 -0
  30. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb/task.py +0 -0
  31. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb_launcher.egg-info/SOURCES.txt +0 -0
  32. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb_launcher.egg-info/dependency_links.txt +0 -0
  33. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb_launcher.egg-info/requires.txt +0 -0
  34. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/cobweb_launcher.egg-info/top_level.txt +0 -0
  35. {cobweb-launcher-0.1.4 → cobweb-launcher-0.1.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -1,7 +1,7 @@
1
1
  import time
2
2
  from hashlib import md5
3
3
  from cobweb import log, Queue, Seed
4
- from utils import issubclass_cobweb_interface
4
+ from cobweb.utils import issubclass_cobweb_inf
5
5
 
6
6
  # from pympler import asizeof
7
7
 
@@ -11,7 +11,7 @@ class Scheduler:
11
11
  def schedule_seed(self, ready_seed_length, get_scheduler_lock, add_seed):
12
12
 
13
13
  inf_name = "SchedulerInterface"
14
- if not issubclass_cobweb_interface(self.__class__, inf_name):
14
+ if not issubclass_cobweb_inf(self.__class__, inf_name):
15
15
  raise Exception("not have schedule function!")
16
16
 
17
17
  if self.__class__.__name__ == "Default":
@@ -107,7 +107,7 @@ class Storer:
107
107
  def store_task(self, stop, last, reset_seed, set_storer):
108
108
 
109
109
  inf_name = "StorerInterface"
110
- if not issubclass_cobweb_interface(self.__class__, inf_name):
110
+ if not issubclass_cobweb_inf(self.__class__, inf_name):
111
111
  return None
112
112
 
113
113
  if not getattr(self, "store", None):
@@ -212,7 +212,7 @@ def launcher(task):
212
212
  args=(
213
213
  stop, last,
214
214
  redis_db.reset_seed,
215
- redis_db.set_storer
215
+ redis_db.del_seed
216
216
  )
217
217
  ).start()
218
218
 
@@ -1,7 +1,6 @@
1
1
  import time
2
2
  from cobweb import log, Queue, Seed
3
- from utils import issubclass_cobweb_interface
4
-
3
+ from cobweb.utils import issubclass_cobweb_inf
5
4
  # from pympler import asizeof
6
5
 
7
6
 
@@ -10,7 +9,7 @@ class Scheduler:
10
9
  def schedule_seed(self, ready_seed_length, get_scheduler_lock, add_seed):
11
10
 
12
11
  inf_name = "SchedulerInterface"
13
- if not issubclass_cobweb_interface(self.__class__, inf_name):
12
+ if not issubclass_cobweb_inf(self.__class__, inf_name):
14
13
  raise Exception("not have schedule function!")
15
14
 
16
15
  if self.__class__.__name__ == "Default":
@@ -102,7 +101,7 @@ class Storer:
102
101
  def store_task(self, stop, last, reset_seed, del_seed):
103
102
 
104
103
  inf_name = "StorerInterface"
105
- if not issubclass_cobweb_interface(self.__class__, inf_name):
104
+ if not issubclass_cobweb_inf(self.__class__, inf_name):
106
105
  return None
107
106
 
108
107
  if not getattr(self, "store", None):
@@ -51,7 +51,7 @@ def struct_start_seeds(seeds):
51
51
  return Seed(seeds)
52
52
 
53
53
 
54
- def issubclass_cobweb_interface(_class, inf_name):
54
+ def issubclass_cobweb_inf(_class, inf_name):
55
55
  for _c in _class.__mro__[1:]:
56
56
  if _c.__name__ == inf_name:
57
57
  return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="cobweb-launcher",
8
- version="0.1.4",
8
+ version="0.1.6",
9
9
  packages=find_packages(),
10
10
  url="https://github.com/Juannie-PP/cobweb",
11
11
  license="MIT",
File without changes