velocity-python 0.0.87__tar.gz → 0.0.89__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.

Potentially problematic release.


This version of velocity-python might be problematic. Click here for more details.

Files changed (70) hide show
  1. {velocity_python-0.0.87 → velocity_python-0.0.89}/PKG-INFO +1 -1
  2. {velocity_python-0.0.87 → velocity_python-0.0.89}/pyproject.toml +1 -1
  3. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/__init__.py +1 -1
  4. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/amplify.py +0 -1
  5. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/engine.py +0 -12
  6. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/tablehelper.py +8 -2
  7. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity_python.egg-info/PKG-INFO +1 -1
  8. {velocity_python-0.0.87 → velocity_python-0.0.89}/LICENSE +0 -0
  9. {velocity_python-0.0.87 → velocity_python-0.0.89}/README.md +0 -0
  10. {velocity_python-0.0.87 → velocity_python-0.0.89}/setup.cfg +0 -0
  11. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/app/__init__.py +0 -0
  12. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/app/invoices.py +0 -0
  13. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/app/orders.py +0 -0
  14. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/app/payments.py +0 -0
  15. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/app/purchase_orders.py +0 -0
  16. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/__init__.py +0 -0
  17. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/handlers/__init__.py +0 -0
  18. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/handlers/context.py +0 -0
  19. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/handlers/lambda_handler.py +0 -0
  20. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/handlers/response.py +0 -0
  21. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/aws/handlers/sqs_handler.py +0 -0
  22. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/__init__.py +0 -0
  23. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/__init__.py +0 -0
  24. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/column.py +0 -0
  25. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/database.py +0 -0
  26. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/decorators.py +0 -0
  27. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/exceptions.py +0 -0
  28. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/result.py +0 -0
  29. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/row.py +0 -0
  30. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/sequence.py +0 -0
  31. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/table.py +0 -0
  32. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/core/transaction.py +0 -0
  33. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/__init__.py +0 -0
  34. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/mysql.py +0 -0
  35. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/mysql_reserved.py +0 -0
  36. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/postgres/__init__.py +0 -0
  37. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/postgres/operators.py +0 -0
  38. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/postgres/reserved.py +0 -0
  39. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/postgres/sql.py +0 -0
  40. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/postgres/types.py +0 -0
  41. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/sqlite.py +0 -0
  42. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/sqlite_reserved.py +0 -0
  43. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/sqlserver.py +0 -0
  44. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/db/servers/sqlserver_reserved.py +0 -0
  45. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/__init__.py +0 -0
  46. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/conv/__init__.py +0 -0
  47. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/conv/iconv.py +0 -0
  48. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/conv/oconv.py +0 -0
  49. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/db.py +0 -0
  50. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/export.py +0 -0
  51. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/format.py +0 -0
  52. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/mail.py +0 -0
  53. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/merge.py +0 -0
  54. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/timer.py +0 -0
  55. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity/misc/tools.py +0 -0
  56. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity_python.egg-info/SOURCES.txt +0 -0
  57. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity_python.egg-info/dependency_links.txt +0 -0
  58. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity_python.egg-info/requires.txt +0 -0
  59. {velocity_python-0.0.87 → velocity_python-0.0.89}/src/velocity_python.egg-info/top_level.txt +0 -0
  60. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_db.py +0 -0
  61. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_email_processing.py +0 -0
  62. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_format.py +0 -0
  63. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_iconv.py +0 -0
  64. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_merge.py +0 -0
  65. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_oconv.py +0 -0
  66. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_postgres.py +0 -0
  67. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_response.py +0 -0
  68. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_spreadsheet_functions.py +0 -0
  69. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_sql_builder.py +0 -0
  70. {velocity_python-0.0.87 → velocity_python-0.0.89}/tests/test_timer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: velocity-python
3
- Version: 0.0.87
3
+ Version: 0.0.89
4
4
  Summary: A rapid application development library for interfacing with data storage
5
5
  Author-email: Paul Perez <pperez@codeclubs.org>
6
6
  Project-URL: Homepage, https://codeclubs.org/projects/velocity
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "velocity-python"
3
- version = "0.0.87"
3
+ version = "0.0.89"
4
4
  authors = [
5
5
  { name="Paul Perez", email="pperez@codeclubs.org" },
6
6
  ]
@@ -1,4 +1,4 @@
1
- __version__ = version = "0.0.87"
1
+ __version__ = version = "0.0.89"
2
2
 
3
3
  from . import aws
4
4
  from . import db
@@ -325,7 +325,6 @@ class AmplifyProject:
325
325
  "ec2:AttachNetworkInterface",
326
326
  "ec2:DescribeNetworkInterfaces",
327
327
  "ec2:DeleteNetworkInterface",
328
- "autoscaling:CompleteLifecycleAction",
329
328
  "cognito-idp:*",
330
329
  ],
331
330
  }
@@ -56,18 +56,12 @@ class Engine:
56
56
  config = self.config.copy()
57
57
  if timeout_key not in config:
58
58
  config[timeout_key] = timeout_val
59
- logger.info(
60
- "Connecting to %s with dict config: %s", self.sql.server, config
61
- )
62
59
  return self.driver.connect(**config)
63
60
 
64
61
  elif isinstance(self.config, str):
65
62
  conn_str = self.config
66
63
  if timeout_key not in conn_str:
67
64
  conn_str += f" {timeout_key}={timeout_val}"
68
- logger.info(
69
- "Connecting to %s with str config: %s", self.sql.server, conn_str
70
- )
71
65
  return self.driver.connect(conn_str)
72
66
 
73
67
  elif isinstance(self.config, (tuple, list)):
@@ -77,12 +71,6 @@ class Engine:
77
71
  config_args[-1][timeout_key] = timeout_val
78
72
  else:
79
73
  config_args.append({timeout_key: timeout_val})
80
-
81
- logger.info(
82
- "Connecting to %s with tuple/list config (with timeout): %s",
83
- self.sql.server,
84
- config_args,
85
- )
86
74
  return self.driver.connect(*config_args)
87
75
 
88
76
  else:
@@ -246,9 +246,15 @@ class TableHelper:
246
246
 
247
247
  # Lists / tuples => IN / NOT IN
248
248
  if isinstance(val, (list, tuple)) and "><" not in key:
249
+ # Convert to tuple for better PostgreSQL parameter handling
250
+ val_tuple = tuple(val)
251
+ # Use IN/NOT IN instead of ANY for better type compatibility
249
252
  if "!" in key:
250
- return f"{column} != ANY(%s)", list(val)
251
- return f"{column} = ANY(%s)", list(val)
253
+ placeholders = ",".join(["%s"] * len(val_tuple))
254
+ return f"{column} NOT IN ({placeholders})", val_tuple
255
+ else:
256
+ placeholders = ",".join(["%s"] * len(val_tuple))
257
+ return f"{column} IN ({placeholders})", val_tuple
252
258
 
253
259
  # "@@" => pass as literal
254
260
  if isinstance(val, str) and val.startswith("@@") and val[2:]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: velocity-python
3
- Version: 0.0.87
3
+ Version: 0.0.89
4
4
  Summary: A rapid application development library for interfacing with data storage
5
5
  Author-email: Paul Perez <pperez@codeclubs.org>
6
6
  Project-URL: Homepage, https://codeclubs.org/projects/velocity