py-dbms-cli 2.1.1__tar.gz → 2.1.2__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.4
2
2
  Name: py-dbms-cli
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: A modern, secure, aesthetic and your ultimate DBMS client. Implemented as a CLI (Command-Line Interface) tool and written 100% in Python
5
5
  Author-email: Anish Sethi <sethi.dynasty123@gmail.com>
6
6
  License: Copyright 2025 Anish Sethi
@@ -27,7 +27,8 @@ Requires-Dist: sqlparse
27
27
  Requires-Dist: pwinput
28
28
  Dynamic: license-file
29
29
 
30
- **EXPERIMENTAL RELEASE**
30
+ **STABLE RELEASE**
31
+ ### v2.1.2
31
32
 
32
33
  PY DBMS — A Modern, Secure, All-in-One DBMS CLI Client
33
34
 
@@ -120,6 +121,9 @@ Command Description
120
121
  .schema <table> Show CREATE TABLE definition
121
122
  .clear Clear the screen
122
123
  .version Show build/version info
124
+ .config Show config settings for pydbms
125
+ .config set <>.<> <> Set config to a value
126
+ .config reset <>.<> Reset config to a default
123
127
  .exit Exit the CLI
124
128
 
125
129
  Roadmap
@@ -1,4 +1,5 @@
1
- **EXPERIMENTAL RELEASE**
1
+ **STABLE RELEASE**
2
+ ### v2.1.2
2
3
 
3
4
  PY DBMS — A Modern, Secure, All-in-One DBMS CLI Client
4
5
 
@@ -91,6 +92,9 @@ Command Description
91
92
  .schema <table> Show CREATE TABLE definition
92
93
  .clear Clear the screen
93
94
  .version Show build/version info
95
+ .config Show config settings for pydbms
96
+ .config set <>.<> <> Set config to a value
97
+ .config reset <>.<> Reset config to a default
94
98
  .exit Exit the CLI
95
99
 
96
100
  Roadmap
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-dbms-cli
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: A modern, secure, aesthetic and your ultimate DBMS client. Implemented as a CLI (Command-Line Interface) tool and written 100% in Python
5
5
  Author-email: Anish Sethi <sethi.dynasty123@gmail.com>
6
6
  License: Copyright 2025 Anish Sethi
@@ -27,7 +27,8 @@ Requires-Dist: sqlparse
27
27
  Requires-Dist: pwinput
28
28
  Dynamic: license-file
29
29
 
30
- **EXPERIMENTAL RELEASE**
30
+ **STABLE RELEASE**
31
+ ### v2.1.2
31
32
 
32
33
  PY DBMS — A Modern, Secure, All-in-One DBMS CLI Client
33
34
 
@@ -120,6 +121,9 @@ Command Description
120
121
  .schema <table> Show CREATE TABLE definition
121
122
  .clear Clear the screen
122
123
  .version Show build/version info
124
+ .config Show config settings for pydbms
125
+ .config set <>.<> <> Set config to a value
126
+ .config reset <>.<> Reset config to a default
123
127
  .exit Exit the CLI
124
128
 
125
129
  Roadmap
@@ -2,7 +2,7 @@
2
2
  PY DBMS — DB client CLI
3
3
  Copyright (C) 2025 Anish Sethi
4
4
  Licensed under - BSD-3-Clause License
5
- Version - 2.1.1 #NOTE: v2.1.0 had a bug while uploading to PyPI, hence v2.1.1 has been taken for stable release.
5
+ Version - 2.1.2 #NOTE: v2.1.0 had a bug while uploading to PyPI, hence v2.1.1 has been taken for stable release.
6
6
  Release - Stable
7
7
  '''
8
8
 
@@ -22,7 +22,7 @@ def print_banner() -> None:
22
22
  stats_table.add_column("3", justify="center", ratio=1)
23
23
 
24
24
  stats_table.add_row(
25
- "[bold cyan]v2.1.1[/]\n[bold white]Version[/]",
25
+ "[bold cyan]v2.1.2[/]\n [bold white]Version[/]",
26
26
  "[bold yellow]MySQL[/]\n[bold white]Currently Supported[/]",
27
27
  "[bold green]Online since 2025[/]\n[bold white]Status[/]"
28
28
  )
@@ -138,7 +138,7 @@ def meta(cmd: str, cur: object, con=None) -> None:
138
138
  info.add_column("", style="dim white")
139
139
 
140
140
  info.add_row("Name", "[link=https://github.com/Anish-Sethi-12122/py-dbms-cli]pydbms Terminal[/link]")
141
- info.add_row("Version", "v2.1.1")
141
+ info.add_row("Version", "v2.1.2")
142
142
  info.add_row("Build", "Stable Release")
143
143
  info.add_row("Python", f"[link=https://www.python.org/]{sys.version.split()[0]}[/link]")
144
144
  info.add_row("MySQL", f"[link=https://www.mysql.com/]{con.get_server_info()}[/link]")
@@ -193,6 +193,7 @@ def meta(cmd: str, cur: object, con=None) -> None:
193
193
 
194
194
  if len(parts) != 4:
195
195
  Print("Usage: .config set <section>.<key> <value>", "YELLOW")
196
+ console.print()
196
197
  return
197
198
 
198
199
  _, _, path, raw_value = parts
@@ -201,12 +202,16 @@ def meta(cmd: str, cur: object, con=None) -> None:
201
202
 
202
203
  if not parsed:
203
204
  Print("Invalid input format. Use <section>.<key>", "RED")
205
+ console.print()
204
206
  return
205
207
 
206
208
  section, key = parsed
209
+ section=section.lower()
210
+ key=key.lower()
207
211
 
208
212
  if section not in config or key not in config[section]:
209
213
  Print(f"Unknown config key: {path}", "RED")
214
+ console.print()
210
215
  return
211
216
 
212
217
  value = coerce_value_config(raw_value)
@@ -214,6 +219,7 @@ def meta(cmd: str, cur: object, con=None) -> None:
214
219
  save_config(config)
215
220
 
216
221
  Print(f"Updated {path} → {value}", "GREEN")
222
+ console.print()
217
223
  return
218
224
 
219
225
  # .config reset or .config -d or .config --default
@@ -222,6 +228,7 @@ def meta(cmd: str, cur: object, con=None) -> None:
222
228
 
223
229
  if len(parts) != 3:
224
230
  Print("Usage: .config reset <section>.<key>", "YELLOW")
231
+ console.print()
225
232
  return
226
233
 
227
234
  path = parts[2]
@@ -229,27 +236,34 @@ def meta(cmd: str, cur: object, con=None) -> None:
229
236
 
230
237
  if not parsed:
231
238
  Print("Invalid config key format. Use <section>.<key>", "RED")
239
+ console.print()
232
240
  return
233
241
 
234
242
  section, key = parsed
243
+ section=section.lower()
244
+ key=key.lower()
235
245
  default = get_default_value_config(section, key)
236
246
 
237
247
  if default is None:
238
248
  Print(f"No default value for {path}.", "RED")
249
+ console.print()
239
250
  return
240
251
 
241
252
  config[section][key] = default
242
253
  save_config(config)
243
254
 
244
255
  Print(f"Reset {path} → {default}", "GREEN")
256
+ console.print()
245
257
  return
246
258
 
247
259
  # .exit
248
260
  if cmd == ".exit":
249
261
  Print("Session Terminated.", "RED", "bold")
262
+ console.print()
250
263
  sys.exit()
251
264
 
252
265
  Print(f"Unknown command: {cmd}\nRefer to `.help` for list of commands", "YELLOW")
266
+ console.print()
253
267
 
254
268
  def main():
255
269
  global config
@@ -260,7 +274,8 @@ def main():
260
274
  con, cur = connect()
261
275
 
262
276
  Print("Welcome to PY DBMS. If you are unsure where to start, here are some helper commands.", "YELLOW")
263
- print("\n\n")
277
+ console.print()
278
+ console.print()
264
279
  meta(".help",cur)
265
280
 
266
281
  while True:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "py-dbms-cli"
7
- version = "2.1.1"
7
+ version = "2.1.2"
8
8
  description = "A modern, secure, aesthetic and your ultimate DBMS client. Implemented as a CLI (Command-Line Interface) tool and written 100% in Python"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
File without changes
File without changes
File without changes
File without changes