cobweb-launcher 0.0.12__tar.gz → 0.0.14__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/PKG-INFO +1 -1
  2. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/bbb.py +4 -5
  3. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/PKG-INFO +1 -1
  4. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/setup.py +1 -1
  5. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/LICENSE +0 -0
  6. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/README.md +0 -0
  7. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/__init__.py +0 -0
  8. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/__init__.py +0 -0
  9. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/oss_db.py +0 -0
  10. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/redis_db.py +0 -0
  11. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/scheduler/__init__.py +0 -0
  12. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/scheduler/default.py +0 -0
  13. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/scheduler/textfile.py +0 -0
  14. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/__init__.py +0 -0
  15. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/console.py +0 -0
  16. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/loghub.py +0 -0
  17. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/redis.py +0 -0
  18. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/textfile.py +0 -0
  19. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/decorators.py +0 -0
  20. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/distributed/__init__.py +0 -0
  21. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/distributed/launcher.py +0 -0
  22. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/distributed/models.py +0 -0
  23. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/interface.py +0 -0
  24. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/log.py +0 -0
  25. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/single/__init__.py +0 -0
  26. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/single/models.py +0 -0
  27. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/single/nest.py +0 -0
  28. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/task.py +0 -0
  29. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/utils.py +0 -0
  30. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/SOURCES.txt +0 -0
  31. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/dependency_links.txt +0 -0
  32. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/requires.txt +0 -0
  33. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/top_level.txt +0 -0
  34. {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.0.12
3
+ Version: 0.0.14
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -81,9 +81,8 @@ class Seed:
81
81
  f"must be str or dict! "
82
82
  f"seed_info: {seed_info}"
83
83
  ))
84
- if kwargs:
85
- for k, v in kwargs.items():
86
- self.__setattr__(k, v)
84
+ for k, v in kwargs.items():
85
+ self.__setattr__(k, v)
87
86
  if not getattr(self, "_priority"):
88
87
  self._priority = min(max(1, int(priority)), 999)
89
88
  if not getattr(self, "_version"):
@@ -115,12 +114,12 @@ class Seed:
115
114
  return f'{self.__class__.__name__}({", ".join(chars)})'
116
115
 
117
116
  @property
118
- def format_seed(self):
117
+ def format_seed(self, json_str=True):
119
118
  seed = self.__dict__.copy()
120
119
  del seed["_priority"]
121
120
  del seed["_version"]
122
121
  del seed["_retry"]
123
- return json.dumps(seed, ensure_ascii=False)
122
+ return json.dumps(seed, ensure_ascii=False) if json_str else seed
124
123
 
125
124
 
126
125
  class DBItem:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 0.0.12
3
+ Version: 0.0.14
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.0.12",
8
+ version="0.0.14",
9
9
  packages=find_packages(),
10
10
  url="https://github.com/Juannie-PP/cobweb",
11
11
  license="MIT",