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.
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/PKG-INFO +1 -1
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/bbb.py +4 -5
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/PKG-INFO +1 -1
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/setup.py +1 -1
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/LICENSE +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/README.md +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/__init__.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/__init__.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/oss_db.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/redis_db.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/scheduler/__init__.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/scheduler/default.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/scheduler/textfile.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/__init__.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/console.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/loghub.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/redis.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/db/storer/textfile.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/decorators.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/distributed/__init__.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/distributed/launcher.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/distributed/models.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/interface.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/log.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/single/__init__.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/single/models.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/single/nest.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/task.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb/utils.py +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/SOURCES.txt +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/dependency_links.txt +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/requires.txt +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/top_level.txt +0 -0
- {cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/setup.cfg +0 -0
@@ -81,9 +81,8 @@ class Seed:
|
|
81
81
|
f"must be str or dict! "
|
82
82
|
f"seed_info: {seed_info}"
|
83
83
|
))
|
84
|
-
|
85
|
-
|
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:
|
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
|
{cobweb-launcher-0.0.12 → cobweb-launcher-0.0.14}/cobweb_launcher.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|