vortex-cli 4.15.0__tar.gz → 4.15.1__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 (41) hide show
  1. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/PKG-INFO +2 -1
  2. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/README.md +1 -0
  3. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/setup.cfg +1 -1
  4. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/db.py +3 -12
  5. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/soap.py +5 -0
  6. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/workspace.py +2 -2
  7. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex_cli.egg-info/PKG-INFO +2 -1
  8. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/LICENSE +0 -0
  9. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/setup.py +0 -0
  10. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/__init__.py +0 -0
  11. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/__main__.py +0 -0
  12. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/cli.py +0 -0
  13. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/colour.py +0 -0
  14. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/__init__.py +0 -0
  15. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/clean.py +0 -0
  16. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/clone.py +0 -0
  17. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/code.py +0 -0
  18. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/config.py +0 -0
  19. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/copy.py +0 -0
  20. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/delete.py +0 -0
  21. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/docs.py +0 -0
  22. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/execute.py +0 -0
  23. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/find.py +0 -0
  24. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/grep.py +0 -0
  25. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/list.py +0 -0
  26. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/log.py +0 -0
  27. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/new.py +0 -0
  28. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/commands/watch.py +0 -0
  29. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/constants.py +0 -0
  30. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/docs/Blackbook.pdf +0 -0
  31. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/lib/puakma.jar +0 -0
  32. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/logging.py +0 -0
  33. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/main.py +0 -0
  34. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/models.py +0 -0
  35. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/spinner.py +0 -0
  36. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex/util.py +0 -0
  37. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex_cli.egg-info/SOURCES.txt +0 -0
  38. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex_cli.egg-info/dependency_links.txt +0 -0
  39. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex_cli.egg-info/entry_points.txt +0 -0
  40. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex_cli.egg-info/requires.txt +0 -0
  41. {vortex_cli-4.15.0 → vortex_cli-4.15.1}/vortex_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vortex_cli
3
- Version: 4.15.0
3
+ Version: 4.15.1
4
4
  Home-page: https://github.com/jordanamos/vortex-cli
5
5
  Author: Jordan Amos
6
6
  Author-email: jordan.amos@gmail.com
@@ -76,6 +76,7 @@ While it is possible to use without it, this software has been purposefully desi
76
76
  puakma_db_conn_id = 13
77
77
  username = myuser ; Optional - Prompted at runtime if not provided
78
78
  password = mypassword ; Optional - Prompted at runtime if not provided
79
+ ; Optional
79
80
  lib_path = ; additional jars that should be included in the classpath
80
81
  java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
81
82
  java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
@@ -54,6 +54,7 @@ While it is possible to use without it, this software has been purposefully desi
54
54
  puakma_db_conn_id = 13
55
55
  username = myuser ; Optional - Prompted at runtime if not provided
56
56
  password = mypassword ; Optional - Prompted at runtime if not provided
57
+ ; Optional
57
58
  lib_path = ; additional jars that should be included in the classpath
58
59
  java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
59
60
  java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = vortex_cli
3
- version = 4.15.0
3
+ version = 4.15.1
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
6
6
  url = https://github.com/jordanamos/vortex-cli
@@ -93,8 +93,6 @@ def _output_result(
93
93
  list_tables: bool = False,
94
94
  ) -> int:
95
95
  with server:
96
- logger.debug("Executing query")
97
- logger.debug(sql)
98
96
  result = tuple(server.database_designer.execute_query(conn_id, sql, update))
99
97
  if schema_table and not result:
100
98
  logger.error(f"Table '{schema_table}' not found in database '{db_name}'")
@@ -134,13 +132,9 @@ def _read_from_editor() -> str:
134
132
  try:
135
133
  subprocess.call(["nano", tmp_sql_file])
136
134
  with open(tmp_sql_file) as f:
137
- sql_query = f.read().strip()
138
- except Exception:
135
+ return f.read().strip()
136
+ finally:
139
137
  os.remove(tmp_sql_file)
140
- raise
141
- else:
142
- os.remove(tmp_sql_file)
143
- return sql_query
144
138
 
145
139
 
146
140
  def db(
@@ -156,10 +150,7 @@ def db(
156
150
  ) -> int:
157
151
  if sql is not None:
158
152
  if sql.strip() == "":
159
- if sys.platform == "win32":
160
- sql = None
161
- else:
162
- sql = _read_from_editor()
153
+ sql = None if sys.platform == "win32" else _read_from_editor()
163
154
  db_name = None
164
155
  conn_id = int(database)
165
156
  # If we're modifying a database, lets check that its locally
@@ -318,6 +318,7 @@ class ServerDesigner(_PuakmaSOAPService):
318
318
  def execute_command(self, command: str) -> str | None:
319
319
  operation = "executeCommand"
320
320
  params = [_SOAPParam("p1", command, _XSD_STRING)]
321
+ logger.debug(f"Executing command: {command}")
321
322
  resp = self._post(operation, params)
322
323
  return resp.text
323
324
 
@@ -338,6 +339,8 @@ class DatabaseDesigner(_PuakmaSOAPService):
338
339
  _SOAPParam("p2", query, _XSD_STRING),
339
340
  _SOAPParam("p3", is_update, _XSD_BOOLEAN),
340
341
  ]
342
+ logger.debug("Executing query")
343
+ logger.debug(query)
341
344
  resp = await self._apost(operation, params)
342
345
  col_lookup = [
343
346
  meta_row.attrib["name"] for meta_row in resp.findall(".//metadata")
@@ -367,6 +370,8 @@ class DatabaseDesigner(_PuakmaSOAPService):
367
370
  _SOAPParam("p2", query, _XSD_STRING),
368
371
  _SOAPParam("p3", is_update, _XSD_BOOLEAN),
369
372
  ]
373
+ logger.debug("Executing query")
374
+ logger.debug(query)
370
375
  resp = self._post(operation, params)
371
376
  col_lookup = [
372
377
  meta_row.attrib["name"] for meta_row in resp.findall(".//metadata")
@@ -159,10 +159,10 @@ class Workspace:
159
159
  ) -> list[Path]:
160
160
  """
161
161
  Returns a list of directories that contain a parseable
162
- .PuakmaApplication.pickle file.
162
+ .pma file.
163
163
 
164
164
  If strict is False then return directories that simply
165
- contain a .PuakmaApplication.pickle file.
165
+ contain a .pma file.
166
166
  """
167
167
  ret = []
168
168
  pattern = "**/.pma"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vortex_cli
3
- Version: 4.15.0
3
+ Version: 4.15.1
4
4
  Home-page: https://github.com/jordanamos/vortex-cli
5
5
  Author: Jordan Amos
6
6
  Author-email: jordan.amos@gmail.com
@@ -76,6 +76,7 @@ While it is possible to use without it, this software has been purposefully desi
76
76
  puakma_db_conn_id = 13
77
77
  username = myuser ; Optional - Prompted at runtime if not provided
78
78
  password = mypassword ; Optional - Prompted at runtime if not provided
79
+ ; Optional
79
80
  lib_path = ; additional jars that should be included in the classpath
80
81
  java_home = /usr/lib/jvm/java-17-openjdk-amd64/ ; The local path to the JRE to use. Should be the same version running on your server
81
82
  java_environment_name = JavaSE-17 ; Java Execution Environment name https://docs.osgi.org/reference/eenames.html
File without changes
File without changes
File without changes
File without changes
File without changes