MeUtils 2024.3.4.13.4.45__py3-none-any.whl → 2025.1.16.17.15.52__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.
Files changed (582) hide show
  1. {MeUtils-2024.3.4.13.4.45.dist-info → MeUtils-2025.1.16.17.15.52.dist-info}/METADATA +38 -32
  2. MeUtils-2025.1.16.17.15.52.dist-info/RECORD +864 -0
  3. {MeUtils-2024.3.4.13.4.45.dist-info → MeUtils-2025.1.16.17.15.52.dist-info}/WHEEL +1 -1
  4. {MeUtils-2024.3.4.13.4.45.dist-info → MeUtils-2025.1.16.17.15.52.dist-info}/entry_points.txt +1 -0
  5. apps/spider.py +24 -8
  6. examples/_openaisdk/4v.py +110 -0
  7. examples/_openaisdk/__init__.py +11 -0
  8. examples/_openaisdk/baichuan.py +38 -0
  9. examples/_openaisdk/bpo.py +138 -0
  10. examples/_openaisdk/chat_latex.py +95 -0
  11. examples/_openaisdk/chattts.py +85 -0
  12. examples/_openaisdk/copilot.py +48 -0
  13. examples/_openaisdk/dalle3.py +48 -0
  14. examples/_openaisdk/deeplx.py +31 -0
  15. examples/_openaisdk/demo.py +77 -0
  16. examples/_openaisdk/embeddings.py +34 -0
  17. examples/_openaisdk/gpt4all.py +69 -0
  18. examples/_openaisdk/gpt_fc.py +23 -0
  19. examples/_openaisdk/gr_vl.py +46 -0
  20. examples/_openaisdk/json_mode.py +12 -0
  21. examples/_openaisdk/kimi.py +91 -0
  22. examples/_openaisdk/kimi_qa.py +57 -0
  23. examples/_openaisdk/minimax.py +75 -0
  24. examples/_openaisdk/open_router.py +48 -0
  25. examples/_openaisdk/openai_aiplus.py +54 -0
  26. examples/_openaisdk/openai_audio.py +20 -0
  27. examples/_openaisdk/openai_baichuan.py +59 -0
  28. examples/_openaisdk/openai_cache.py +37 -0
  29. examples/_openaisdk/openai_chatfire.py +228 -0
  30. examples/_openaisdk/openai_chatfire_all.py +166 -0
  31. examples/_openaisdk/openai_deepinfra.py +55 -0
  32. examples/_openaisdk/openai_deepseek.py +29 -0
  33. examples/_openaisdk/openai_doubao.py +43 -0
  34. examples/_openaisdk/openai_embeddings.py +36 -0
  35. examples/_openaisdk/openai_files.py +57 -0
  36. examples/_openaisdk/openai_gitee.py +33 -0
  37. examples/_openaisdk/openai_god.py +45 -0
  38. examples/_openaisdk/openai_groq.py +240 -0
  39. examples/_openaisdk/openai_images.py +203 -0
  40. examples/_openaisdk/openai_json.py +78 -0
  41. examples/_openaisdk/openai_lingyi.py +59 -0
  42. examples/_openaisdk/openai_modelscope.py +54 -0
  43. examples/_openaisdk/openai_moon.py +55 -0
  44. examples/_openaisdk/openai_oi.py +61 -0
  45. examples/_openaisdk/openai_ppu.py +47 -0
  46. examples/_openaisdk/openai_qwen.py +58 -0
  47. examples/_openaisdk/openai_search.py +42 -0
  48. examples/_openaisdk/openai_sensenova.py +81 -0
  49. examples/_openaisdk/openai_siliconflow.py +52 -0
  50. examples/_openaisdk/openai_step.py +45 -0
  51. examples/_openaisdk/openai_test.py +66 -0
  52. examples/_openaisdk/openai_together.py +57 -0
  53. examples/_openaisdk/openai_tune.py +38 -0
  54. examples/_openaisdk/openai_zhipu.py +59 -0
  55. examples/_openaisdk/ppu.py +28 -0
  56. examples/_openaisdk/rag.py +54 -0
  57. examples/_openaisdk/rag_.py +26 -0
  58. examples/_openaisdk/test.py +52 -0
  59. examples/_openaisdk/x.py +32 -0
  60. examples/_openaisdk/xx.py +29 -0
  61. examples/_openaisdk/zhipu_files.py +47 -0
  62. examples/_openaisdk/zhipu_/346/231/272/350/203/275/344/275/223.py +45 -0
  63. examples/_openaisdk//345/205/234/345/272/225/346/265/213/350/257/225.py +50 -0
  64. examples/_openaisdk//345/244/232/346/250/241/346/200/201/346/265/213/350/257/225.py +76 -0
  65. examples/_openaisdk//345/244/232/346/250/241/346/200/201/346/265/213/350/257/225_.py +56 -0
  66. examples/_openaisdk//346/226/207/344/273/266/351/227/256/347/255/224.py +36 -0
  67. examples/_openaisdk//346/226/207/346/241/243/350/247/243/346/236/220.py +34 -0
  68. examples/_openaisdk//346/250/241/345/236/213/346/265/213/350/257/225.py +53 -0
  69. examples/_openaisdk//351/230/277/351/207/214.py +80 -0
  70. {meutils/serving/jina/__demo → examples/ann}/__init__.py +1 -1
  71. examples/ann/main.py +31 -0
  72. examples/apis/kl.py +28 -0
  73. examples/apis/x.py +17 -0
  74. examples/apis/xx.py +17 -0
  75. examples/arq_demo/demo.py +3 -0
  76. examples/backgroundtasks.py +25 -0
  77. examples/bserver.py +513 -21
  78. examples/cache_demo/HermesCache_demo.py +81 -0
  79. examples/cache_demo/acacge.py +26 -0
  80. examples/cache_demo/x.py +31 -0
  81. {meutils/docarray_utils → examples/caches}/__init__.py +1 -1
  82. examples/caches/llmcache.py +18 -0
  83. examples/celery_demo/product_task.py +2 -0
  84. examples/demo.py +17 -1
  85. examples/fastapi_caching.py +59 -0
  86. {meutils/dependencies → examples/gr}/__init__.py +1 -1
  87. examples/gr/d.py +22 -0
  88. examples/gr/demo.py +30 -0
  89. examples/ip2/345/234/260/345/214/272.py +16 -0
  90. examples/jinja2_demo/j2_demo.py +20 -1
  91. examples/json/346/240/207/345/207/206/345/214/226.py +54 -0
  92. examples/md.py +29 -0
  93. {meutils/serving/jina → examples/nesc}/__init__.py +1 -1
  94. examples/nesc/main.py +76 -0
  95. examples/orm/mysql_orm.py +113 -0
  96. examples/orm/sql_creater.py +57 -0
  97. examples/orm/sqlm.py +134 -0
  98. examples/rq_demo/fns.py +18 -0
  99. examples/rq_demo/redis/351/230/237/345/210/227.py +14 -7
  100. examples/rq_demo/redis/351/230/237/345/210/227_add_chatfire.py +30 -0
  101. examples/size_map.py +43 -0
  102. examples/test.py +59 -0
  103. examples/webs/__init__.py +11 -0
  104. examples/webs/main.py +34 -0
  105. examples/x.py +13 -0
  106. examples//345/216/273/346/260/264/345/215/260.py +20 -0
  107. examples//346/226/207/346/241/243/346/231/272/350/203/275/__init__.py +11 -0
  108. meutils/_utils.py +15 -6
  109. meutils/ai_audio/asr/__init__.py +3 -2
  110. meutils/ai_audio/asr/cf_asr.py +53 -0
  111. meutils/ai_audio/asr/de.py +11 -0
  112. meutils/ai_audio/asr/fast_asr.py +15 -7
  113. meutils/ai_audio/asr/openai_asr.py +83 -6
  114. meutils/ai_audio/fast_asr.py +8 -4
  115. meutils/ai_audio/tts/EdgeTTS.py +33 -7
  116. meutils/ai_audio/tts/openai_tts.py +24 -20
  117. meutils/ai_audio/tts/tts_ui.py +1 -0
  118. meutils/ai_audio/utils.py +9 -0
  119. meutils/ai_cv/__init__.py +0 -1
  120. meutils/ai_cv/ocr.py +3 -2
  121. meutils/ai_cv/utils.py +154 -0
  122. meutils/ai_video/avmerge.py +6 -0
  123. meutils/ai_video/video.py +11 -2
  124. meutils/{api → apis}/__init__.py +1 -1
  125. meutils/apis/ali_apis.py +60 -0
  126. meutils/apis/audio/__init__.py +10 -0
  127. meutils/apis/audio/deepinfra.py +59 -0
  128. meutils/apis/audio/fish.py +248 -0
  129. meutils/apis/baidu/__init__.py +9 -0
  130. meutils/apis/baidu/bdaitpzs.py +229 -0
  131. meutils/apis/baidu/test.py +78 -0
  132. meutils/apis/chatglm/__init__.py +11 -0
  133. meutils/apis/chatglm/glm_video.py +273 -0
  134. meutils/apis/chatglm/glm_video_api.py +116 -0
  135. meutils/apis/chatglm/images.py +63 -0
  136. meutils/apis/chatglm/temp.py +259 -0
  137. meutils/apis/chatglm/x.py +31 -0
  138. meutils/{api → apis}/common.py +10 -6
  139. meutils/apis/fal/__init__.py +11 -0
  140. meutils/apis/fal/files.py +53 -0
  141. meutils/apis/fal/images.py +57 -0
  142. meutils/apis/fal/images_.py +72 -0
  143. meutils/apis/fal/videos.py +77 -0
  144. meutils/apis/firecrawl.py +45 -0
  145. meutils/apis/gitee/__init__.py +11 -0
  146. meutils/apis/gitee/images/__init__.py +9 -0
  147. meutils/apis/gitee/images/kolors.py +99 -0
  148. meutils/apis/hailuoai/__init__.py +11 -0
  149. meutils/apis/hailuoai/demo.py +34 -0
  150. meutils/apis/hailuoai/hasha_new.py +248 -0
  151. meutils/apis/hailuoai/music.py +11 -0
  152. meutils/apis/hailuoai/upload.py +116 -0
  153. meutils/apis/hailuoai/videos.py +460 -0
  154. meutils/apis/hailuoai/yy.py +242 -0
  155. meutils/apis/hf/__init__.py +11 -0
  156. meutils/apis/hf/got_ocr.py +64 -0
  157. meutils/apis/hf/gradio.py +34 -0
  158. meutils/apis/hf/hivisionidphotos.py +80 -0
  159. meutils/apis/hf/kolors.py +68 -0
  160. meutils/apis/hf/kolors_virtual_try_on.py +107 -0
  161. meutils/apis/hf/r.py +53 -0
  162. meutils/apis/hf/x.py +26 -0
  163. meutils/apis/hf//350/257/201/344/273/266/347/205/247.py +41 -0
  164. meutils/apis/hunyuan/__init__.py +11 -0
  165. meutils/apis/hunyuan/image_tools.py +84 -0
  166. meutils/apis/images/__init__.py +11 -0
  167. meutils/apis/images/deepinfra.py +92 -0
  168. meutils/apis/images/demo.py +150 -0
  169. meutils/apis/images/eidt.py +36 -0
  170. meutils/apis/images/flux/__init__.py +11 -0
  171. meutils/apis/images/flux/fluxpro.py +108 -0
  172. meutils/apis/images/flux/mystic.py +116 -0
  173. meutils/apis/images/ideogram/__init__.py +10 -0
  174. meutils/apis/images/ideogram/ideogram_images.py +193 -0
  175. meutils/apis/images/prodia/__init__.py +12 -0
  176. meutils/apis/images/prodia/faceswap.py +76 -0
  177. meutils/apis/images/recraft.py +152 -0
  178. meutils/apis/images/virtual_try_on/__init__.py +11 -0
  179. meutils/apis/images/virtual_try_on/images.py +65 -0
  180. meutils/apis/jiema/24mail.py +96 -0
  181. meutils/apis/jiema/__init__.py +11 -0
  182. meutils/apis/jiema/yezi.py +97 -0
  183. meutils/apis/jimeng/__init__.py +11 -0
  184. meutils/apis/jimeng/common.py +328 -0
  185. meutils/apis/jimeng/doubao.py +68 -0
  186. meutils/apis/jimeng/doubao_utils.py +175 -0
  187. meutils/apis/jimeng/files.py +263 -0
  188. meutils/apis/jimeng/images.py +140 -0
  189. meutils/apis/jimeng/lip_sync.py +11 -0
  190. meutils/apis/jina.py +55 -0
  191. meutils/apis/kling/__init__.py +11 -0
  192. meutils/apis/kling/api.py +60 -0
  193. meutils/apis/kling/images.py +174 -0
  194. meutils/apis/kling/kolors_virtual_try_on.py +111 -0
  195. meutils/apis/kling/kolors_virtual_try_on_web.py +126 -0
  196. meutils/apis/kling/videos.py +67 -0
  197. meutils/apis/kling//351/211/264/346/235/203.py +34 -0
  198. meutils/apis/kuaidi.py +32 -0
  199. meutils/apis/kuaishou/__init__.py +10 -0
  200. meutils/apis/kuaishou/klingai.py +523 -0
  201. meutils/apis/kuaishou/klingai_video.py +197 -0
  202. meutils/apis/kuaishou/kolors.py +189 -0
  203. meutils/apis/llm_qa.py +55 -0
  204. meutils/apis/luma/__init__.py +11 -0
  205. meutils/apis/luma/luma.py +123 -0
  206. meutils/apis/minicpm/__init__.py +9 -0
  207. meutils/apis/minicpm/luca.py +137 -0
  208. meutils/apis/monica/__init__.py +11 -0
  209. meutils/apis/monica/llm.py +11 -0
  210. meutils/apis/napkin/__init__.py +11 -0
  211. meutils/apis/napkin/icons.py +42 -0
  212. meutils/apis/niutrans.py +73 -0
  213. meutils/apis/oneapi/__init__.py +11 -0
  214. meutils/apis/oneapi/channel.py +68 -0
  215. meutils/apis/oneapi/common.py +135 -0
  216. meutils/apis/oneapi/log.py +47 -0
  217. meutils/apis/oneapi/token.py +48 -0
  218. meutils/apis/oneapi/token_.py +112 -0
  219. meutils/apis/oneapi/user.py +100 -0
  220. meutils/apis/oneapi/utils.py +47 -0
  221. meutils/apis/pixverse/__init__.py +11 -0
  222. meutils/apis/pixverse/pixverse.py +150 -0
  223. meutils/apis/proxy/__init__.py +11 -0
  224. meutils/apis/proxy/ips.py +178 -0
  225. meutils/apis/remini/__init__.py +11 -0
  226. meutils/apis/remini/remini.py +89 -0
  227. meutils/apis/replicateai/__init__.py +11 -0
  228. meutils/apis/replicateai/images.py +79 -0
  229. meutils/apis/replicateai/raw.py +53 -0
  230. meutils/apis/runwayml/__init__.py +10 -0
  231. meutils/apis/runwayml/gen.py +143 -0
  232. meutils/apis/search/__init__.py +11 -0
  233. meutils/apis/search/baichuan.py +11 -0
  234. meutils/apis/search/metaso.py +218 -0
  235. meutils/apis/search/metaso_.py +77 -0
  236. meutils/apis/search/n.py +99 -0
  237. meutils/apis/search/searxng.py +42 -0
  238. meutils/apis/search_music.py +39 -0
  239. meutils/apis/siliconflow/__init__.py +9 -0
  240. meutils/apis/siliconflow/audio.py +63 -0
  241. meutils/apis/siliconflow/image_to_image.py +116 -0
  242. meutils/apis/siliconflow/images.py +154 -0
  243. meutils/apis/siliconflow/rerankers.py +40 -0
  244. meutils/apis/siliconflow/text_to_image.py +132 -0
  245. meutils/apis/siliconflow/utils.py +66 -0
  246. meutils/apis/siliconflow/videos.py +102 -0
  247. meutils/apis/sunoai/__init__.py +10 -0
  248. meutils/apis/sunoai/haimian.py +135 -0
  249. meutils/apis/sunoai/suno.py +373 -0
  250. meutils/apis/textcard/__init__.py +11 -0
  251. meutils/apis/textcard/demo.py +25 -0
  252. meutils/apis/textcard/hanyuxinjie.py +81 -0
  253. meutils/apis/textin.py +159 -0
  254. meutils/apis/to_image/__init__.py +11 -0
  255. meutils/apis/to_image/html2image.py +29 -0
  256. meutils/apis/to_image/md.py +29 -0
  257. meutils/apis/to_image/url2image.py +41 -0
  258. meutils/apis/together/__init__.py +11 -0
  259. meutils/apis/together/images.py +80 -0
  260. meutils/apis/translator/__init__.py +9 -0
  261. meutils/apis/translator/deeplx.py +55 -0
  262. meutils/apis/tripo3d/__init__.py +11 -0
  263. meutils/apis/tripo3d/images.py +106 -0
  264. meutils/apis/ts.py +60 -0
  265. meutils/apis/uptime_kuma/__init__.py +11 -0
  266. meutils/apis/uptime_kuma/common.py +56 -0
  267. meutils/apis/uptime_kuma//345/233/275/344/272/247/345/210/206/347/273/204.py +68 -0
  268. meutils/apis/utils.py +47 -0
  269. meutils/apis/videos/__init__.py +11 -0
  270. meutils/apis/videos/sora.py +16 -0
  271. meutils/apis/vidu/__init__.py +9 -0
  272. meutils/apis/vidu/vidu_video.py +254 -0
  273. meutils/apis/vidu/x.py +14 -0
  274. meutils/apis/voice_clone/__init__.py +10 -0
  275. meutils/apis/voice_clone/fish.py +236 -0
  276. meutils/apis/voice_clone/fish_api.py +16 -0
  277. meutils/apis/web_search.py +31 -0
  278. meutils/apis/yezi.py +97 -0
  279. meutils/async_task/__init__.py +13 -0
  280. meutils/async_task/celery_config.py +106 -0
  281. meutils/async_task/common.py +37 -0
  282. meutils/async_task/demo_create_tasks.py +73 -0
  283. meutils/async_task/tasks/__init__.py +11 -0
  284. meutils/async_task/tasks/_all.py +20 -0
  285. meutils/async_task/tasks/hailuo.py +24 -0
  286. meutils/async_task/tasks/kling.py +30 -0
  287. meutils/async_task/tasks/replicateai.py +24 -0
  288. meutils/async_task/tasks/test.py +124 -0
  289. meutils/async_task/tasks/vidu.py +28 -0
  290. meutils/async_task/utils.py +191 -0
  291. meutils/async_task//351/200/232/347/224/250/350/256/276/350/256/241.py +119 -0
  292. meutils/async_utils/asyncer_.py +37 -0
  293. meutils/async_utils/background.py +68 -0
  294. meutils/async_utils/common.py +136 -16
  295. meutils/async_utils/test.py +47 -0
  296. meutils/cache_utils.py +29 -23
  297. meutils/caches/__init__.py +9 -0
  298. meutils/caches/acache.py +45 -0
  299. meutils/caches/redis_cache.py +63 -0
  300. meutils/clis/check_api.py +66 -0
  301. meutils/clis/cli.py +1 -1
  302. meutils/common.py +56 -17
  303. meutils/config_utils/__init__.py +11 -0
  304. meutils/config_utils/lark_utils/__init__.py +11 -0
  305. meutils/config_utils/lark_utils/common.py +385 -0
  306. meutils/config_utils/lark_utils/demo.py +13 -0
  307. meutils/config_utils/lark_utils/x.py +50 -0
  308. meutils/config_utils/manager.py +108 -0
  309. meutils/crawlers/__init__.py +11 -0
  310. meutils/data/VERSION +1 -1
  311. meutils/data/cowboy-hat-face.webp +0 -0
  312. meutils/data/oneapi/FOOTER.md +7 -0
  313. meutils/data/oneapi/NOTICE.md +138 -0
  314. meutils/data/oneapi/__init__.py +15 -0
  315. meutils/db/orm.py +179 -0
  316. meutils/db/redis_db.py +87 -0
  317. meutils/decorators/cache.py +1 -1
  318. meutils/decorators/common.py +84 -5
  319. meutils/decorators/contextmanagers.py +17 -6
  320. meutils/decorators/fastapi_decorator.py +77 -3
  321. meutils/decorators/polling.py +46 -0
  322. meutils/decorators/retry.py +150 -26
  323. meutils/fastapi_utils/__init__.py +11 -0
  324. meutils/fastapi_utils/exceptions/http_error.py +72 -0
  325. meutils/fastapi_utils/exceptions/validation_error.py +44 -0
  326. meutils/hash_utils.py +9 -4
  327. meutils/hooks/__init__.py +11 -0
  328. meutils/hooks/hook_test.py +174 -0
  329. meutils/hooks/wechat.py +162 -0
  330. meutils/hooks/wechat_channel.py +303 -0
  331. meutils/init/evn.py +1 -1
  332. meutils/io/files_utils.py +232 -0
  333. meutils/io/image.py +148 -10
  334. meutils/io/x.py +75 -0
  335. meutils/llm/__init__.py +10 -0
  336. meutils/llm/check_api.py +109 -0
  337. meutils/llm/check_utils.py +106 -0
  338. meutils/llm/clients.py +38 -0
  339. meutils/llm/completions/__init__.py +11 -0
  340. meutils/llm/completions/agents/__init__.py +11 -0
  341. meutils/llm/completions/agents/file.py +125 -0
  342. meutils/llm/completions/cp.py +112 -0
  343. meutils/llm/completions/delilegal.py +135 -0
  344. meutils/llm/completions/dify.py +81 -0
  345. meutils/llm/completions/kimi.py +47 -0
  346. meutils/llm/completions/modelscope.py +11 -0
  347. meutils/{fileparser/filetype.py → llm/completions/oi.py} +5 -3
  348. meutils/llm/completions/rag/__init__.py +11 -0
  349. meutils/llm/completions/rag/fire.py +157 -0
  350. meutils/llm/completions/rag/qwen.py +11 -0
  351. meutils/llm/completions/rag/rag.py +41 -0
  352. meutils/llm/completions/rag.py +38 -0
  353. meutils/llm/completions/tryblend.py +201 -0
  354. meutils/llm/completions/tune.py +284 -0
  355. meutils/llm/completions/x.py +26 -0
  356. meutils/llm/completions/xx.py +61 -0
  357. meutils/llm/completions/yuanbao.py +176 -0
  358. meutils/llm/demo.py +114 -0
  359. meutils/llm/functions/__init__.py +11 -0
  360. meutils/llm/mappers.py +15 -0
  361. meutils/llm/openai_utils/__init__.py +11 -0
  362. meutils/llm/openai_utils/common.py +284 -0
  363. meutils/llm/openai_utils/tool_outputs.py +45 -0
  364. meutils/llm/output_parsers/__init__.py +80 -0
  365. meutils/llm/prompts/__init__.py +244 -0
  366. meutils/llm/prompts/demo.py +155 -0
  367. meutils/llm/prompts/html2image_test.py +19 -0
  368. meutils/llm/utils.py +133 -0
  369. meutils/llm/x.py +75 -0
  370. meutils/notice/feishu.py +40 -9
  371. meutils/notice/wechat.py +23 -21
  372. meutils/np_utils.py +10 -1
  373. meutils/office_automation/pdf.py +6 -1
  374. meutils/oss/__init__.py +20 -0
  375. meutils/oss/minio_oss.py +184 -0
  376. meutils/oss/minio_utils.py +48 -0
  377. meutils/other/__demo.py +6 -4
  378. meutils/pandas_utils/__init__.py +1 -0
  379. meutils/pandas_utils/common.py +31 -0
  380. meutils/pandas_utils/pd_utils.py +10 -6
  381. meutils/parsers/__init__.py +10 -0
  382. meutils/parsers/file_parsers.py +110 -0
  383. meutils/parsers/fileparser/demo.py +41 -0
  384. meutils/parsers/fileparser/filetype.py +41 -0
  385. meutils/pay.py +37 -0
  386. meutils/pipe.py +37 -4
  387. meutils/playwright_utils/common.py +20 -12
  388. meutils/plots/common.py +35 -34
  389. meutils/queues/demo.py +56 -0
  390. meutils/queues/smooth_queue.py +120 -0
  391. meutils/queues/uniform_queue.py +3 -1
  392. meutils/request_utils/__init__.py +26 -2
  393. meutils/request_utils/ark.py +47 -0
  394. meutils/request_utils/crawler.py +34 -5
  395. meutils/request_utils/jwt_utils/__init__.py +11 -0
  396. meutils/request_utils/jwt_utils/common.py +42 -0
  397. meutils/request_utils/volc.py +160 -0
  398. meutils/schemas/__init__.py +0 -1
  399. meutils/schemas/baidu_types.py +70 -0
  400. meutils/schemas/batch_types.py +450 -0
  401. meutils/schemas/celery_types.py +64 -0
  402. meutils/schemas/chatfire_types.py +15 -0
  403. meutils/schemas/chatglm_types.py +197 -0
  404. meutils/schemas/db/__init__.py +11 -0
  405. meutils/schemas/db/oneapi_types.py +117 -0
  406. meutils/schemas/dify_types.py +40 -0
  407. meutils/schemas/embedding.py +31 -0
  408. meutils/schemas/fal_types.py +13 -0
  409. meutils/schemas/fish_types.py +11 -0
  410. meutils/schemas/hailuo_types.py +208 -0
  411. meutils/schemas/haimian_types.py +51 -0
  412. meutils/schemas/idphoto_types.py +43 -0
  413. meutils/schemas/image_types.py +476 -0
  414. meutils/schemas/jimeng_types.py +28 -0
  415. meutils/schemas/jina_types.py +67 -0
  416. meutils/schemas/kimi_types.py +86 -0
  417. meutils/schemas/kling_types.py +235 -0
  418. meutils/schemas/kuaishou_types.py +328 -0
  419. meutils/schemas/luma_types.py +59 -0
  420. meutils/schemas/message_types.py +165 -0
  421. meutils/schemas/message_types_.py +219 -0
  422. meutils/schemas/metaso_types.py +64 -0
  423. meutils/schemas/napkin_types.py +85 -0
  424. meutils/schemas/ocr_types.py +37 -0
  425. meutils/schemas/oneapi/__init__.py +11 -0
  426. meutils/schemas/oneapi/_types.py +49 -0
  427. meutils/schemas/oneapi/common.py +883 -0
  428. meutils/schemas/oneapi/icons.py +30 -0
  429. meutils/schemas/oneapi/model_group_info.py +48 -0
  430. meutils/schemas/oneapi/model_info.py +34 -0
  431. meutils/schemas/oneapi/models.py +26 -0
  432. meutils/schemas/oneapi/x.py +26 -0
  433. meutils/schemas/oneapi//351/207/215/345/256/232/345/220/221.py +132 -0
  434. meutils/schemas/openai_api_protocol.py +411 -0
  435. meutils/schemas/openai_types.py +366 -0
  436. meutils/schemas/pixverse_types.py +88 -0
  437. meutils/schemas/playwright_types.py +57 -0
  438. meutils/schemas/prodia_types.py +19 -0
  439. meutils/schemas/replicate_types.py +112 -0
  440. meutils/schemas/request_types.py +20 -0
  441. meutils/schemas/runwayml_types.py +190 -0
  442. meutils/schemas/siliconflow_types.py +80 -0
  443. meutils/schemas/step_types.py +19 -0
  444. meutils/schemas/suno_types.py +319 -0
  445. meutils/schemas/task_types.py +192 -0
  446. meutils/schemas/translator_types.py +29 -0
  447. meutils/schemas/tripo3d_types.py +57 -0
  448. meutils/schemas/tryblend_types.py +51 -0
  449. meutils/schemas/video_types.py +62 -0
  450. meutils/schemas/vidu_types.py +350 -0
  451. meutils/schemas/wechat_types.py +316 -0
  452. meutils/schemas/yuanbao_types.py +260 -0
  453. meutils/serving/celery/__init__.py +8 -0
  454. meutils/serving/celery/config.py +115 -0
  455. meutils/serving/celery/router.py +4 -6
  456. meutils/serving/celery/tasks.py +6 -4
  457. meutils/serving/celery//351/200/232/347/224/250/350/256/276/350/256/241.py +119 -0
  458. meutils/serving/fastapi/common.py +27 -31
  459. meutils/serving/fastapi/dependencies/__init__.py +0 -1
  460. meutils/serving/fastapi/dependencies/auth.py +55 -2
  461. meutils/serving/fastapi/exceptions/http_error.py +67 -2
  462. meutils/serving/fastapi/exceptions/validation_error.py +18 -2
  463. meutils/serving/fastapi/lifespans.py +73 -0
  464. meutils/serving/fastapi/routers/scheduler.py +12 -0
  465. meutils/serving/fastapi/routers/screenshot.py +47 -0
  466. meutils/serving/fastapi/routers/spider.py +8 -3
  467. meutils/serving/fastapi/routers/task.py +48 -0
  468. meutils/serving/fastapi/utils.py +48 -1
  469. meutils/serving/streamlit/common.py +1 -1
  470. meutils/smooth_utils.py +3 -0
  471. meutils/str_utils/__init__.py +22 -3
  472. meutils/str_utils/json_utils.py +7 -0
  473. meutils/str_utils/regular_expression.py +102 -10
  474. meutils/templates/xx.html +21 -0
  475. meutils/templates/xxx.html +117 -0
  476. meutils/todo.py +12 -0
  477. meutils/tools/token_monitor.py +33 -0
  478. MeUtils-2024.3.4.13.4.45.dist-info/RECORD +0 -540
  479. meutils/ai_audio/asr/subtitle.srt +0 -40
  480. meutils/ai_audio/demo.ipynb +0 -1215
  481. meutils/ai_audio/example.srt +0 -348
  482. meutils/ai_audio/new.srt +0 -179
  483. meutils/ai_audio/subtitles.srt +0 -696
  484. meutils/ai_audio/tts/new.srt +0 -179
  485. meutils/ai_audio//350/247/206/351/242/221/345/220/210/345/271/266.sh +0 -32
  486. meutils/ai_cv/1.jpg +0 -0
  487. meutils/ai_cv/197.jpg +0 -0
  488. meutils/ai_cv/2.jpg +0 -0
  489. meutils/ai_cv/img.png +0 -0
  490. meutils/ai_cv/invoice.jpg +0 -0
  491. meutils/ai_cv/tbl.png +0 -0
  492. meutils/ai_cv/test.png +0 -0
  493. meutils/ann/README.md +0 -33
  494. meutils/ann/README_gensim.md +0 -47
  495. meutils/ann/examples/client.py +0 -59
  496. meutils/ann/examples/demo.py +0 -24
  497. meutils/api/deeplx.py +0 -29
  498. meutils/api/qr.png +0 -0
  499. meutils/clis/README.md +0 -29
  500. meutils/clis/__test.sh +0 -17
  501. meutils/clis/deepseek.txt +0 -8
  502. meutils/clis/deepseek_13003330042.json +0 -1
  503. meutils/clis/deepseek_13003872192.json +0 -1
  504. meutils/clis/deepseek_13852263862.json +0 -1
  505. meutils/clis/deepseek_13913898681.json +0 -1
  506. meutils/clis/deepseek_13962978617.json +0 -1
  507. meutils/clis/deepseek_15251801790.json +0 -1
  508. meutils/clis/deepseek_15720826383.json +0 -1
  509. meutils/clis/deepseek_18395563611.json +0 -1
  510. meutils/clis/deepseek_313303303@qq.com.json +0 -1
  511. meutils/clis/kimi_state.json +0 -1
  512. meutils/cmds/README.md +0 -55
  513. meutils/coding/__init__.py +0 -11
  514. meutils/coding/find132.py +0 -40
  515. meutils/db/README.md +0 -51
  516. meutils/decorators/README.md +0 -17
  517. meutils/docarray_utils/demo_es.py +0 -34
  518. meutils/docarray_utils/demo_hnsw.py +0 -55
  519. meutils/docarray_utils/in_memory.py +0 -38
  520. meutils/docarray_utils//346/224/271/351/200/240/344/270/213hnsw.py +0 -43
  521. meutils/io/file.py +0 -20
  522. meutils/io/img.png +0 -0
  523. meutils/io/x.yml +0 -1
  524. meutils/notice/img.png +0 -0
  525. meutils/notice/todo.md +0 -10
  526. meutils/office_automation//346/212/225/350/265/204/347/256/241/347/220/206/347/263/273/347/273/237O3.2_/344/272/244/346/230/223/347/273/204.pdm +0 -22469
  527. meutils/playwright_utils/__test.sh +0 -2
  528. meutils/playwright_utils/kimi1_cookies.json +0 -1
  529. meutils/playwright_utils/kimi2_cookies.json +0 -1
  530. meutils/playwright_utils/kimi_cookies.json +0 -93
  531. meutils/serving/README.md +0 -1
  532. meutils/serving/celery/_run.sh +0 -10
  533. meutils/serving/gui/run.sh +0 -9
  534. meutils/serving/jina/__demo/client.py +0 -42
  535. meutils/serving/jina/__demo/flow.svg +0 -1
  536. meutils/serving/jina/__demo/s.py +0 -34
  537. meutils/serving/jina/__demo/s2.py +0 -37
  538. meutils/serving/jina/__demo/server.py +0 -83
  539. meutils/serving/jina/__demo/test.py +0 -40
  540. meutils/serving/jina/executors/SentenceEncoder.py +0 -62
  541. meutils/serving/jina/executors/SentenceEncoder_.py +0 -63
  542. meutils/serving/jina/executors/__init__.py +0 -46
  543. meutils/serving/jina/executors/base.py +0 -40
  544. meutils/serving/jina/nlp_serving/__init__.py +0 -11
  545. meutils/serving/jina/nlp_serving/word_segmentation.py +0 -40
  546. meutils/serving/streamlit/conf.yaml +0 -5
  547. meutils/serving/streamlit/ocr.png +0 -0
  548. meutils/serving/streamlit/run.sh +0 -17
  549. meutils/serving/webui/.streamlit/_config.toml +0 -186
  550. meutils/serving/webui/.streamlit/config.toml +0 -26
  551. meutils/serving/webui/pages/_1_/345/210/206/350/257/215.py +0 -56
  552. meutils/serving/webui/pages/_2_/350/257/215/346/200/247/346/240/207/346/263/250/344/270/216/345/256/236/344/275/223/350/257/206/345/210/253.py +0 -54
  553. meutils/serving/webui/pages/_3_/346/226/207/346/234/254/345/214/271/351/205/215.py +0 -64
  554. meutils/serving/webui/run.sh +0 -9
  555. meutils/spark/__init__.py +0 -26
  556. meutils/tools/monitor.yml +0 -29
  557. {MeUtils-2024.3.4.13.4.45.dist-info → MeUtils-2025.1.16.17.15.52.dist-info}/LICENSE +0 -0
  558. {MeUtils-2024.3.4.13.4.45.dist-info → MeUtils-2025.1.16.17.15.52.dist-info}/top_level.txt +0 -0
  559. {meutils → examples}/comp_utils/__init__.py +0 -0
  560. {meutils → examples}/comp_utils/reverse_metric.py +0 -0
  561. /meutils/{fileparser/README.md → fastapi_utils/exceptions/__init__.py} +0 -0
  562. /meutils/{fileparser → parsers/fileparser}/PDF/346/212/275/345/217/226.py" +0 -0
  563. /meutils/{fileparser → parsers/fileparser}/__init__.py +0 -0
  564. /meutils/{fileparser → parsers/fileparser}/common.py +0 -0
  565. /meutils/{fileparser → parsers/fileparser}/filetype/__init__.py +0 -0
  566. /meutils/{fileparser → parsers/fileparser}/filetype/__main__.py +0 -0
  567. /meutils/{fileparser → parsers/fileparser}/filetype/filetype.py +0 -0
  568. /meutils/{fileparser → parsers/fileparser}/filetype/helpers.py +0 -0
  569. /meutils/{fileparser → parsers/fileparser}/filetype/match.py +0 -0
  570. /meutils/{fileparser → parsers/fileparser}/filetype/types/__init__.py +0 -0
  571. /meutils/{fileparser → parsers/fileparser}/filetype/types/application.py +0 -0
  572. /meutils/{fileparser → parsers/fileparser}/filetype/types/archive.py +0 -0
  573. /meutils/{fileparser → parsers/fileparser}/filetype/types/audio.py +0 -0
  574. /meutils/{fileparser → parsers/fileparser}/filetype/types/base.py +0 -0
  575. /meutils/{fileparser → parsers/fileparser}/filetype/types/document.py +0 -0
  576. /meutils/{fileparser → parsers/fileparser}/filetype/types/font.py +0 -0
  577. /meutils/{fileparser → parsers/fileparser}/filetype/types/image.py +0 -0
  578. /meutils/{fileparser → parsers/fileparser}/filetype/types/isobmff.py +0 -0
  579. /meutils/{fileparser → parsers/fileparser}/filetype/types/video.py +0 -0
  580. /meutils/{fileparser → parsers/fileparser}/filetype/utils.py +0 -0
  581. /meutils/{fileparser → parsers/fileparser}/pdf.py +0 -0
  582. /meutils/{fileparser → parsers/fileparser}//350/241/250/346/240/274/346/212/275/345/217/226.py" +0 -0
@@ -1,179 +0,0 @@
1
- 0
2
- 00:00:00,000 --> 00:00:03,000
3
- 女子队正准备进入比赛场地。
4
-
5
- 1
6
- 00:00:03,000 --> 00:00:06,000
7
- 工作人员呼叫下一组女子队进入。
8
-
9
- 2
10
- 00:00:20,000 --> 00:00:22,000
11
- 有人询问当前的时间。
12
-
13
- 3
14
- 00:00:22,000 --> 00:00:30,000
15
- 多次重复询问现在是几点。
16
-
17
- 4
18
- 00:00:30,000 --> 00:00:32,000
19
- 队伍决定在此地点集结。
20
-
21
- 5
22
- 00:00:34,000 --> 00:00:36,000
23
- 有人被要求确认自己的身份。
24
-
25
- 6
26
- 00:00:36,000 --> 00:00:38,000
27
- 一位名叫Bonnie的女子自我介绍。
28
-
29
- 7
30
- 00:00:38,000 --> 00:00:41,000
31
- Bonnie提到她在SM酒吧工作。
32
-
33
- 8
34
- 00:00:41,000 --> 00:00:46,000
35
- 她正在讨论战术。
36
-
37
- 12
38
- 00:00:46,000 --> 00:00:52,000
39
- Bonnie表示她喜欢擅长射击的人。
40
-
41
- 13
42
- 00:00:52,000 --> 00:00:56,000
43
- 她希望成为能够提供帮助的选手。
44
-
45
- 14
46
- 00:00:56,000 --> 00:00:58,000
47
- 有人评价Bonnie的经历非常厉害。
48
-
49
- 15
50
- 00:00:58,000 --> 00:01:00,000
51
- 提到她已经是格斗运动员超过20年。
52
-
53
- 16-17
54
- 00:01:00,000 --> 00:01:06,000
55
- 接下来有人开始自我介绍。
56
-
57
- 18
58
- 00:01:06,000 --> 00:01:08,000
59
- 一位名叫Miru的选手自我介绍。
60
-
61
- 19
62
- 00:01:08,000 --> 00:01:13,000
63
- Miru回忆上次参加了Breaking Down 6比赛。
64
-
65
- 20
66
- 00:01:13,000 --> 00:01:15,000
67
- 但她在比赛中被击败。
68
-
69
- 21
70
- 00:01:15,000 --> 00:01:17,000
71
- Miru表达了她的不满。
72
-
73
- 22
74
- 00:01:17,000 --> 00:01:20,000
75
- 她决定抓住最后的机会。
76
-
77
- 23-24
78
- 00:01:20,000 --> 00:01:27,000
79
- Miru未能参加上次比赛,但希望能创立自己的服装品牌。
80
-
81
- 25-26
82
- 00:01:27,000 --> 00:01:34,000
83
- 她通过参加Breaking Down获得了改变人生的机会。
84
-
85
- 27-28
86
- 00:01:34,000 --> 00:01:40,000
87
- Miru梦想制作能帮助他人的服装。
88
-
89
- 29-30
90
- 00:01:40,000 --> 00:01:44,000
91
- 有人挑战在场的其他人,询问是否有人愿意对抗。
92
-
93
- 31-32
94
- 00:01:51,000 --> 00:01:57,000
95
- 有人问为什么另一个人会在那里,得到的回答是因为她被选中了。
96
-
97
- 33
98
- 00:01:57,000 --> 00:01:59,000
99
- 有人询问对方是否增重了。
100
-
101
- 34-37
102
- 00:02:07,000 --> 00:02:14,000
103
- 有人被请坐,并评论了某物的圆润可爱。
104
-
105
- 38-44
106
- 00:02:14,000 --> 00:02:22,000
107
- 两人讨论他们看过同一部电视剧。
108
-
109
- 45-47
110
- 00:02:22,000 --> 00:02:27,000
111
- 他们结束了关于电视剧的讨论,转而谈论比赛。
112
-
113
- 48-51
114
- 00:02:31,000 --> 00:02:40,000
115
- 有人质疑另一个人的实力,对方自称是世界冠军。
116
-
117
- 52-57
118
- 00:02:40,000 --> 00:02:47,000
119
- 有人提到自己近距离参加了比赛,但不太想参加,因为对方明显比自己弱。
120
-
121
- 58-61
122
- 00:02:50,000 --> 00:02:58,000
123
- 有人开始自我介绍,然后再考虑是否参加比赛。
124
-
125
- 62-77
126
- 00:03:01,000 --> 00:03:36,000
127
- 一位名叫杉田富加的选手介绍自己从12岁开始练习空手道,现在正在养育三个孩子,并希望与沈宇岸和Celina一起参加比赛。
128
-
129
- 78-87
130
- 00:03:36,000 --> 00:03:52,000
131
- 一位16岁的高中生吉本安自我介绍,提到自己的格斗技经验和参加过的乒乓球比赛。
132
-
133
- 88-93
134
- 00:03:52,000 --> 00:04:03,000
135
- 吉本安表示自己在路上无敌,对任何对手都充满信心。
136
-
137
- 94-97
138
- 00:04:05,000 --> 00:04:12,000
139
- 吉本安请求参加JK的比赛,并表示想要与Celina对抗。
140
-
141
- 98-102
142
- 00:04:16,000 --> 00:04:26,000
143
- 在场的每个人都有空手道比赛经验,但有人自称比赛经验最强。
144
-
145
- 103-111
146
- 00:04:30,000 --> 00:04:52,000
147
- 有人强烈请求参加比赛,并表示非常想与某位经验丰富的选手对抗。
148
-
149
- 112-117
150
- 00:04:55,000 --> 00:05:05,000
151
- 有人表达了想要与Iwai对抗的愿望,并被告知与Bonnie对抗。
152
-
153
- 118-125
154
- 00:05:12,000 --> 00:05:21,000
155
- 最后的女高中生和最右边的女高中生分别与Celina和Bonnie对抗。
156
-
157
- 126-128
158
- 00:05:26,000 --> 00:05:27,000
159
- 有人表示如果想赢就去赢。
160
-
161
- 129-142
162
- 00:05:29,000 --> 00:06:05,000
163
- Bonnie准备好了,她的空手道经验被认为是最强的,有人表示非常想与她对抗。
164
-
165
- 143-150
166
- 00:06:05,000 --> 00:06:22,000
167
- 比赛开始,裁判员发出指令,选手们准备进入比赛状态。
168
-
169
- 151-157
170
- 00:06:38,000 --> 00:06:52,000
171
- 裁判员倒数10秒,提醒选手注意头部,并在比赛结束时发出停止指令。
172
-
173
- 158-171
174
- 00:07:04,000 --> 00:08:42,000
175
- 选手们表达了对改变人生的渴望,并互相致意,表示将会努力练习。
176
-
177
- 172-173
178
- 00:08:44,000 --> 00:08:46,000
179
- 选手们承诺会努力并请求指导。
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env bash
2
- # @Project : AI @by PyCharm
3
- # @Time : 2023/11/22 17:38
4
- # @Author : betterme
5
- # @Email : 313303303@qq.com
6
- # @Software : PyCharm
7
- # @Description :
8
-
9
- ffmpeg -i /Users/betterme/Downloads/videoplayback.mp4 \
10
- -i audio_merged.wav \
11
- -vf "subtitles=new.srt" \
12
- -c:v libx264 -c:a aac \
13
- output.mp4
14
-
15
-
16
- #在使用 `ffmpeg` 时,你可以通过 `-vf`(视频过滤器)选项调整字幕的位置。下面是一个例子,展示了如何使用 `subtitles` 过滤器来调整字幕的位置:
17
- #
18
- #```bash
19
- #ffmpeg -i video.mp4 -vf "subtitles=subtitles.srt:force_style='MarginV=10,MarginL=20,MarginR=20'" -c:v libx264 -c:a copy output.mp4
20
- #```
21
- #
22
- #在这个命令中:
23
- #
24
- #- `-vf "subtitles=subtitles.srt:force_style='MarginV=10,MarginL=20,MarginR=20'"`:这个过滤器指定了字幕文件,并通过 `force_style` 选项调整了字幕的样式。`MarginV` 是字幕距离视频底部的垂直边距,`MarginL` 是字幕距离视频左侧的水平边距,`MarginR` 是字幕距离视频右侧的水平边距。这些值都是以像素为单位的。
25
- #
26
- #请注意,`force_style` 选项允许你覆盖字幕文件中的样式。你可以设置字幕的字体、颜色、大小和位置等属性。在上面的例子中,我们只调整了字幕的边距,但你可以根据需要添加更多的样式属性。
27
- #
28
- #如果你的字幕是 ASS/SSA 格式,这些格式支持更丰富的样式选项,你可以直接在字幕文件中编辑这些样式,或者使用 `ffmpeg` 的 `force_style` 选项来覆盖它们。
29
- #
30
- #例如,如果你想要将字幕向上移动,你可以增加 `MarginV` 的值。如果你想要将字幕向左或向右移动,你可以调整 `MarginL` 和 `MarginR` 的值。
31
- #
32
- #请记住,调整字幕位置时,你可能需要根据视频的分辨率和字幕的原始位置进行实验,以找到最佳的显示效果。
meutils/ai_cv/1.jpg DELETED
Binary file
meutils/ai_cv/197.jpg DELETED
Binary file
meutils/ai_cv/2.jpg DELETED
Binary file
meutils/ai_cv/img.png DELETED
Binary file
meutils/ai_cv/invoice.jpg DELETED
Binary file
meutils/ai_cv/tbl.png DELETED
Binary file
meutils/ai_cv/test.png DELETED
Binary file
meutils/ann/README.md DELETED
@@ -1,33 +0,0 @@
1
- # 集成Faiss/Milvus
2
-
3
-
4
- ```
5
- from docarray import Document, DocumentArray
6
- import numpy as np
7
-
8
- n_dim = 3
9
- metric = 'Euclidean'
10
-
11
- # initialize a DocumentArray with ANNLiter Document Store
12
- da = DocumentArray(
13
- storage='annlite',
14
- config={'n_dim': n_dim, 'columns': [('price', 'float'), ('cat', 'str')], 'metric': metric},
15
- )
16
- da
17
- # add Documents to the DocumentArray
18
- with da:
19
- da.extend(
20
- [
21
- Document(
22
- id=f'r{i}',
23
- embedding=i * np.ones(n_dim),
24
- tags={'price': i, 'cat': f'cat_{i}'}
25
- )
26
- for i in range(100000)
27
- ]
28
- )
29
- da
30
- # perform vector search
31
- np_query = np.ones(n_dim) * 8
32
- da.find(np_query, filter={"cat": {'$in': ['cat_1', 'cat_5']}})[:, ('id', 'tags', 'scores__euclidean__value')]
33
- ```
@@ -1,47 +0,0 @@
1
- ```
2
- import gensim
3
- # datatype=np.float 最快
4
- # datatype=np.float 最省内存
5
- model = gensim.models.KeyedVectors.load_word2vec_format('./Tencent_AILab_ChineseEmbedding.txt', datatype=np.float)
6
- ```
7
-
8
- [无监督词向量][1]
9
-
10
- ```python
11
- # 计算两个词的相似度
12
- model.wv.similarity('周杰伦', '周董啊')
13
- model.wv.similarity('何超盈拍孕肚写真', '奚梦瑶疑似怀孕')
14
- # 词集合 相似度
15
- model.wv.n_similarity('何超盈拍孕肚写真' | xcut, '奚梦瑶疑似怀孕' | xcut)
16
- # 相似词
17
- model.wv.similar_by_word('怀孕', topn=3)
18
-
19
- # 一对多向量相似度
20
- # 一对多词找最相似
21
- model.wv.cosine_similarities(model['周杰伦'], [model['周杰伦'], model['周杰伦']])
22
- model.wv.most_similar_to_given('周杰伦', ['周杰伦', '周董'])
23
-
24
-
25
- # 增强版 最相似的词
26
- model.wv.most_similar(['男人'], ['女人'])
27
- model.wv.most_similar_cosmul(['男人'], ['女人'])
28
- model.wv.similar_by_vector(model['男人'] - model['女人'])
29
-
30
- model.wv.most_similar_cosmul(positive=['苹果手机'], negative=['手机'], topn=10)
31
- model.wv.most_similar(positive=['苹果手机'], negative=['手机'], topn=10)
32
- model.wv.similar_by_vector(model['苹果手机'] - model['手机'])
33
-
34
- # 异类
35
- model.wv.doesnt_match(['周杰伦', '周董', '林俊杰'])
36
-
37
- ##?
38
- model.wv.relative_cosine_similarity('周杰伦', '周杰伦')
39
- ```
40
-
41
-
42
-
43
-
44
-
45
-
46
- ---
47
- [1]: https://x-algo.cn/index.php/2018/11/12/3083/
@@ -1,59 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
- # @Project : tql-ANN.
4
- # @File : client
5
- # @Time : 2020-02-14 15:10
6
- # @Author : yuanjie
7
- # @Email : meutils@qq.com
8
- # @Software : PyCharm
9
- # @Description :
10
-
11
-
12
- import numpy as np
13
- from milvus import Milvus, IndexType, MetricType
14
-
15
- from gensim.models.fasttext import load_facebook_model
16
-
17
- fasttext = load_facebook_model('../data/wv/skipgram.title')
18
-
19
-
20
- def noramlize(x):
21
- return x / np.linalg.norm(x, 2, axis=len(x.shape) > 1, keepdims=True)
22
-
23
-
24
- vectors = noramlize(fasttext.wv.vectors).tolist()
25
-
26
- id2word = dict(enumerate(fasttext.wv.index2entity))
27
-
28
- (np.array(vectors[1471]) * np.array(vectors[13236])).sum()
29
-
30
- milvus = Milvus()
31
- milvus.connect(host='HOST', port='19530')
32
-
33
- _, ok = milvus.has_table('fasttext')
34
- print(_)
35
- if not ok:
36
- milvus.create_table(
37
- param={'table_name': 'fasttext',
38
- 'dimension': 200,
39
- 'index_file_size': 1024, # optional
40
- 'metric_type': MetricType.IP # optional
41
- })
42
-
43
- milvus.insert('fasttext', vectors, list(range(len(vectors))))
44
-
45
- index_param = {
46
- 'index_type': IndexType.IVFLAT, # choice ivflat index
47
- 'nlist': 2048
48
- }
49
- milvus.create_index('fasttext', index_param)
50
-
51
- param = {
52
- 'table_name': 'fasttext',
53
- 'query_records': [vectors[1471]],
54
- 'top_k': 10,
55
- 'nprobe': 16
56
- }
57
- status, results = milvus.search_vectors(**param)
58
-
59
- dict(zip(map(id2word.__getitem__, *results.id_array), *results.distance_array))
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
- # @Project : tql-ANN.
4
- # @File : demo
5
- # @Time : 2019-12-04 20:10
6
- # @Author : yuanjie
7
- # @Email : meutils@qq.com
8
- # @Software : PyCharm
9
- # @Description :
10
-
11
- import numpy as np
12
- from annzoo.faiss import ANN
13
-
14
- data = np.random.random((1000, 128)).astype('float32')
15
-
16
- ann = ANN()
17
- ann.train(data, noramlize=True)
18
-
19
- dis, idx = ann.search(data[:10])
20
-
21
- # print(dis)
22
- print(idx)
23
-
24
- ann.write_index()
meutils/api/deeplx.py DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
- # @Project : AI. @by PyCharm
4
- # @File : deeplx
5
- # @Time : 2024/3/1 16:54
6
- # @Author : betterme
7
- # @WeChat : meutils
8
- # @Software : PyCharm
9
- # @Description :
10
-
11
- from meutils.pipe import *
12
-
13
-
14
- @lru_cache
15
- def translate(text: str = "Hello, world!", source_lang: str = "auto", target_lang: str = "ZH"):
16
- """https://fakeopen.org/DeepLX/#%E6%8E%A5%E5%8F%A3%E5%9C%B0%E5%9D%80"""
17
- url = "https://api.deeplx.org/translate"
18
- payload = {
19
- "text": text,
20
- "source_lang": source_lang,
21
- "target_lang": target_lang
22
- }
23
-
24
- response = httpx.post(url, json=payload)
25
- return response.json()
26
-
27
-
28
- if __name__ == '__main__':
29
- print(translate())
meutils/api/qr.png DELETED
Binary file
meutils/clis/README.md DELETED
@@ -1,29 +0,0 @@
1
- # 通用框架
2
-
3
- > 标准化、兼容多个业务需求
4
-
5
- ## 输入
6
-
7
- - 尽量统一一种或多种输入格式
8
-
9
- ## 输出
10
-
11
- - 尽量统一一种或多种输出格式
12
-
13
- ## 参数配置
14
-
15
- - 命令行:主要配置些常用参数,便于修改
16
- - ZK配置参数:支持热更新
17
- - Yaml文件配置参数
18
-
19
- ## 代码结构
20
-
21
- - 入口函数:传入命令行参数
22
-
23
- ```python
24
- def main():
25
- fire.Fire(func)
26
- ```
27
-
28
-
29
-
meutils/clis/__test.sh DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env bash
2
- # @Project : AI @by PyCharm
3
- # @Time : 2024/1/3 09:51
4
- # @Author : betterme
5
- # @Email : 313303303@qq.com
6
- # @Software : PyCharm
7
- # @Description :
8
- #python -m meutils.clis.browser prun --headless --url https://chat.deepseek.com --storage-state "deepseek_*.json"
9
-
10
- #python -m meutils.clis.browser refresh --no-headless --delay 1 --url https://chat.deepseek.com --storage-state "deepseek_*.json"
11
-
12
- #python -m meutils.clis.browser prun --headless --kwargs '{"task": "deepseek"}' --url https://chat.deepseek.com --storage-state "./deepseek_*.json"
13
-
14
- #python browser.py prun --kwargs '{"task": "deepseek", "user_file":"deepseek.txt"}' --no-headless
15
-
16
-
17
- python browser.py refresh --delay 5 --storage-state "kimi_*.json" --no-headless --no-only-once
meutils/clis/deepseek.txt DELETED
@@ -1,8 +0,0 @@
1
- 13003330042 19861210
2
- 18395563611 e3.1415926
3
- 15251801790 min123456
4
- 13962978617 12345678
5
- 13913898681 1234qwer
6
- 313303303@qq.com 8643188a
7
- 15720826383 Yy123456
8
- 13852263862 Zqyjyc122511.
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "c4bc3945b0cfc4f0ea2446c654f737b3|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252244.438047, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "b048b73ae2853a5944", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248643941", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "DACFEDFC6CBA3DF5", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808643.948187, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248644", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784643, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248644", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiNmM5OWQ2MGItOWY3Yy00M2E2LTgzNDUtNTZiMTQ4ZTA5ZjkyIiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTMwMDMzMzAwNDIiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxMzAwMzMzMDA0MiIsImV4cCI6MTcwNDg4MjI0NiwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.JdaZxF26rU5Fj9NBh5c8pKxw6CvbCk3sRjyFCjkqbx4\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784643982|1704248644"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "ea1f7313a987b40215840a885993f718|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704251489.619932, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "db1b97360f657dff7b", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704247889158", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "774AC9D0BB3C53E1", "domain": ".hm.baidu.com", "path": "/", "expires": 1738807889.160311, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704247889", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735783889, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704247889", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiNTJhOGU0NzAtOTRkZS00MzFhLWE1NTUtZWMzNjZhNTAwNTY3IiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTMwMDM4NzIxOTIiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxMzAwMzg3MjE5MiIsImV4cCI6MTcwNDg4MTQ5MSwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.CX7te4rOcirIFGgv9f-Cj5ZscMDuofLK1d8CLphu4V0\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735783889193|1704247889"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "cef16c10e86f61a3ab925d9c527ce0db|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252279.195826, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "b4d92732fa1759b8b1", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248678707", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "9ACD4625DC1A8077", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808678.720035, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248679", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784678, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248679", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiM2JhOGQzOGUtMTA0Zi00NDk2LWI3OWItMTBjMmJkNzY2NmEyIiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTM4NTIyNjM4NjIiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxMzg1MjI2Mzg2MiIsImV4cCI6MTcwNDg4MjI4MSwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.h6ef86yiGESApo5yHybTykZzzJsqTgNmbrsRRW_zTo0\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784678743|1704248679"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "b2894b90e0f545e24fdf258ddda8f0c9|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252265.127049, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "5dd257318295c71764", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248662646", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "DBA1EE5C511566FB", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808662.660057, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248663", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784662, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248663", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiOTQ2OGI0YWYtMTg2OC00NjA5LWFmYmMtZmNkYWYzNjMyNjA2IiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTM5MTM4OTg2ODEiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxMzkxMzg5ODY4MSIsImV4cCI6MTcwNDg4MjI2NywiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.csbIC2O477pMF366lqInr51fYxh0KsiOpanGaCyRnbw\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784662691|1704248663"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "cef16c10e86f61a3ab925d9c527ce0db|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252258.470001, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "87da87377f22e6dcd8", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248657988", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "D6D0E5E4336C16CC", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808658.010899, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248658", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784658, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248658", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiYTA1NThjZWQtZmNlMS00MWYzLTkyZTctNjU1ZTE1NTQyMjY0IiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTM5NjI5Nzg2MTciLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxMzk2Mjk3ODYxNyIsImV4cCI6MTcwNDg4MjI2MCwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.PxTTbTR6HKsCLxgvJF1sNgSK65WT0wiC4c1LAmULeew\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784658036|1704248658"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "1deab2c95052331d2901ba88f2bbb4ac|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252253.782966, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "74495766d654865a24", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248649963", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "AC0D53DAC6453991", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808653.319182, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248653", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784653, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248653", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZWY3MTlkMGUtZjVkZi00NGI1LWI3YjctNzZlYWRlZTIwMjFmIiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTUyNTE4MDE3OTAiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxNTI1MTgwMTc5MCIsImV4cCI6MTcwNDg4MjI1NiwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.pmmG72T-LjRejMJ-lOTVR9-_5mtYM-_x2Y5x7m2maJ8\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784653344|1704248653"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "6fe44092e0282f6144bd88fda9701c01|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252274.496768, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "0b1a573514e12059bc", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248673993", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "97C35AE13B1F1836", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808674.02078, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248674", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784674, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248674", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiY2IyOTVhOGQtMDc1ZS00Y2NjLTk4YmYtOWNmMGY4MzliNTdjIiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTU3MjA4MjYzODMiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxNTcyMDgyNjM4MyIsImV4cCI6MTcwNDg4MjI3NiwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.E_ZivfW0Zu4J3gv4T80KZ0u4EJfCJIHSHqyi3Qvre-4\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784674047|1704248674"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "bd61083b0bdc757047aecaa5c278d5c0|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252249.156145, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "e566179b2cb62d8c8a", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248647073", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "FC5CD3AFF5B28C82", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808648.679308, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248649", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784648, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248649", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZmQ0OGNhOGEtYTc0NC00YTcyLThhZjUtOTc3YzQzMGQzZDAzIiwiZW1haWwiOiIiLCJtb2JpbGVfbnVtYmVyIjoiMTgzOTU1NjM2MTEiLCJhcmVhX2NvZGUiOiIrODYiLCJtb2JpbGUiOiIxODM5NTU2MzYxMSIsImV4cCI6MTcwNDg4MjI1MSwiYXVkIjoiNjUyOGFkMzk2ZmFhMTM2N2ZlZTZkMTZjIn0.fpeGDi2RlTEr9Edw9FPqW5cAwHIvLsLa-HqTZN41YNI\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784648708|1704248649"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "route", "value": "eb128e9090b9897efe6deaef17a44580|6f8463e6e0fc28568ed5f94061f80538", "domain": "chat.deepseek.com", "path": "/api", "expires": 1704252269.761625, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESID", "value": "851ce73bb00b178c17", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HWWAFSESTIME", "value": "1704248669247", "domain": "chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "HMACCOUNT_BFESS", "value": "42C851FDBB2F92F4", "domain": ".hm.baidu.com", "path": "/", "expires": 1738808669.26766, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248669", "domain": ".chat.deepseek.com", "path": "/", "expires": 1735784669, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1704248669", "domain": ".chat.deepseek.com", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://chat.deepseek.com", "localStorage": [{"name": "__debugUiEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "userToken", "value": "{\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZDQ0NDc4MmMtZWMyOC00Y2MzLWIwNWMtOWEwZDFjMGNhZmQ2IiwiZW1haWwiOiIzMTMzMDMzMDNAcXEuY29tIiwibW9iaWxlX251bWJlciI6IjE4NTUwMjg4MjMzIiwiYXJlYV9jb2RlIjoiKzg2IiwibW9iaWxlIjoiMTg1NTAyODgyMzMiLCJleHAiOjE3MDQ4ODIyNzIsImF1ZCI6IjY1MjhhZDM5NmZhYTEzNjdmZWU2ZDE2YyJ9.Qnk8MmoM3f9tqhXqHx7KX82uLJnQXhj1PMcAQ0cq8kI\",\"__version\":\"0\"}"}, {"name": "Hm_lvt_1fff341d7a963a4043e858ef0e19a17c", "value": "1735784669291|1704248669"}, {"name": "featureGates", "value": "{\"value\":{\"enableShowAllErrorOnUserMessage\":true,\"enableMessageAvatar\":true,\"enableClearButtonNoBackground\":true,\"enableAltEnterToDebugSubmit\":false,\"enableDeepseekChat\":true,\"enableMarkdownPreprocess\":true,\"enableContinueCompletion\":true},\"__version\":\"2\"}"}, {"name": "theme", "value": "{\"value\":\"light\",\"__version\":\"0\"}"}, {"name": "__debugVersionUpdateDisabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "__debugPanelEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "completionApiSlideWindow", "value": "{\"value\":[],\"__version\":\"0\"}"}, {"name": "__debugMockEnabled", "value": "{\"value\":false,\"__version\":\"0\"}"}, {"name": "lastClickTarget", "value": "{\"value\":\"chat\",\"__version\":\"0\"}"}]}]}
@@ -1 +0,0 @@
1
- {"cookies": [{"name": "HMACCOUNT_BFESS", "value": "BD473E11FD257664", "domain": ".hm.baidu.com", "path": "/", "expires": 1735806538.560468, "httpOnly": false, "secure": true, "sameSite": "None"}, {"name": "_ga", "value": "GA1.1.249578188.1701246539", "domain": ".moonshot.cn", "path": "/", "expires": 1738985404.49455, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lvt_358cae4815e85d48f7e8ab7f3680a74b", "value": "1703586242", "domain": ".kimi.moonshot.cn", "path": "/", "expires": 1735961404, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "_ga_YXD8W70SZP", "value": "GS1.1.1704425330.4.1.1704425404.0.0.0", "domain": ".moonshot.cn", "path": "/", "expires": 1738985404.504081, "httpOnly": false, "secure": false, "sameSite": "Lax"}, {"name": "Hm_lpvt_358cae4815e85d48f7e8ab7f3680a74b", "value": "1704425405", "domain": ".kimi.moonshot.cn", "path": "/", "expires": -1, "httpOnly": false, "secure": false, "sameSite": "Lax"}], "origins": [{"origin": "https://kimi.moonshot.cn", "localStorage": [{"name": "__tea_cache_refer_20001731", "value": "{\"refer_key\":\"\",\"refer_title\":\"Kimi Chat - \u5e2e\u4f60\u770b\u66f4\u5927\u7684\u4e16\u754c\",\"refer_manual_key\":\"\",\"routeChange\":false}"}, {"name": "mui-color-scheme-light", "value": "light"}, {"name": "CUSTOM_THEME", "value": "\"dark\""}, {"name": "__tea_cache_first_20001731", "value": "1"}, {"name": "APMPLUS566559", "value": "JTdCJTIydXNlcklkJTIyOiUyMjAxZjZhMzkwLTc5NjUtNDhiMi05MDk4LWQ3MmFhYzYwY2FjZSUyMiwlMjJkZXZpY2VJZCUyMjolMjI0Y2VkMWI0Mi00ZDI2LTRmYWEtYWU1My0yYTNmZjQ2MTViNmYlMjIsJTIyciUyMjowLjI5MDc1Nzc4NzQ2ODQ2NjgsJTIyZXhwaXJlcyUyMjoxNzEyMjAxNDA0NjQ0JTdE"}, {"name": "__tea_cache_tokens_20001731", "value": "{\"web_id\":\"7312252576731241985\",\"user_unique_id\":\"7312252576731241985\",\"timestamp\":1704425404497,\"_type_\":\"default\"}"}, {"name": "Hm_lvt_358cae4815e85d48f7e8ab7f3680a74b", "value": "1735961404649|1703586242"}, {"name": "mui-mode", "value": "light"}, {"name": "mui-color-scheme-dark", "value": "dark"}]}]}
meutils/cmds/README.md DELETED
@@ -1,55 +0,0 @@
1
- # [HDFS][1]
2
- 1.hdfs命令行
3
- (1)查看帮助
4
- hdfs dfs -help
5
-
6
- (2)查看当前目录信息
7
- hdfs dfs -ls / # -ls -R 递归显示目录结构
8
-
9
- (3)上传文件
10
- hdfs dfs -put /本地路径 /hdfs路径
11
-
12
- (4)剪切文件
13
- hdfs dfs -moveFromLocal a.txt /aa.txt
14
-
15
- (5)下载文件到本地
16
- hdfs dfs -get /hdfs路径 /本地路径
17
-
18
- (6)合并下载
19
- hdfs dfs -getmerge /hdfs路径文件夹 /合并后的文件
20
-
21
- (7)创建文件夹
22
- hdfs dfs -mkdir /hello
23
-
24
- (8)创建多级文件夹
25
- hdfs dfs -mkdir -p /hello/world
26
-
27
- (9)移动hdfs文件
28
- hdfs dfs -mv /hdfs路径 /hdfs路径
29
-
30
- (10)复制hdfs文件
31
- hdfs dfs -cp /hdfs路径 /hdfs路径
32
-
33
- (11)删除hdfs文件
34
- hdfs dfs -rm /aa.txt
35
-
36
- (12)删除hdfs文件夹
37
- hdfs dfs -rm -r /hello
38
-
39
- (13)查看hdfs中的文件
40
- hdfs dfs -cat /文件
41
- hdfs dfs -tail -f /文件
42
-
43
- (14)查看文件夹中有多少个文件
44
- hdfs dfs -count /文件夹
45
-
46
- (15)查看hdfs的总空间
47
- hdfs dfs -df /
48
- hdfs dfs -df -h /
49
-
50
- (16)修改副本数
51
- hdfs dfs -setrep 1 /a.txtZ-blog:www.361wx.com
52
-
53
-
54
- ---
55
- [1]: http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html#touchz