numpy-fast 0.1.2__tar.gz → 0.1.4__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.
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/PKG-INFO +1 -1
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/pyproject.toml +1 -1
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/src/nampy/core.py +52 -15
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/src/numpy_fast.egg-info/PKG-INFO +1 -1
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/README.md +0 -0
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/setup.cfg +0 -0
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/src/nampy/__init__.py +0 -0
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/src/numpy_fast.egg-info/SOURCES.txt +0 -0
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/src/numpy_fast.egg-info/dependency_links.txt +0 -0
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/src/numpy_fast.egg-info/top_level.txt +0 -0
- {numpy_fast-0.1.2 → numpy_fast-0.1.4}/tests/test_nampy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: numpy_fast
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Python AI toolkit — max, min, mean functions powered by top AI models
|
|
5
5
|
Author-email: Karen_Poghosyan_042009 <karenpoghosyan242@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/karen/numpy_fast
|
|
@@ -2,6 +2,7 @@ import os
|
|
|
2
2
|
import json
|
|
3
3
|
import warnings
|
|
4
4
|
import subprocess
|
|
5
|
+
import platform
|
|
5
6
|
import urllib.request
|
|
6
7
|
import openai
|
|
7
8
|
|
|
@@ -23,7 +24,7 @@ MAX_MODELS = [
|
|
|
23
24
|
"deepseek/deepseek-r1-0528",
|
|
24
25
|
"anthropic/claude-sonnet-4-5",
|
|
25
26
|
"openai/gpt-4o",
|
|
26
|
-
"google/gemini-2.5-flash
|
|
27
|
+
"google/gemini-2.5-flash",
|
|
27
28
|
"meta-llama/llama-3.3-70b-instruct",
|
|
28
29
|
"nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
29
30
|
"openrouter/owl-alpha",
|
|
@@ -39,7 +40,7 @@ MISTRAL_MODELS = [
|
|
|
39
40
|
|
|
40
41
|
# mean() — lightweight, fast models
|
|
41
42
|
MEAN_MODELS = [
|
|
42
|
-
"google/gemini-2.5-flash
|
|
43
|
+
"google/gemini-2.5-flash",
|
|
43
44
|
"google/gemma-3-27b-it",
|
|
44
45
|
"meta-llama/llama-3.1-8b-instruct",
|
|
45
46
|
"mistralai/mistral-7b-instruct",
|
|
@@ -47,14 +48,41 @@ MEAN_MODELS = [
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
def _clip(text):
|
|
50
|
-
"""
|
|
51
|
+
"""Copy text to clipboard (cross-platform)."""
|
|
52
|
+
import sys
|
|
53
|
+
import platform
|
|
54
|
+
|
|
51
55
|
try:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if platform.system() == "Windows":
|
|
57
|
+
subprocess.run(
|
|
58
|
+
["clip"],
|
|
59
|
+
input=str(text).encode("utf-16-le"),
|
|
60
|
+
check=True,
|
|
61
|
+
creationflags=0x08000000, # CREATE_NO_WINDOW
|
|
62
|
+
)
|
|
63
|
+
elif platform.system() == "Darwin": # macOS
|
|
64
|
+
subprocess.run(
|
|
65
|
+
["pbcopy"],
|
|
66
|
+
input=str(text).encode("utf-8"),
|
|
67
|
+
check=True,
|
|
68
|
+
)
|
|
69
|
+
elif platform.system() == "Linux":
|
|
70
|
+
# Try xclip first, then xsel
|
|
71
|
+
try:
|
|
72
|
+
subprocess.run(
|
|
73
|
+
["xclip", "-selection", "clipboard"],
|
|
74
|
+
input=str(text).encode("utf-8"),
|
|
75
|
+
check=True,
|
|
76
|
+
)
|
|
77
|
+
except FileNotFoundError:
|
|
78
|
+
try:
|
|
79
|
+
subprocess.run(
|
|
80
|
+
["xsel", "--clipboard", "--input"],
|
|
81
|
+
input=str(text).encode("utf-8"),
|
|
82
|
+
check=True,
|
|
83
|
+
)
|
|
84
|
+
except FileNotFoundError:
|
|
85
|
+
pass # Clipboard tools not available
|
|
58
86
|
except Exception:
|
|
59
87
|
pass
|
|
60
88
|
|
|
@@ -71,7 +99,10 @@ def max(model_idx=None, prompt=None):
|
|
|
71
99
|
"""
|
|
72
100
|
Strong AI models via OpenRouter.
|
|
73
101
|
"""
|
|
74
|
-
if model_idx
|
|
102
|
+
if isinstance(model_idx, str):
|
|
103
|
+
prompt = model_idx
|
|
104
|
+
model_idx = 2
|
|
105
|
+
elif model_idx is None:
|
|
75
106
|
model_idx = 2
|
|
76
107
|
|
|
77
108
|
if prompt is None:
|
|
@@ -115,8 +146,11 @@ def min(model_idx=None, prompt=None):
|
|
|
115
146
|
"""
|
|
116
147
|
Mistral AI models.
|
|
117
148
|
"""
|
|
118
|
-
if model_idx
|
|
119
|
-
|
|
149
|
+
if isinstance(model_idx, str):
|
|
150
|
+
prompt = model_idx
|
|
151
|
+
model_idx = 0
|
|
152
|
+
elif model_idx is None:
|
|
153
|
+
model_idx = 0
|
|
120
154
|
if prompt is None:
|
|
121
155
|
prompt = input("Մուտքագրեք հարցումը: ")
|
|
122
156
|
|
|
@@ -163,7 +197,10 @@ def mean(model_idx=None, prompt=None):
|
|
|
163
197
|
"""
|
|
164
198
|
Lightweight and fast AI models via OpenRouter.
|
|
165
199
|
"""
|
|
166
|
-
if model_idx
|
|
200
|
+
if isinstance(model_idx, str):
|
|
201
|
+
prompt = model_idx
|
|
202
|
+
model_idx = 0
|
|
203
|
+
elif model_idx is None:
|
|
167
204
|
model_idx = 0
|
|
168
205
|
|
|
169
206
|
if prompt is None:
|
|
@@ -395,7 +432,7 @@ import nampy
|
|
|
395
432
|
│ [0] deepseek/deepseek-r1-0528 │
|
|
396
433
|
│ [1] anthropic/claude-sonnet-4-5 │
|
|
397
434
|
│ [2] openai/gpt-4o │
|
|
398
|
-
│ [3] google/gemini-2.5-flash
|
|
435
|
+
│ [3] google/gemini-2.5-flash │
|
|
399
436
|
│ [4] meta-llama/llama-3.3-70b-instruct │
|
|
400
437
|
│ [5] nvidia/nemotron-3-ultra-550b-a55b:free │
|
|
401
438
|
│ [6] openrouter/owl-alpha │
|
|
@@ -411,7 +448,7 @@ import nampy
|
|
|
411
448
|
|
|
412
449
|
┌─ nampy.mean() ───────────────────────────────────────────────┐
|
|
413
450
|
│ Թեթև և արագ մոդելներ (պարզ հարցեր) │
|
|
414
|
-
│ [0] google/gemini-2.5-flash
|
|
451
|
+
│ [0] google/gemini-2.5-flash │
|
|
415
452
|
│ [1] google/gemma-3-27b-it │
|
|
416
453
|
│ [2] meta-llama/llama-3.1-8b-instruct │
|
|
417
454
|
│ [3] mistralai/mistral-7b-instruct │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: numpy_fast
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Python AI toolkit — max, min, mean functions powered by top AI models
|
|
5
5
|
Author-email: Karen_Poghosyan_042009 <karenpoghosyan242@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/karen/numpy_fast
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|