dmddl 0.2.3__tar.gz → 0.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dmddl
3
- Version: 0.2.3
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
- # dmddl
17
- cli app that generates dml script from ddl
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
 
dmddl-0.2.4/README.md ADDED
@@ -0,0 +1,19 @@
1
+
2
+ <h1 align="center">
3
+ <span style="color:#FFA566">⚙️DM</span>DD<span style="color:#FFA566">L⚙️</span>
4
+ </h1>
5
+ <div align="center">
6
+ <a href = "https://opensource.org/licenses/MIT">
7
+ <img src="https://img.shields.io/badge/License-MIT-yellow.svg">
8
+ </a>
9
+ </div>
10
+ <img src=".github/dmddl%20logo_3.png" align="center">
11
+
12
+ <h3 align="center">
13
+ CLI app that generates insertion script from DDL
14
+ </h3>
15
+
16
+ ---
17
+ <h2>
18
+ 🖥 Installation
19
+ </h2>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dmddl"
3
- version = "0.2.3"
3
+ version = "0.2.4"
4
4
  description = "cli tool for creating insert export POETRY_PYPI_TOKEN_PYP script from ddl script"
5
5
  authors = [
6
6
  {name = "HoJLter",email = "hojlter.work@gmail.com"}
@@ -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
 
dmddl-0.2.3/README.md DELETED
@@ -1,2 +0,0 @@
1
- # dmddl
2
- cli app that generates dml script from ddl
@@ -1,2 +0,0 @@
1
- # Automatically created by ruff.
2
- *
@@ -1 +0,0 @@
1
- Signature: 8a477f597d28d172789f06886806bc55
@@ -1,2 +0,0 @@
1
- DMDDL_CUR_PROVIDER='OpenAI'
2
- DMDDL_LLM_KEY='sk-proj-n2Oy8UNsq0edmgir-YvHAUhRQefHk5SaB93-1pQs6fEwbrdHmxT3BlbkFJPxHAdo7S6T9j-JyI-DBWizRrl4Pb7mDYRhG93yMeN7JFCGVMpPotPRIlGBO_CZKtMGC_F33_kA'
File without changes
File without changes
File without changes
File without changes