dmddl 0.2.2__py3-none-any.whl → 0.2.4__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.
- dmddl/cli.py +3 -3
- dmddl/models/llm.py +5 -1
- {dmddl-0.2.2.dist-info → dmddl-0.2.4.dist-info}/METADATA +20 -3
- dmddl-0.2.4.dist-info/RECORD +12 -0
- dmddl/.ruff_cache/.gitignore +0 -2
- dmddl/.ruff_cache/0.11.9/1354378795363258161 +0 -0
- dmddl/.ruff_cache/CACHEDIR.TAG +0 -1
- dmddl/config/.env +0 -2
- dmddl-0.2.2.dist-info/RECORD +0 -16
- {dmddl-0.2.2.dist-info → dmddl-0.2.4.dist-info}/LICENSE +0 -0
- {dmddl-0.2.2.dist-info → dmddl-0.2.4.dist-info}/WHEEL +0 -0
- {dmddl-0.2.2.dist-info → dmddl-0.2.4.dist-info}/entry_points.txt +0 -0
dmddl/cli.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import questionary
|
2
|
-
from config.settings import LLMSettings
|
2
|
+
from dmddl.config.settings import LLMSettings
|
3
3
|
from rich import print
|
4
4
|
from rich.syntax import Syntax
|
5
5
|
from rich.console import Console
|
6
|
-
from models.llm import openai_request
|
7
|
-
from models.prompt import prompt as base_prompt
|
6
|
+
from dmddl.models.llm import openai_request
|
7
|
+
from dmddl.models.prompt import prompt as base_prompt
|
8
8
|
import argparse
|
9
9
|
import sys
|
10
10
|
|
dmddl/models/llm.py
CHANGED
@@ -16,6 +16,10 @@ def openai_request(prompt, api_key):
|
|
16
16
|
]
|
17
17
|
}
|
18
18
|
response = requests.post(url=url, headers=headers, json=data)
|
19
|
+
try:
|
20
|
+
return response.json()['choices'][0]['message']['content']
|
21
|
+
except KeyError as e:
|
22
|
+
print(f"[red bold] Error: {e}.\n Check output.txt file.")
|
23
|
+
return response.json()
|
19
24
|
|
20
|
-
return response.json()['choices'][0]['message']['content']
|
21
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: dmddl
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.4
|
4
4
|
Summary: cli tool for creating insert export POETRY_PYPI_TOKEN_PYP script from ddl script
|
5
5
|
License: MIT
|
6
6
|
Author: HoJLter
|
@@ -13,6 +13,23 @@ Requires-Dist: pydantic (>=2.11.4,<3.0.0)
|
|
13
13
|
Requires-Dist: pydantic-settings (>=2.9.1,<3.0.0)
|
14
14
|
Description-Content-Type: text/markdown
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
|
17
|
+
<h1 align="center">
|
18
|
+
<span style="color:#FFA566">⚙️DM</span>DD<span style="color:#FFA566">L⚙️</span>
|
19
|
+
</h1>
|
20
|
+
<div align="center">
|
21
|
+
<a href = "https://opensource.org/licenses/MIT">
|
22
|
+
<img src="https://img.shields.io/badge/License-MIT-yellow.svg">
|
23
|
+
</a>
|
24
|
+
</div>
|
25
|
+
<img src=".github/dmddl%20logo_3.png" align="center">
|
26
|
+
|
27
|
+
<h3 align="center">
|
28
|
+
CLI app that generates insertion script from DDL
|
29
|
+
</h3>
|
30
|
+
|
31
|
+
---
|
32
|
+
<h2>
|
33
|
+
🖥 Installation
|
34
|
+
</h2>
|
18
35
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
dmddl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
dmddl/cli.py,sha256=WcQxxlNagz8WKD_5ewf1zyVm9E2cAn8eqTHd5O47ICw,3064
|
3
|
+
dmddl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
dmddl/config/settings.py,sha256=lhzKyPYf20Cp_WUXZd8CRMGLJp6xql9ESuEGm6lxUAc,1151
|
5
|
+
dmddl/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
dmddl/models/llm.py,sha256=7L4zFBsF4U6rhZ2ZiCg727WngIOKT2Ik_AuhmZzzcRs,694
|
7
|
+
dmddl/models/prompt.py,sha256=7cjWC-mQJR32jc0a0GsyoYDZWROB57Yk4Wy4nRsiFoM,1923
|
8
|
+
dmddl-0.2.4.dist-info/entry_points.txt,sha256=87tyUAFcB9RYRLhYyxroZxcTho-o3IGXnMM4uMGKdV4,40
|
9
|
+
dmddl-0.2.4.dist-info/LICENSE,sha256=C--Tlk2EXyLEz1DSTQFKOo-WblCPTsxPcd8t63NCauw,1090
|
10
|
+
dmddl-0.2.4.dist-info/METADATA,sha256=JXda4iw4v-4JxZQsxRSaF9BJwPZ1i507Fzikd1ZKerQ,963
|
11
|
+
dmddl-0.2.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
12
|
+
dmddl-0.2.4.dist-info/RECORD,,
|
dmddl/.ruff_cache/.gitignore
DELETED
Binary file
|
dmddl/.ruff_cache/CACHEDIR.TAG
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Signature: 8a477f597d28d172789f06886806bc55
|
dmddl/config/.env
DELETED
dmddl-0.2.2.dist-info/RECORD
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
dmddl/.ruff_cache/.gitignore,sha256=njpg8ebsSuYCFcEdVLFxOSdF7CXp3e1DPVvZITY68xY,35
|
2
|
-
dmddl/.ruff_cache/0.11.9/1354378795363258161,sha256=L3hDS6FRTSJLyZSY-GZ75mpl9wiuFnMN9ESaojdTGoM,465
|
3
|
-
dmddl/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
|
4
|
-
dmddl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
dmddl/cli.py,sha256=ydmx10NqqWicjhftpfvmlk8o8pj7fIE0v73Ki2LCgtc,3046
|
6
|
-
dmddl/config/.env,sha256=Rmfoj3ZeLwT_YV3BLiY0AKGhUaJfAOXzRSI8RENjOlE,187
|
7
|
-
dmddl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
dmddl/config/settings.py,sha256=lhzKyPYf20Cp_WUXZd8CRMGLJp6xql9ESuEGm6lxUAc,1151
|
9
|
-
dmddl/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
dmddl/models/llm.py,sha256=YMmfBq4OGUvCxx0sXpBFUtEvxc36PYIO6tS7ULZFFi4,554
|
11
|
-
dmddl/models/prompt.py,sha256=7cjWC-mQJR32jc0a0GsyoYDZWROB57Yk4Wy4nRsiFoM,1923
|
12
|
-
dmddl-0.2.2.dist-info/entry_points.txt,sha256=87tyUAFcB9RYRLhYyxroZxcTho-o3IGXnMM4uMGKdV4,40
|
13
|
-
dmddl-0.2.2.dist-info/LICENSE,sha256=C--Tlk2EXyLEz1DSTQFKOo-WblCPTsxPcd8t63NCauw,1090
|
14
|
-
dmddl-0.2.2.dist-info/METADATA,sha256=bQm3q4VHA_5TAUqtqKz0IZnb9ARmEvtIyLN1B8PWVqY,564
|
15
|
-
dmddl-0.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
16
|
-
dmddl-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|