pycoze 0.1.258__py3-none-any.whl → 0.1.260__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pycoze/api/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- from .api import Api, api
1
+ from lib.api import Api, api
2
2
 
3
3
  window = api.window
4
4
 
@@ -12,7 +12,8 @@ class WindowCls:
12
12
  result = socket.post_and_recv_result("get-selected-text", {})
13
13
  return result
14
14
 
15
- def append_msg(self, message: str, type='info'):
15
+ def append_msg(self, message: str, type: str = 'info'):
16
+ assert type in ['info', 'warning', 'success', 'error'], 'type must be info, warning, success or error'
16
17
  if not isinstance(message, str):
17
18
  message = repr(message)
18
19
  socket.post("append-msg", {"message": message, "type": type})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.258
3
+ Version: 0.1.260
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -5,10 +5,10 @@ pycoze/ai/llm/__init__.py,sha256=5_AnOrzXI2V6ZZsLUWW1v5ATRWmJy53JLN9jfSZQXCg,249
5
5
  pycoze/ai/llm/chat.py,sha256=izriC7nCp5qeJRqcUVQBVqTHiH6MJS77ROzGBJufdNI,5133
6
6
  pycoze/ai/llm/text_to_image_prompt.py,sha256=0bx2C_YRvjAo7iphHGp1-pmGKsKqwur7dM0t3SiA8kA,3398
7
7
  pycoze/ai/llm/think.py,sha256=sUgTBdGzcZtL3r-Wx8M3lDuVUmDVz8g3qC0VU8uiKAI,5143
8
- pycoze/api/__init__.py,sha256=Bb7Trv4y5vti-Tt_4fiu7Zfr1HF_vuxASHReLiUHXn4,137
9
- pycoze/api/api.py,sha256=OPLp4t4szP4azCTEBNEHO9CIDl9JrmfZPK9mONpvQC0,137
8
+ pycoze/api/__init__.py,sha256=e9ML70yy_aWLrKuNezQoSz5hPOOEgmtK0QRvbv4QkXo,140
10
9
  pycoze/api/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- pycoze/api/lib/window_cls.py,sha256=ZaFNTWOHoOuWrUdyIykf1HVbSkcvhiCEnl1VtiRev8A,1615
10
+ pycoze/api/lib/api.py,sha256=OPLp4t4szP4azCTEBNEHO9CIDl9JrmfZPK9mONpvQC0,137
11
+ pycoze/api/lib/window_cls.py,sha256=nB6vIRq76hYOPR9uYYBOkXRMRVgvr2_NGkw6Pve4IQ0,1734
12
12
  pycoze/bot/__init__.py,sha256=JxnRoCCqx_LFyVb3pLu0qYCsH8ZLuAaMXAtvVUuCHuE,78
13
13
  pycoze/bot/agent_chat.py,sha256=ARXXsIVCTpmBojz2C4BR69nB0QhM6gkEngL3iq34JPo,4178
14
14
  pycoze/bot/bot.py,sha256=_qmUTZ09FmRLifHrW5stDZWGVK6yuMEMBC3fmeYJnqk,844
@@ -34,8 +34,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
34
34
  pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
35
35
  pycoze/utils/socket.py,sha256=yyYgx7G40x58sV466OQH0vj3i55xgR3uMDEjbQMbGks,2413
36
36
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
37
- pycoze-0.1.258.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
38
- pycoze-0.1.258.dist-info/METADATA,sha256=DHU2Z8VXIsTpL06l_ZuhaW8NZhB9RB-dpe_S2VnIvVk,699
39
- pycoze-0.1.258.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
40
- pycoze-0.1.258.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
41
- pycoze-0.1.258.dist-info/RECORD,,
37
+ pycoze-0.1.260.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
38
+ pycoze-0.1.260.dist-info/METADATA,sha256=vazAli_vkVBldw0ePtDVdtHD342AEM4i_9vbR81zklM,699
39
+ pycoze-0.1.260.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
40
+ pycoze-0.1.260.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
41
+ pycoze-0.1.260.dist-info/RECORD,,
File without changes