cobweb-launcher 0.0.12__py3-none-any.whl → 0.0.14__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
cobweb/bbb.py CHANGED
@@ -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
@@ -1,5 +1,5 @@
1
1
  cobweb/__init__.py,sha256=bJDiD1bZgMjeLnGNUt1E-3-X6zxHwX0NyBziucm9OlE,247
2
- cobweb/bbb.py,sha256=Bc8MpxDL50RIO33eCitjeNosOZJTUlWx3L4_LFeOY5o,5641
2
+ cobweb/bbb.py,sha256=9zK2KOdKKi02oXFhUN8l8n-s_Ucylwt3-vibp5K0xLc,5651
3
3
  cobweb/decorators.py,sha256=8KPSKL8xsiXOLv-kckkaDtK8LXM8d5gaRriGpuEgOQk,320
4
4
  cobweb/interface.py,sha256=um_k2AAQl1HTOvfUlq914DjkpfZVwt2m1B65EpPKrmE,802
5
5
  cobweb/log.py,sha256=Gb3_y4IzTo5pJohTggBCU9rK6-ZN3hgTOHkoXHyN6CU,2384
@@ -22,8 +22,8 @@ cobweb/distributed/models.py,sha256=wnqumVPEX6ENVNcvqo3WvALyb_pXVd1BdT0QS0xpzbQ,
22
22
  cobweb/single/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  cobweb/single/models.py,sha256=lu8teNWnWcUwZFra8XmqyhzOAf3UyuEztwBr1Ne6pUs,2898
24
24
  cobweb/single/nest.py,sha256=mL8q9a5BjtoeUyzXCIVw_vyUsNY8ltbvQpYIIpZEDFU,5012
25
- cobweb_launcher-0.0.12.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
26
- cobweb_launcher-0.0.12.dist-info/METADATA,sha256=x5KpxgZ-3BGNk_W0W3S5HsK4urUBv-yo7q07_KsBT7M,1226
27
- cobweb_launcher-0.0.12.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
28
- cobweb_launcher-0.0.12.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
29
- cobweb_launcher-0.0.12.dist-info/RECORD,,
25
+ cobweb_launcher-0.0.14.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
26
+ cobweb_launcher-0.0.14.dist-info/METADATA,sha256=aKTN19rE_zfT_vWbX-LgHGoEqC8isvMJyVnuPqYClz4,1226
27
+ cobweb_launcher-0.0.14.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
28
+ cobweb_launcher-0.0.14.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
29
+ cobweb_launcher-0.0.14.dist-info/RECORD,,