velocity-python 0.0.28__tar.gz → 0.0.29__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 (44) hide show
  1. {velocity-python-0.0.28 → velocity-python-0.0.29}/PKG-INFO +1 -1
  2. {velocity-python-0.0.28 → velocity-python-0.0.29}/pyproject.toml +1 -1
  3. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/__init__.py +1 -1
  4. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/servers/postgres.py +13 -1
  5. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity_python.egg-info/PKG-INFO +1 -1
  6. {velocity-python-0.0.28 → velocity-python-0.0.29}/LICENSE +0 -0
  7. {velocity-python-0.0.28 → velocity-python-0.0.29}/README.md +0 -0
  8. {velocity-python-0.0.28 → velocity-python-0.0.29}/setup.cfg +0 -0
  9. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/aws/__init__.py +0 -0
  10. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/aws/handlers/__init__.py +0 -0
  11. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/aws/handlers/context.py +0 -0
  12. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/aws/handlers/lambda_handler.py +0 -0
  13. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/aws/handlers/response.py +0 -0
  14. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/aws/handlers/sqs_handler.py +0 -0
  15. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/__init__.py +0 -0
  16. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/__init__.py +0 -0
  17. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/column.py +0 -0
  18. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/database.py +0 -0
  19. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/decorators.py +0 -0
  20. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/engine.py +0 -0
  21. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/exceptions.py +0 -0
  22. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/result.py +0 -0
  23. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/row.py +0 -0
  24. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/sequence.py +0 -0
  25. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/table.py +0 -0
  26. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/core/transaction.py +0 -0
  27. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/servers/__init__.py +0 -0
  28. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/servers/mysql.py +0 -0
  29. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/servers/sqlite.py +0 -0
  30. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/db/servers/sqlserver.py +0 -0
  31. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/__init__.py +0 -0
  32. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/conv/__init__.py +0 -0
  33. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/conv/iconv.py +0 -0
  34. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/conv/oconv.py +0 -0
  35. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/db.py +0 -0
  36. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/export.py +0 -0
  37. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/format.py +0 -0
  38. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/mail.py +0 -0
  39. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/merge.py +0 -0
  40. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity/misc/timer.py +0 -0
  41. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity_python.egg-info/SOURCES.txt +0 -0
  42. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity_python.egg-info/dependency_links.txt +0 -0
  43. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity_python.egg-info/requires.txt +0 -0
  44. {velocity-python-0.0.28 → velocity-python-0.0.29}/src/velocity_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: velocity-python
3
- Version: 0.0.28
3
+ Version: 0.0.29
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.28"
3
+ version = "0.0.29"
4
4
  authors = [
5
5
  { name="Paul Perez", email="pperez@codeclubs.org" },
6
6
  ]
@@ -1,4 +1,4 @@
1
- __version__ = version = "0.0.28"
1
+ __version__ = version = "0.0.29"
2
2
 
3
3
  from . import aws
4
4
  from . import db
@@ -1,5 +1,6 @@
1
1
  import psycopg2
2
2
  import re
3
+ import os
3
4
  import hashlib
4
5
  import decimal
5
6
  import datetime
@@ -17,8 +18,19 @@ system_fields = [
17
18
  "description",
18
19
  ]
19
20
 
21
+ default_config = {
22
+ "database": os.environ["DBDatabase"],
23
+ "host": os.environ["DBHost"],
24
+ "port": os.environ["DBPort"],
25
+ "user": os.environ["DBUser"],
26
+ "password": os.environ["DBPassword"],
27
+ }
20
28
 
21
- def initialize(config):
29
+
30
+ def initialize(config=None, **kwargs):
31
+ if not config:
32
+ config = default_config.copy()
33
+ config.update(kwargs)
22
34
  return engine.Engine(psycopg2, config, SQL)
23
35
 
24
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: velocity-python
3
- Version: 0.0.28
3
+ Version: 0.0.29
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