MeUtils 2024.11.28.17.25.11__py3-none-any.whl → 2024.11.28.17.32.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: MeUtils
3
- Version: 2024.11.28.17.25.11
3
+ Version: 2024.11.28.17.32.9
4
4
  Summary: description
5
5
  Home-page: https://github.com/yuanjie-ai/MeUtils
6
6
  Author: yuanjie
@@ -61,42 +61,42 @@ Requires-Dist: sse-starlette ; extra == 'ai'
61
61
  Requires-Dist: openai ; extra == 'ai'
62
62
  Requires-Dist: langchain ; extra == 'ai'
63
63
  Provides-Extra: all
64
- Requires-Dist: pandas-profiling[notebook] ; extra == 'all'
65
- Requires-Dist: polars ; extra == 'all'
66
- Requires-Dist: langchain ; extra == 'all'
64
+ Requires-Dist: pretty-errors ; extra == 'all'
65
+ Requires-Dist: pandas-summary ; extra == 'all'
66
+ Requires-Dist: reportlab ; extra == 'all'
67
67
  Requires-Dist: pymongo ; extra == 'all'
68
- Requires-Dist: pymysql ; extra == 'all'
69
68
  Requires-Dist: fastapi[all] ; extra == 'all'
70
- Requires-Dist: redis-py-cluster ; extra == 'all'
71
- Requires-Dist: pretty-errors ; extra == 'all'
72
- Requires-Dist: sse-starlette ; extra == 'all'
73
- Requires-Dist: geopy ; extra == 'all'
74
- Requires-Dist: simplejson ; extra == 'all'
75
- Requires-Dist: jinja2 ; extra == 'all'
76
- Requires-Dist: sqlalchemy ; extra == 'all'
77
- Requires-Dist: iteration-utilities ; extra == 'all'
78
- Requires-Dist: openai ; extra == 'all'
79
- Requires-Dist: streamlit ; extra == 'all'
80
69
  Requires-Dist: faiss-cpu ; extra == 'all'
81
- Requires-Dist: fastapi ; extra == 'all'
82
- Requires-Dist: missingno ; extra == 'all'
83
- Requires-Dist: uvicorn ; extra == 'all'
84
- Requires-Dist: pandas-summary ; extra == 'all'
85
- Requires-Dist: cachetools ; extra == 'all'
86
- Requires-Dist: pymupd ; extra == 'all'
70
+ Requires-Dist: iteration-utilities ; extra == 'all'
71
+ Requires-Dist: polars ; extra == 'all'
72
+ Requires-Dist: schedule ; extra == 'all'
87
73
  Requires-Dist: thefuck ; extra == 'all'
88
- Requires-Dist: dataframe-image ; extra == 'all'
89
- Requires-Dist: pymilvus ; extra == 'all'
90
- Requires-Dist: reportlab ; extra == 'all'
74
+ Requires-Dist: thriftpy2 ; extra == 'all'
75
+ Requires-Dist: geopy ; extra == 'all'
91
76
  Requires-Dist: gunicorn ; extra == 'all'
92
- Requires-Dist: filetype ; extra == 'all'
93
- Requires-Dist: jieba ; extra == 'all'
94
- Requires-Dist: pyarrow ; extra == 'all'
95
- Requires-Dist: schedule ; extra == 'all'
77
+ Requires-Dist: pandas-profiling[notebook] ; extra == 'all'
78
+ Requires-Dist: redis-py-cluster ; extra == 'all'
96
79
  Requires-Dist: asyncmy ; extra == 'all'
80
+ Requires-Dist: pymysql ; extra == 'all'
81
+ Requires-Dist: dataframe-image ; extra == 'all'
97
82
  Requires-Dist: seaborn ; extra == 'all'
98
- Requires-Dist: thriftpy2 ; extra == 'all'
83
+ Requires-Dist: langchain ; extra == 'all'
84
+ Requires-Dist: jinja2 ; extra == 'all'
85
+ Requires-Dist: jieba ; extra == 'all'
86
+ Requires-Dist: simplejson ; extra == 'all'
87
+ Requires-Dist: fastapi ; extra == 'all'
88
+ Requires-Dist: pymilvus ; extra == 'all'
89
+ Requires-Dist: filetype ; extra == 'all'
90
+ Requires-Dist: uvicorn ; extra == 'all'
91
+ Requires-Dist: sqlalchemy ; extra == 'all'
92
+ Requires-Dist: pymupd ; extra == 'all'
93
+ Requires-Dist: openai ; extra == 'all'
99
94
  Requires-Dist: jmespath ; extra == 'all'
95
+ Requires-Dist: cachetools ; extra == 'all'
96
+ Requires-Dist: missingno ; extra == 'all'
97
+ Requires-Dist: pyarrow ; extra == 'all'
98
+ Requires-Dist: streamlit ; extra == 'all'
99
+ Requires-Dist: sse-starlette ; extra == 'all'
100
100
  Provides-Extra: ann
101
101
  Requires-Dist: pymilvus ; extra == 'ann'
102
102
  Requires-Dist: faiss-cpu ; extra == 'ann'
@@ -421,8 +421,9 @@ meutils/async_task/common.py,sha256=sSHRgxP18AOiKw0sI-IFnWOAYq6u-Le-wk-SIK0dSIw,
421
421
  meutils/async_task/x.py,sha256=48Tz84e5sTFTZETHFR3sk5b46tvdGDkyOrPXLHuQVWM,994
422
422
  meutils/async_task/通用设计.py,sha256=kGdrJHJu9VoOkyGHREn0KUtBTibAaLIcG0O6hEJNhLA,3232
423
423
  meutils/async_task/tasks/__init__.py,sha256=gZ2awvNG06eZzeS0Asjzi5VCM3cM1ZhlZtF60e6n8so,532
424
- meutils/async_task/tasks/kling.py,sha256=DxKTFF8I_XyjLc-P4SWeJvL9VBRvlacQgeX7Y6pMByo,646
425
- meutils/async_task/tasks/test.py,sha256=94PbLm3WsWdFsbD-1O7Ogq-fH3hRzacRC0fNZUFyDF0,648
424
+ meutils/async_task/tasks/kling.py,sha256=Z2Z0orhh3VFUkvfTr66lO4fw9hLoxoVBv3Vz6gxEU-8,516
425
+ meutils/async_task/tasks/test.py,sha256=RftlZLz0FhgQgY9R6U9UtgLiGPudZHJ9M7CNpkMhzxo,801
426
+ meutils/async_task/tasks/vidu.py,sha256=obBG4_bf1oPIlLxeca1s1dGOnlyam2xYRy-8TrH3ZTk,620
426
427
  meutils/async_utils/__init__.py,sha256=IiJLRm258jkM4xAjUKOD7tVwHIemj7_1CuzXCu3TuQU,284
427
428
  meutils/async_utils/background.py,sha256=dl6UaMIFBZDB1uxSZzGFJdSnpt3Xo0flK7gwsokVy78,1464
428
429
  meutils/async_utils/common.py,sha256=ZPKdloCCXkO6xLxUBiGc2p5YJotsb4PaqfinI-CnZm8,4674
@@ -455,7 +456,7 @@ meutils/config_utils/lark_utils/demo.py,sha256=3g0Fs7oLaeW75T60gYWMLgyNg1OnfOjfH
455
456
  meutils/config_utils/lark_utils/x.py,sha256=MlMQGhehP9xMEgetxVCX68XFaosfKoW1JA5cZ3JqN2w,1857
456
457
  meutils/crawlers/__init__.py,sha256=TBU4xA-IOsHV-0yIkW7YXxn_QT7TT8NncqxO7IykEfs,271
457
458
  meutils/data/SimHei.ttf,sha256=-XEnekS5yHP_URkT4XBI2w22ylV-KxudhkeIYFbrILA,10062565
458
- meutils/data/VERSION,sha256=LNWsK8qNhGIodOHvixKYJmxT9iNUEyAKTRkt5E5XSEQ,19
459
+ meutils/data/VERSION,sha256=n8GqL9-B9WGfbh_wYh7A6MzL-srDyrW61uSjf28MpBE,19
459
460
  meutils/data/_FLAG,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
460
461
  meutils/data/_SUCCESS,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
461
462
  meutils/data/__init__.py,sha256=Hfwkkxs4zHqKhxht0YrhS566a9P5axtmgNvM5wF8ceQ,243
@@ -788,9 +789,9 @@ meutils/tools/seize.py,sha256=nOKAS63w-Lbi48I0m2MPhdsokUTwxco0laPxYVmW4Mw,1064
788
789
  meutils/tools/service_monitor.py,sha256=ibsLtBN2g2DL7ZnLJ8vhiZOiOcqTAyx711djDdBK-3M,1255
789
790
  meutils/tools/sys_monitor.py,sha256=6MoyzrItqDUOSjfHcMJmMofQkEPTW36CT_aKui0rg84,429
790
791
  meutils/tools/token_monitor.py,sha256=Np-YK-R4P4IPAXyZvMxwvXI4sFmNJQAQK1lSegNaYpA,997
791
- MeUtils-2024.11.28.17.25.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
792
- MeUtils-2024.11.28.17.25.11.dist-info/METADATA,sha256=xVjX-4fhPgkrYWeZEjU6544R5RnTa-ayJSGXWdjFzrc,6144
793
- MeUtils-2024.11.28.17.25.11.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
794
- MeUtils-2024.11.28.17.25.11.dist-info/entry_points.txt,sha256=lufZlBHRqqZKdY-ZQJ4CSZb0qhV5hQC37egZna9M7ug,357
795
- MeUtils-2024.11.28.17.25.11.dist-info/top_level.txt,sha256=cInfxMmkgNOskurdjwP5unau4rA7Uw48nu07tYhS7KY,22
796
- MeUtils-2024.11.28.17.25.11.dist-info/RECORD,,
792
+ MeUtils-2024.11.28.17.32.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
793
+ MeUtils-2024.11.28.17.32.9.dist-info/METADATA,sha256=d1b8jx0YhYRVoQfWqp1VxCR7kK7mVjPpMfedQZzOFTY,6143
794
+ MeUtils-2024.11.28.17.32.9.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
795
+ MeUtils-2024.11.28.17.32.9.dist-info/entry_points.txt,sha256=lufZlBHRqqZKdY-ZQJ4CSZb0qhV5hQC37egZna9M7ug,357
796
+ MeUtils-2024.11.28.17.32.9.dist-info/top_level.txt,sha256=cInfxMmkgNOskurdjwP5unau4rA7Uw48nu07tYhS7KY,22
797
+ MeUtils-2024.11.28.17.32.9.dist-info/RECORD,,
@@ -11,22 +11,17 @@
11
11
  from meutils.pipe import *
12
12
  from meutils.decorators.retry import retrying
13
13
 
14
- from meutils.async_task import shared_task
14
+ from meutils.async_task import worker, shared_task
15
15
 
16
16
 
17
17
  @shared_task
18
- def do_task(**kwargs):
18
+ async def do_task(**kwargs):
19
19
  return kwargs
20
20
 
21
21
 
22
22
  @shared_task
23
23
  @retrying(3)
24
- def proxy_task(**kwargs):
25
- method = kwargs.pop('method', '')
26
- url = kwargs.pop('url', '')
27
-
28
- logger.debug(kwargs)
29
-
30
- response = requests.request(method, url, **kwargs).json()
24
+ async def proxy_task(**kwargs):
25
+ pass
31
26
 
32
27
  return response
@@ -11,11 +11,18 @@
11
11
  from meutils.pipe import *
12
12
  from meutils.decorators.retry import retrying
13
13
 
14
- from meutils.async_task import shared_task
14
+ from meutils.async_task import worker, shared_task
15
+
16
+
17
+ @shared_task
18
+ def do_sync_task(**kwargs):
19
+ logger.debug("同步任务")
20
+ return kwargs
15
21
 
16
22
 
17
23
  @shared_task()
18
- def do_task(**kwargs):
24
+ async def do_sync_task(**kwargs):
25
+ logger.debug("同步任务+协程")
19
26
  return kwargs
20
27
 
21
28
 
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ # @Project : AI. @by PyCharm
4
+ # @File : kling
5
+ # @Time : 2024/11/28 16:18
6
+ # @Author : betterme
7
+ # @WeChat : meutils
8
+ # @Software : PyCharm
9
+ # @Description :
10
+
11
+ from meutils.pipe import *
12
+ from meutils.decorators.retry import retrying
13
+ from meutils.async_task import worker, shared_task
14
+
15
+ from meutils.apis.vidu.vidu_video import create_task, get_task, ViduRequest
16
+
17
+
18
+ @shared_task
19
+ async def do_task(**kwargs):
20
+ return create_task(ViduRequest(**kwargs))
21
+
22
+
23
+ @shared_task
24
+ @retrying(3)
25
+ async def proxy_task(**kwargs):
26
+ pass
27
+
28
+ return response
meutils/data/VERSION CHANGED
@@ -1 +1 @@
1
- 2024.11.28.17.25.11
1
+ 2024.11.28.17.32.09