py-dbms-cli 3.0.0.2__tar.gz → 3.0.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.
Files changed (27) hide show
  1. {py_dbms_cli-3.0.0.2/py_dbms_cli.egg-info → py_dbms_cli-3.0.2}/PKG-INFO +1 -1
  2. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2/py_dbms_cli.egg-info}/PKG-INFO +1 -1
  3. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/core.py +5 -7
  4. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/db/mysql.py +4 -4
  5. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pyproject.toml +1 -1
  6. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/LICENSE +0 -0
  7. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/MANIFEST.in +0 -0
  8. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/README.md +0 -0
  9. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/py_dbms_cli.egg-info/SOURCES.txt +0 -0
  10. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/py_dbms_cli.egg-info/dependency_links.txt +0 -0
  11. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/py_dbms_cli.egg-info/entry_points.txt +0 -0
  12. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/py_dbms_cli.egg-info/requires.txt +0 -0
  13. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/py_dbms_cli.egg-info/top_level.txt +0 -0
  14. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/Global.py +0 -0
  15. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/__init__.py +0 -0
  16. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/cli.py +0 -0
  17. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/config.py +0 -0
  18. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/db/db_base.py +0 -0
  19. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/db/db_manager.py +0 -0
  20. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/dependencies.py +0 -0
  21. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/export/export_base.py +0 -0
  22. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/export/export_csv.py +0 -0
  23. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/export/export_manager.py +0 -0
  24. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/profile.py +0 -0
  25. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/pydbms_mysql.py +0 -0
  26. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/pydbms/pydbms_path.py +0 -0
  27. {py_dbms_cli-3.0.0.2 → py_dbms_cli-3.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-dbms-cli
3
- Version: 3.0.0.2
3
+ Version: 3.0.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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-dbms-cli
3
- Version: 3.0.0.2
3
+ Version: 3.0.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
@@ -25,11 +25,13 @@ def print_banner() -> None:
25
25
  banner_table.add_column("1", justify="center", ratio=1)
26
26
  banner_table.add_column("2", justify="center", ratio=1)
27
27
  banner_table.add_column("3", justify="center", ratio=1)
28
+ banner_table.add_column("4", justify="center", ratio=1)
28
29
 
29
30
  banner_table.add_row(
31
+ "[bold cyan] v3.0.0[/]\n[bold white]Version[/]",
30
32
  "[bold yellow]MySQL[/]\n[bold white]Currently Supported[/]",
31
33
  "[bold green]Online since 2025[/]\n[bold white]Status[/]",
32
- "[bold magenta] Experimental[/]\n[bold white]Release[/]"
34
+ "[bold magenta]Experimental[/]\n[bold white]Release[/]"
33
35
  )
34
36
 
35
37
  author = Text("Anish Sethi • Delhi Technological University • Class of 2029", style="bright_white")
@@ -154,7 +156,7 @@ def meta(cmd: str, cur: object, con=None) -> None:
154
156
  info.add_column("", style="dim white")
155
157
 
156
158
  info.add_row("Name", "[link=https://github.com/Anish-Sethi-12122/py-dbms-cli]pydbms Terminal[/link]")
157
- info.add_row("Version", "v3.0.4")
159
+ info.add_row("Version", "v3.0.0")
158
160
  info.add_row("Build", "Experimental Release")
159
161
  info.add_row("Python", f"[link=https://www.python.org/]{sys.version.split()[0]}[/link]")
160
162
  info.add_row("MySQL", f"[link=https://www.mysql.com/]{con.get_server_info()}[/link]")
@@ -381,13 +383,9 @@ def main():
381
383
  console.print()
382
384
 
383
385
  con, cur = connect_db.driver("mysql", config)
384
- console.print()
385
- while not con or not cur:
386
- con, cur = connect_db.driver("mysql", config)
387
386
 
388
- Print("\n\nIf you are unsure where to start, here are some helper commands.\n\n", "YELLOW")
387
+ Print("If you are unsure where to start, here are some helper commands.", "YELLOW")
389
388
  meta(".help",cur)
390
- console.print()
391
389
 
392
390
  while True:
393
391
  query = get_query_mysql()
@@ -22,7 +22,7 @@ class MySQLConnector(DBConnector):
22
22
 
23
23
  self.password = pwinput.pwinput("pydbms> Enter password: ", "*")
24
24
 
25
- def connect(self) -> tuple[object, object] | tuple[None, None]:
25
+ def connect(self):
26
26
  try:
27
27
  self.connection = mysql.connect(
28
28
  host=self.host,
@@ -34,6 +34,6 @@ class MySQLConnector(DBConnector):
34
34
  Print("✅ Login successful.", "GREEN")
35
35
  return self.connection, self.cursor
36
36
 
37
- except mysql.Error:
38
- Print(f"❌ Incorrect Password entered. Try again", "RED", "bold")
39
- return None, None
37
+ except mysql.Error as e:
38
+ Print(f"❌ {e}", "RED", "bold")
39
+ sys.exit()
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "py-dbms-cli"
7
- version = "3.0.0.2"
7
+ version = "3.0.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
File without changes