not-again-ai 0.4.3__tar.gz → 0.4.5__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 (27) hide show
  1. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/PKG-INFO +5 -6
  2. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/pyproject.toml +11 -12
  3. not_again_ai-0.4.5/src/not_again_ai/llm/__init__.py +15 -0
  4. not_again_ai-0.4.5/src/not_again_ai/statistics/__init__.py +15 -0
  5. not_again_ai-0.4.5/src/not_again_ai/viz/__init__.py +15 -0
  6. not_again_ai-0.4.3/src/not_again_ai/llm/__init__.py +0 -9
  7. not_again_ai-0.4.3/src/not_again_ai/statistics/__init__.py +0 -9
  8. not_again_ai-0.4.3/src/not_again_ai/viz/__init__.py +0 -9
  9. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/LICENSE +0 -0
  10. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/README.md +0 -0
  11. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/__init__.py +0 -0
  12. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/base/__init__.py +0 -0
  13. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/base/file_system.py +0 -0
  14. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/base/parallel.py +0 -0
  15. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/llm/chat_completion.py +0 -0
  16. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/llm/context_management.py +0 -0
  17. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/llm/embeddings.py +0 -0
  18. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/llm/openai_client.py +0 -0
  19. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/llm/prompts.py +0 -0
  20. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/llm/tokens.py +0 -0
  21. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/py.typed +0 -0
  22. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/statistics/dependence.py +0 -0
  23. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/viz/barplots.py +0 -0
  24. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/viz/distributions.py +0 -0
  25. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/viz/scatterplot.py +0 -0
  26. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/viz/time_series.py +0 -0
  27. {not_again_ai-0.4.3 → not_again_ai-0.4.5}/src/not_again_ai/viz/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not-again-ai
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Summary: Designed to once and for all collect all the little things that come up over and over again in AI projects and put them in one place.
5
5
  Home-page: https://github.com/DaveCoDev/not-again-ai
6
6
  License: MIT
@@ -16,16 +16,15 @@ Classifier: Programming Language :: Python
16
16
  Classifier: Programming Language :: Python :: 3
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
- Classifier: Programming Language :: Python :: 3 :: Only
20
19
  Classifier: Typing :: Typed
21
20
  Provides-Extra: llm
22
21
  Provides-Extra: statistics
23
22
  Provides-Extra: viz
24
23
  Requires-Dist: numpy (>=1.26.4,<2.0.0) ; extra == "statistics" or extra == "viz"
25
- Requires-Dist: openai (>=1.12.0,<2.0.0) ; extra == "llm"
26
- Requires-Dist: pandas (>=2.2.0,<3.0.0) ; extra == "viz"
27
- Requires-Dist: python-liquid (>=1.12.0,<2.0.0) ; extra == "llm"
28
- Requires-Dist: scikit-learn (>=1.4.0,<2.0.0) ; extra == "statistics"
24
+ Requires-Dist: openai (>=1.14.3,<2.0.0) ; extra == "llm"
25
+ Requires-Dist: pandas (>=2.2.1,<3.0.0) ; extra == "viz"
26
+ Requires-Dist: python-liquid (>=1.12.1,<2.0.0) ; extra == "llm"
27
+ Requires-Dist: scikit-learn (>=1.4.1.post1,<2.0.0) ; extra == "statistics"
29
28
  Requires-Dist: scipy (>=1.12.0,<2.0.0) ; extra == "statistics"
30
29
  Requires-Dist: seaborn (>=0.13.2,<0.14.0) ; extra == "viz"
31
30
  Requires-Dist: tiktoken (>=0.6.0,<0.7.0) ; extra == "llm"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "not-again-ai"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  description = "Designed to once and for all collect all the little things that come up over and over again in AI projects and put them in one place."
5
5
  authors = ["DaveCoDev <dave.co.dev@gmail.com>"]
6
6
  license = "MIT"
@@ -15,7 +15,6 @@ classifiers = [
15
15
  "Operating System :: OS Independent",
16
16
  "Programming Language :: Python",
17
17
  "Programming Language :: Python :: 3",
18
- "Programming Language :: Python :: 3 :: Only",
19
18
  "Programming Language :: Python :: 3.11",
20
19
  "Programming Language :: Python :: 3.12",
21
20
  "Typing :: Typed",
@@ -29,11 +28,11 @@ python = "^3.11, <3.13"
29
28
 
30
29
  # Optional dependencies are defined here, and groupings are defined below.
31
30
  numpy = { version = "^1.26.4", optional = true }
32
- openai = { version = "^1.12.0", optional = true }
33
- pandas = { version = "^2.2.0", optional = true }
34
- python-liquid = { version = "^1.12.0", optional = true }
31
+ openai = { version = "^1.14.3", optional = true }
32
+ pandas = { version = "^2.2.1", optional = true }
33
+ python-liquid = { version = "^1.12.1", optional = true }
35
34
  scipy = { version = "^1.12.0", optional = true }
36
- scikit-learn = { version = "^1.4.0", optional = true }
35
+ scikit-learn = { version = "^1.4.1.post1", optional = true }
37
36
  seaborn = { version = "^0.13.2", optional = true }
38
37
  tiktoken = { version = "^0.6.0", optional = true }
39
38
 
@@ -86,21 +85,24 @@ disallow_untyped_calls = false
86
85
  [tool.ruff]
87
86
  line-length = 120
88
87
  target-version = "py311"
89
- src = ["src"]
88
+ src = ["src", "tests"]
90
89
 
91
90
  [tool.ruff.lint]
92
- extend-select = [
91
+ select = [
92
+ "F", # pyflakes
93
+ "E", # pycodestyle
93
94
  "I", # isort
94
95
  "N", # pep8-naming
95
96
  "UP", # pyupgrade
96
97
  "RUF", # ruff
97
98
  "B", # flake8-bugbear
98
99
  "C4", # flake8-comprehensions
100
+ "ISC", # flake8-implicit-str-concat
99
101
  "PTH", # flake8-use-pathlib
100
102
  "SIM", # flake8-simplify
101
103
  "TID", # flake8-tidy-imports
102
104
  ]
103
- extend-ignore = ["RUF005", "E501"]
105
+ ignore = ["E501"]
104
106
  unfixable = ["F401"]
105
107
 
106
108
  [tool.ruff.lint.isort]
@@ -110,9 +112,6 @@ split-on-trailing-comma = false
110
112
  [tool.ruff.lint.flake8-tidy-imports]
111
113
  ban-relative-imports = "all"
112
114
 
113
- [tool.ruff.lint.flake8-bugbear]
114
- extend-immutable-calls = ["typer.Argument"]
115
-
116
115
  [tool.pytest.ini_options]
117
116
  addopts = [
118
117
  "--strict-config",
@@ -0,0 +1,15 @@
1
+ import importlib.util
2
+
3
+ if (
4
+ importlib.util.find_spec("liquid") is None
5
+ or importlib.util.find_spec("openai") is None
6
+ or importlib.util.find_spec("tiktoken") is None
7
+ ):
8
+ raise ImportError(
9
+ "not_again_ai.llm requires the 'llm' extra to be installed. "
10
+ "You can install it using 'pip install not_again_ai[llm]'."
11
+ )
12
+ else:
13
+ import liquid # noqa: F401
14
+ import openai # noqa: F401
15
+ import tiktoken # noqa: F401
@@ -0,0 +1,15 @@
1
+ import importlib.util
2
+
3
+ if (
4
+ importlib.util.find_spec("numpy") is None
5
+ or importlib.util.find_spec("scipy") is None
6
+ or importlib.util.find_spec("sklearn") is None
7
+ ):
8
+ raise ImportError(
9
+ "not_again_ai.statistics requires the 'statistics' extra to be installed. "
10
+ "You can install it using 'pip install not_again_ai[statistics]'."
11
+ )
12
+ else:
13
+ import numpy # noqa: F401
14
+ import scipy # noqa: F401
15
+ import sklearn # noqa: F401
@@ -0,0 +1,15 @@
1
+ import importlib.util
2
+
3
+ if (
4
+ importlib.util.find_spec("numpy") is None
5
+ or importlib.util.find_spec("pandas") is None
6
+ or importlib.util.find_spec("seaborn") is None
7
+ ):
8
+ raise ImportError(
9
+ "not_again_ai.viz requires the 'viz' extra to be installed. "
10
+ "You can install it using 'pip install not_again_ai[viz]'."
11
+ )
12
+ else:
13
+ import numpy # noqa: F401
14
+ import pandas # noqa: F401
15
+ import seaborn # noqa: F401
@@ -1,9 +0,0 @@
1
- try:
2
- import liquid # noqa
3
- import openai # noqa
4
- import tiktoken # noqa
5
- except ImportError:
6
- raise ImportError( # noqa
7
- "not_again_ai.llm requires the 'llm' extra to be installed. "
8
- "You can install it using 'pip install not_again_ai[llm]'."
9
- )
@@ -1,9 +0,0 @@
1
- try:
2
- import numpy # noqa
3
- import scipy # noqa
4
- import sklearn # noqa
5
- except ImportError:
6
- raise ImportError( # noqa
7
- "not_again_ai.statistics requires the 'statistics' extra to be installed. "
8
- "You can install it using 'pip install not_again_ai[statistics]'."
9
- )
@@ -1,9 +0,0 @@
1
- try:
2
- import numpy # noqa
3
- import pandas # noqa
4
- import seaborn # noqa
5
- except ImportError:
6
- raise ImportError( # noqa
7
- "not_again_ai.viz requires the 'viz' extra to be installed. "
8
- "You can install it using 'pip install not_again_ai[viz]'."
9
- )
File without changes
File without changes