numplot 1.0.0__py3-none-any.whl → 1.0.2__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.
numplot/__init__.py CHANGED
@@ -3,8 +3,9 @@ from .task_2 import t_2
3
3
  from .task_3 import t_3
4
4
  from .task_4 import t_4
5
5
  from .task_5 import t_5
6
+ from .task_a import w
6
7
 
7
- __all__ = ['t_1', 't_2', 't_3', 't_4', 't_5']
8
+ __all__ = ['t_1', 't_2', 't_3', 't_4', 't_5', 'w']
8
9
 
9
10
  def h():
10
11
  text = """
@@ -13,5 +14,6 @@ t_2 ()
13
14
  t_3 ()
14
15
  t_4 ()
15
16
  t_5 ()
17
+ w ()
16
18
  """
17
- return text
19
+ return text
numplot/task_a.py ADDED
@@ -0,0 +1,39 @@
1
+ from urllib import response
2
+
3
+ import requests
4
+ import os
5
+
6
+ def w(prompt: str) -> str:
7
+ key = "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"
8
+
9
+ SYSTEM_PROMPT = """
10
+ Ты — сильный помощник по программированию и анализу.
11
+
12
+ Правила:
13
+ - Если пользователь просит код, возвращай только готовый код.
14
+ - Не используй Markdown, пояснения, вступления и блоки ``` .
15
+ - Не пиши TODO, pass, заглушки и неполные решения.
16
+ - Код должен быть полностью готов к запуску.
17
+ - Добавляй все нужные импорты.
18
+ - Если задача про эксперимент, метрики, обучение или обработку данных — делай решение полностью.
19
+ - Если задача требует текста, возвращай только готовый текст без лишних слов.
20
+ - Если есть несколько вариантов, выбирай самый практичный.
21
+ """.strip()
22
+
23
+ url = "https://openrouter.ai/api/v1/chat/completions"
24
+
25
+ headers = {
26
+ "Authorization": f"Bearer {key}",
27
+ "Content-Type": "application/json",
28
+ }
29
+
30
+ payload = {
31
+ "model": "deepseek/deepseek-v3.2-exp",
32
+ "messages": [
33
+ {"role": "system", "content": SYSTEM_PROMPT},
34
+ {"role": "user", "content": prompt.strip()},
35
+ ],
36
+ "reasoning": {"enabled": True},
37
+ }
38
+
39
+ return response.json()["choices"][0]["message"]["content"]
@@ -1,23 +1,13 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.1
2
2
  Name: numplot
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Package mathstats contains mathematical and statistical functions, distributions, tests
5
5
  Author: amogusbazed
6
6
  Author-email: amogusbazed@gmail.com
7
7
  Keywords: files speedfiles
8
- Classifier: Programming Language :: Python :: 3.13
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
8
  Requires-Python: >=3.6
12
9
  Description-Content-Type: text/markdown
13
- Dynamic: author
14
- Dynamic: author-email
15
- Dynamic: classifier
16
- Dynamic: description
17
- Dynamic: description-content-type
18
- Dynamic: keywords
19
- Dynamic: requires-python
20
- Dynamic: summary
10
+ Requires-Dist: requests >=2.28.0
21
11
 
22
12
  # Numplot File Library #
23
13
 
@@ -1,4 +1,4 @@
1
- numplot/__init__.py,sha256=lGRCtFNu-SoKLQ2sswr_d91DDPa_gykVckgZOs9pXEs,268
1
+ numplot/__init__.py,sha256=v_7eeRqPZNwvcSNNoLxZ4NMtxJekHi_3Shg6tmbkP4g,300
2
2
  numplot/task_1.py,sha256=2qdCfSM1oVy_kgTxPqEKXKhywUEEQPFVm3u2WaSwVJY,60508
3
3
  numplot/task_2.py,sha256=87-RlyJWMlMA3VsvEcyoC9xKVZTSkQcZbtxBL5eSDF8,55845
4
4
  numplot/task_3.py,sha256=oQLFsAYyJ8uhTx095lzjmgkQ-h06bz2jOAonEmAxP1I,43352
@@ -7,7 +7,8 @@ numplot/task_5.py,sha256=0__ns8_ZTHFz_VVuE00lTNjOMibV5MVxZvciczSt2-0,9005
7
7
  numplot/task_5_1.py,sha256=e1wrPVg3gKVGMRb0nL30aZboS-uOcprNxjjRgwIzoSc,9958
8
8
  numplot/task_5_2.py,sha256=04ExvcWTZc7ZrHgY2biURkX_TVqlstPdbtMOvqJVd3o,4157
9
9
  numplot/task_5_3.py,sha256=cgOqEnRNP-4XFldCOa5-K6KnNwK69OktH_eE_Ncy8k4,14151
10
- numplot-1.0.0.dist-info/METADATA,sha256=5jRVE9eL0wiwf4930DUIdPxX1TWLvWDw_f0onVUZzss,1021
11
- numplot-1.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
12
- numplot-1.0.0.dist-info/top_level.txt,sha256=wd3yvwOsH8IF99-WKjbfPkcXIEeCaufh-FfG7GGJo2g,8
13
- numplot-1.0.0.dist-info/RECORD,,
10
+ numplot/task_a.py,sha256=dDAgkSSPIB4UyZyS8GCwHxoVEW4_nAavNd7wLoZ_ba0,1746
11
+ numplot-1.0.2.dist-info/METADATA,sha256=L5Xt8BB-SF33Jd-ySPsaVhtZOqibQ13CEDkWNKmv-Uc,722
12
+ numplot-1.0.2.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
13
+ numplot-1.0.2.dist-info/top_level.txt,sha256=wd3yvwOsH8IF99-WKjbfPkcXIEeCaufh-FfG7GGJo2g,8
14
+ numplot-1.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (70.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5