speedy-utils 1.0.16__tar.gz → 1.0.20__tar.gz

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 (37) hide show
  1. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/PKG-INFO +4 -3
  2. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/pyproject.toml +19 -4
  3. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/__init__.py +3 -2
  4. speedy_utils-1.0.20/src/llm_utils/lm/__init__.py +12 -0
  5. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/lm/chat_html.py +1 -1
  6. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/lm/lm_json.py +1 -1
  7. speedy_utils-1.0.16/src/llm_utils/lm/__init__.py +0 -9
  8. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/README.md +0 -0
  9. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/chat_format/__init__.py +0 -0
  10. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/chat_format/display.py +0 -0
  11. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/chat_format/transform.py +0 -0
  12. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/chat_format/utils.py +0 -0
  13. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/group_messages.py +0 -0
  14. /speedy_utils-1.0.16/src/llm_utils/lm/alm.py → /speedy_utils-1.0.20/src/llm_utils/lm/async_lm.py +0 -0
  15. /speedy_utils-1.0.16/src/llm_utils/lm/lm.py → /speedy_utils-1.0.20/src/llm_utils/lm/sync_lm.py +0 -0
  16. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/lm/utils.py +0 -0
  17. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/scripts/README.md +0 -0
  18. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/scripts/vllm_load_balancer.py +0 -0
  19. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/llm_utils/scripts/vllm_serve.py +0 -0
  20. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/__init__.py +0 -0
  21. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/all.py +0 -0
  22. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/__init__.py +0 -0
  23. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/clock.py +0 -0
  24. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/function_decorator.py +0 -0
  25. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/logger.py +0 -0
  26. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/notebook_utils.py +0 -0
  27. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/report_manager.py +0 -0
  28. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/utils_cache.py +0 -0
  29. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/utils_io.py +0 -0
  30. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/utils_misc.py +0 -0
  31. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/common/utils_print.py +0 -0
  32. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/multi_worker/__init__.py +0 -0
  33. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/multi_worker/process.py +0 -0
  34. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/multi_worker/thread.py +0 -0
  35. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/scripts/__init__.py +0 -0
  36. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/scripts/mpython.py +0 -0
  37. {speedy_utils-1.0.16 → speedy_utils-1.0.20}/src/speedy_utils/scripts/openapi_client_codegen.py +0 -0
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: speedy-utils
3
- Version: 1.0.16
3
+ Version: 1.0.20
4
4
  Summary: Fast and easy-to-use package for data science
5
5
  Author: AnhVTH
6
6
  Author-email: anhvth.226@gmail.com
7
- Requires-Python: >=3.9
7
+ Requires-Python: >=3.8
8
8
  Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.8
9
10
  Classifier: Programming Language :: Python :: 3.9
10
11
  Classifier: Programming Language :: Python :: 3.10
11
12
  Classifier: Programming Language :: Python :: 3.11
@@ -19,7 +20,7 @@ Requires-Dist: fastprogress
19
20
  Requires-Dist: freezegun (>=1.5.1,<2.0.0)
20
21
  Requires-Dist: ipdb
21
22
  Requires-Dist: ipywidgets
22
- Requires-Dist: json-repair (>=0.40.0,<0.41.0)
23
+ Requires-Dist: json-repair (>=0.25.0,<0.31.0)
23
24
  Requires-Dist: jupyterlab
24
25
  Requires-Dist: loguru
25
26
  Requires-Dist: matplotlib
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "speedy-utils"
3
- version = "1.0.16"
3
+ version = "1.0.20"
4
4
  description = "Fast and easy-to-use package for data science"
5
5
  authors = ["AnhVTH <anhvth.226@gmail.com>"]
6
6
  readme = "README.md"
@@ -11,7 +11,7 @@ packages = [
11
11
  ]
12
12
 
13
13
  [build-system]
14
- requires = ["poetry-core>=1.0.16"]
14
+ requires = ["poetry-core>=1.0.15"]
15
15
  build-backend = "poetry.core.masonry.api"
16
16
 
17
17
  [tool.black]
@@ -36,7 +36,7 @@ no_implicit_optional = true
36
36
  strict_optional = true
37
37
 
38
38
  [tool.poetry.dependencies]
39
- python = ">=3.9"
39
+ python = ">=3.8"
40
40
  numpy = "*"
41
41
  requests = "*"
42
42
  xxhash = "*"
@@ -54,7 +54,7 @@ pydantic = "*"
54
54
  tqdm = "*"
55
55
  cachetools = "*"
56
56
  bump2version = "*"
57
- json-repair = ">=0.40.0,<0.41.0"
57
+ json-repair = ">=0.25.0,<0.31.0"
58
58
  fastprogress = "*"
59
59
  freezegun = "^1.5.1"
60
60
  packaging = ">=23.2,<25"
@@ -64,3 +64,18 @@ mpython = "speedy_utils.scripts.mpython:main"
64
64
  svllm = "llm_utils.scripts.vllm_serve:main"
65
65
  svllm-lb = "llm_utils.scripts.vllm_load_balancer:run_load_balancer"
66
66
  openapi_client_codegen = "speedy_utils.scripts.openapi_client_codegen:main"
67
+
68
+
69
+ [tool.ruff.format]
70
+ quote-style = "double"
71
+ line-ending = "lf"
72
+ docstring-code-format = true
73
+ [tool.ruff]
74
+ exclude = ["**/*.ipynb", "poly_frontend_controler/*", "poly_client/", "legacy"]
75
+ ignore = [
76
+ "E501", # Line too long
77
+ "F401", # Unused import
78
+ "F403", # Wildcard import
79
+ "F841", # Local variable is assigned to but never used
80
+ "T201", # Use of `print` statement
81
+ ]
@@ -9,8 +9,8 @@ from .chat_format import (
9
9
  transform_messages,
10
10
  transform_messages_to_chatml,
11
11
  )
12
- from .lm.lm import LM, LLMTask
13
- from .lm.alm import AsyncLM
12
+ from .lm.async_lm import AsyncLLMTask, AsyncLM
13
+ from .lm.sync_lm import LM, LLMTask
14
14
 
15
15
  __all__ = [
16
16
  "transform_messages",
@@ -26,4 +26,5 @@ __all__ = [
26
26
  "AsyncLM",
27
27
  "display_chat_messages_as_html",
28
28
  "LLMTask",
29
+ "AsyncLLMTask",
29
30
  ]
@@ -0,0 +1,12 @@
1
+ # from .async_lm import AsyncLLMTask, AsyncLM
2
+ # from .lm import LM, LLMTask
3
+
4
+ # OAI_LM = LM
5
+
6
+ # __all__ = [
7
+ # "LM",
8
+ # "OAI_LM",
9
+ # "AsyncLM",
10
+ # "LLMTask",
11
+ # "AsyncLLMTask",
12
+ # ]
@@ -1,5 +1,5 @@
1
1
  from typing import Any, Optional, cast
2
- from .lm import LM, Messages, LegacyMsgs, RawMsgs
2
+ from .sync_lm import LM, Messages, LegacyMsgs, RawMsgs
3
3
  import sys
4
4
 
5
5
  # Configuration
@@ -1,7 +1,7 @@
1
1
  from typing import Any, Optional
2
2
 
3
3
 
4
- from llm_utils.lm.lm import LM, RawMsgs
4
+ from llm_utils.lm.sync_lm import LM, RawMsgs
5
5
 
6
6
 
7
7
  class LMJson(LM):
@@ -1,9 +0,0 @@
1
- from .lm import LM
2
- from .alm import AsyncLM
3
- OAI_LM = LM
4
-
5
- __all__ = [
6
- "LM",
7
- "OAI_LM",
8
- "AsyncLM",
9
- ]
File without changes