dmddl 0.2.19__py3-none-any.whl → 0.2.21__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 CHANGED
@@ -135,7 +135,7 @@ def main():
135
135
  for proxy in proxies:
136
136
  print(f"[yellow bold]- {proxy}")
137
137
  else:
138
- print("[red bold] Proxy does not found :( \n Try again later. (it really helps)")
138
+ raise Exception("Proxy does not found :( \n Try again later. (it really helps)")
139
139
 
140
140
 
141
141
 
dmddl/config/proxy.py CHANGED
@@ -20,7 +20,7 @@ def get_proxy_list():
20
20
 
21
21
  async def test_request(url, proxy, session):
22
22
  try:
23
- async with session.get(url, proxy=proxy, timeout=5) as response:
23
+ async with session.get(url, proxy=proxy, timeout=15) as response:
24
24
  return proxy
25
25
  except:
26
26
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dmddl
3
- Version: 0.2.19
3
+ Version: 0.2.21
4
4
  Summary: cli tool for creating insert script from ddl script
5
5
  License: MIT
6
6
  Author: HoJLter
@@ -41,16 +41,33 @@ To install DMDDL you may use pip:
41
41
 
42
42
  <img src=".github/pip_install.png" align="center">
43
43
 
44
+
44
45
  <h2>
45
- How to use it?
46
+ 💡 How to use it?
46
47
  </h2>
48
+ Firstly, you need to configure DMDDL using -c argument:
49
+ <br>
50
+ (you can get api key from [OpenAI](https://platform.openai.com/api-keys))
51
+
52
+ <br>
53
+
54
+ <img src="configuring.gif" align="center">
55
+
56
+ Now you can use the app. Provide -s argument to specify input file:
47
57
 
48
58
 
59
+ <h2>
60
+ 🐉 For China/Russia 🪆
61
+ </h2>
62
+
63
+ OpenAI API blocked in this countries, but you can use -ps arguments. <br>
64
+ DMDDL will find proxy for you to make request
49
65
 
50
66
  <h2>
51
67
  🤝 Contributing
52
68
  </h2>
53
69
 
54
70
  If you would like to contribute to this project, welcome to issues.
55
- (if i don't answer, you can email me)
71
+ <br>(if i don't answer, you can email me)
72
+
56
73
 
@@ -1,13 +1,13 @@
1
1
  dmddl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- dmddl/cli.py,sha256=BlhXfRKMfmxFoOn2xhnHOhJivQQ6KUR7Gy6WDDIdJPk,4523
2
+ dmddl/cli.py,sha256=JIeUb8tVeHNGvnSQH77EXhWVGwvh1H1UotAWHv3-FQI,4522
3
3
  dmddl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- dmddl/config/proxy.py,sha256=afLxRWnQB3uqtu6U1Jf3o8uVjy6Qc4wB09tRlqbjae8,1062
4
+ dmddl/config/proxy.py,sha256=SSMviuSlJ9l8C_-nT2vcxKEWUBJoaAweszVehzwDYUU,1063
5
5
  dmddl/config/settings.py,sha256=2xRMW9sjc3aro2QUGLMhKQGdAuCMkc5n6G23iXrkyMo,1261
6
6
  dmddl/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  dmddl/models/llm.py,sha256=ruW57MEwscWtCWe6MvfGP0FGvuRJlVWM12c-W0IS1_c,1354
8
8
  dmddl/models/prompt.py,sha256=7cjWC-mQJR32jc0a0GsyoYDZWROB57Yk4Wy4nRsiFoM,1923
9
- dmddl-0.2.19.dist-info/entry_points.txt,sha256=87tyUAFcB9RYRLhYyxroZxcTho-o3IGXnMM4uMGKdV4,40
10
- dmddl-0.2.19.dist-info/LICENSE,sha256=C--Tlk2EXyLEz1DSTQFKOo-WblCPTsxPcd8t63NCauw,1090
11
- dmddl-0.2.19.dist-info/METADATA,sha256=AdpkB8z7Xb1rDRIXguhMuQDTlzPufsUAa1SyJO4Aiy4,1348
12
- dmddl-0.2.19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
- dmddl-0.2.19.dist-info/RECORD,,
9
+ dmddl-0.2.21.dist-info/entry_points.txt,sha256=87tyUAFcB9RYRLhYyxroZxcTho-o3IGXnMM4uMGKdV4,40
10
+ dmddl-0.2.21.dist-info/LICENSE,sha256=C--Tlk2EXyLEz1DSTQFKOo-WblCPTsxPcd8t63NCauw,1090
11
+ dmddl-0.2.21.dist-info/METADATA,sha256=wm_Dq87MK7gprWpC62Up_ZcKYZanYni-Ue-o3jtE0-4,1778
12
+ dmddl-0.2.21.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
+ dmddl-0.2.21.dist-info/RECORD,,
File without changes