not-again-ai 0.4.4__py3-none-any.whl → 0.4.5__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,9 +1,15 @@
1
- try:
2
- import liquid
3
- import openai
4
- import tiktoken
5
- except ImportError:
6
- raise ImportError( # noqa
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(
7
9
  "not_again_ai.llm requires the 'llm' extra to be installed. "
8
10
  "You can install it using 'pip install not_again_ai[llm]'."
9
11
  )
12
+ else:
13
+ import liquid # noqa: F401
14
+ import openai # noqa: F401
15
+ import tiktoken # noqa: F401
@@ -1,9 +1,15 @@
1
- try:
2
- import numpy
3
- import scipy
4
- import sklearn
5
- except ImportError:
6
- raise ImportError( # noqa
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(
7
9
  "not_again_ai.statistics requires the 'statistics' extra to be installed. "
8
10
  "You can install it using 'pip install not_again_ai[statistics]'."
9
11
  )
12
+ else:
13
+ import numpy # noqa: F401
14
+ import scipy # noqa: F401
15
+ import sklearn # noqa: F401
@@ -1,9 +1,15 @@
1
- try:
2
- import numpy
3
- import pandas
4
- import seaborn
5
- except ImportError:
6
- raise ImportError( # noqa
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(
7
9
  "not_again_ai.viz requires the 'viz' extra to be installed. "
8
10
  "You can install it using 'pip install not_again_ai[viz]'."
9
11
  )
12
+ else:
13
+ import numpy # noqa: F401
14
+ import pandas # noqa: F401
15
+ import seaborn # noqa: F401
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not-again-ai
3
- Version: 0.4.4
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,13 +16,12 @@ 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.13.3,<2.0.0) ; extra == "llm"
24
+ Requires-Dist: openai (>=1.14.3,<2.0.0) ; extra == "llm"
26
25
  Requires-Dist: pandas (>=2.2.1,<3.0.0) ; extra == "viz"
27
26
  Requires-Dist: python-liquid (>=1.12.1,<2.0.0) ; extra == "llm"
28
27
  Requires-Dist: scikit-learn (>=1.4.1.post1,<2.0.0) ; extra == "statistics"
@@ -2,7 +2,7 @@ not_again_ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  not_again_ai/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  not_again_ai/base/file_system.py,sha256=SX1ab2igdcFGjvdh4rDJIYVXbYC-jsYnCiM4oZtutAU,344
4
4
  not_again_ai/base/parallel.py,sha256=fcYhKBYBWvob84iKp3O93wvFFdXeidljZsShgBLTNGA,3448
5
- not_again_ai/llm/__init__.py,sha256=EZBg3BZkB-sf_4YaOeW77byKDezbLRr28LbH_vYCG7s,256
5
+ not_again_ai/llm/__init__.py,sha256=_wNUL6FDaT369Z8W48FsaC_NkcOZ-ib2MMUvnaLOS-0,451
6
6
  not_again_ai/llm/chat_completion.py,sha256=g7XnyfBISrRRUvEUMRaxR9uXUp-UBu3_qj0i_Aq6mo4,8545
7
7
  not_again_ai/llm/context_management.py,sha256=LXNd_L-jxurIFR1bO7gWakEH8I-cZmvLW83dFtvfJa4,3424
8
8
  not_again_ai/llm/embeddings.py,sha256=4OBnxZicrY6q4dQhuPqMdAnifyjwrsKMTDj-kVre0yc,2500
@@ -10,16 +10,16 @@ not_again_ai/llm/openai_client.py,sha256=6pZw2xw9X-ceV22rhApwFJ2tAKCxi-SxkjxBsTB
10
10
  not_again_ai/llm/prompts.py,sha256=GrYnVVXSd1IsdtpYxAeAEleINjIyL2OXr7daasDYb3w,2295
11
11
  not_again_ai/llm/tokens.py,sha256=5CQqdjsDw_CIRDKBiTNzyjq9V-MFXUURtdTqbt2Y5nU,4244
12
12
  not_again_ai/py.typed,sha256=UaCuPFa3H8UAakbt-5G8SPacldTOGvJv18pPjUJ5gDY,93
13
- not_again_ai/statistics/__init__.py,sha256=6zXndsbCewnJ-cINyIBX4Ky1Wv0wWnouETUzg-JFcpA,274
13
+ not_again_ai/statistics/__init__.py,sha256=gA8r9JQFbFSN0ykrHy4G1IQgcky4f2eM5Oo24oVI5Ik,466
14
14
  not_again_ai/statistics/dependence.py,sha256=yZDk_e3ng96mp4hu8dDtQ0-uIn6KdSuGRS9uyM0O3x0,4429
15
- not_again_ai/viz/__init__.py,sha256=yPJvrbR8QDjkw_EikHCK8naLEd924ehk9m_MJCzbbio,254
15
+ not_again_ai/viz/__init__.py,sha256=MeaWae_QRbDEHJ4MWYoY1-Ad6S0FhSDaRhQncS2cpSc,447
16
16
  not_again_ai/viz/barplots.py,sha256=xhxEXf4mfaymxDQtpphg9auy03zQ9e29R6L9yHixW1Y,3382
17
17
  not_again_ai/viz/distributions.py,sha256=OyWwJaNI6lMRm_iSrhq-CORLNvXfeuLSgDtVo3umnzU,4354
18
18
  not_again_ai/viz/scatterplot.py,sha256=eBtIf0Tf_1EcN-akRNJgvwLU0zpRx1zOl0VF9QTnbZA,2290
19
19
  not_again_ai/viz/time_series.py,sha256=pOGZqXp_2nd6nKo-PUQNCtmMh__69jxQ6bQibTGLwZA,5212
20
20
  not_again_ai/viz/utils.py,sha256=hN7gwxtBt3U6jQni2K8j5m5pCXpaJDoNzGhBBikEU28,238
21
- not_again_ai-0.4.4.dist-info/LICENSE,sha256=btjOgNGpp-ux5xOo1Gx1MddxeWtT9sof3s3Nui29QfA,1071
22
- not_again_ai-0.4.4.dist-info/METADATA,sha256=Nz_6VQjQIK5cqNUXOS4ZyKHAQHelSGuUgfEyowYPsAY,15939
23
- not_again_ai-0.4.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
- not_again_ai-0.4.4.dist-info/entry_points.txt,sha256=EMJegugnmJUd-jMUA_qIRMIPAasbei8gP6O4-ER0BxQ,61
25
- not_again_ai-0.4.4.dist-info/RECORD,,
21
+ not_again_ai-0.4.5.dist-info/LICENSE,sha256=btjOgNGpp-ux5xOo1Gx1MddxeWtT9sof3s3Nui29QfA,1071
22
+ not_again_ai-0.4.5.dist-info/METADATA,sha256=bPt84yIVkGEYmbdLBadkk9xh8uyMhzgI0E3H0SQwtSA,15883
23
+ not_again_ai-0.4.5.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
+ not_again_ai-0.4.5.dist-info/entry_points.txt,sha256=EMJegugnmJUd-jMUA_qIRMIPAasbei8gP6O4-ER0BxQ,61
25
+ not_again_ai-0.4.5.dist-info/RECORD,,