velocity-python 0.0.28__py3-none-any.whl → 0.0.29__py3-none-any.whl

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.

velocity/__init__.py CHANGED
@@ -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
@@ -1,4 +1,4 @@
1
- velocity/__init__.py,sha256=bjg_kiTNVVGulsPM7kj-GHdiTcrCX0C_KfN5fCKx8tQ,88
1
+ velocity/__init__.py,sha256=iVTlJ417T2VFb7sCoHxNQyxcJyZcz24nEWWJO8V_STU,88
2
2
  velocity/aws/__init__.py,sha256=ukvGrS0R8p6HtYajexOAJ7Kn9CJNlx6yb58W7o-JrAg,620
3
3
  velocity/aws/handlers/__init__.py,sha256=xnpFZJVlC2uoeeFW4zuPST8wA8ajaQDky5Y6iXZzi3A,172
4
4
  velocity/aws/handlers/context.py,sha256=UIjNR83y2NSIyK8HMPX8t5tpJHFNabiZvNgmmdQL3HA,1822
@@ -19,7 +19,7 @@ velocity/db/core/table.py,sha256=d7KyIXAinBBzIqvxIZClJ8d-DGskPucruFiFFT4PtCM,198
19
19
  velocity/db/core/transaction.py,sha256=XeqGkgrleIqC8krrDcqVXWiBAjXx9z67ZecJNjELgiw,6641
20
20
  velocity/db/servers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  velocity/db/servers/mysql.py,sha256=c0yUG00jvgnhLMJcV8BuOlTL7uGJ3uRPjJ0xVJingbk,21975
22
- velocity/db/servers/postgres.py,sha256=Tm3w6uQgpLpOBOVVjFbZFwjnjGRNKKgpQjexBV-j01A,42406
22
+ velocity/db/servers/postgres.py,sha256=aA4Fkz-PTo-Vi9kpDvWWMt2snv4r93PtQYDzgCg1XIs,42723
23
23
  velocity/db/servers/sqlite.py,sha256=QVdr_ytvCuSSKVgcP_PI05yTU0gNyFRtTmH4XQlQVjQ,34047
24
24
  velocity/db/servers/sqlserver.py,sha256=5kRNLNKbaszMww8JrlUvs2viSIb2hDZfn6nSvR52MEU,31593
25
25
  velocity/misc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -32,8 +32,8 @@ velocity/misc/timer.py,sha256=wMbV-1yNXeCJo_UPi5sTSslu9hPzokLaIKgd98tyG_4,536
32
32
  velocity/misc/conv/__init__.py,sha256=-caOuiqo0mzjP30Rh-3T0bSlt4M-SzJ4SPr2COk9wmg,39
33
33
  velocity/misc/conv/iconv.py,sha256=V-PcpDXq7wCmyxZ3sXfzpmVH5Nc9OHScvMH26K7N3bI,4375
34
34
  velocity/misc/conv/oconv.py,sha256=TGC6vTcOACtwp_Gpce33ZiVmgqBYQnwBcMNQ1MP6Qdc,4121
35
- velocity_python-0.0.28.dist-info/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
36
- velocity_python-0.0.28.dist-info/METADATA,sha256=EPT8QOGmAahAIdEOOu6ZD4VPOHHUJd0NQT_JMM02JfI,8522
37
- velocity_python-0.0.28.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
38
- velocity_python-0.0.28.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
39
- velocity_python-0.0.28.dist-info/RECORD,,
35
+ velocity_python-0.0.29.dist-info/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
36
+ velocity_python-0.0.29.dist-info/METADATA,sha256=waMEshl4l17tG_tx62zRXVypL1b5aSzjUls8q9JwFPM,8522
37
+ velocity_python-0.0.29.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
38
+ velocity_python-0.0.29.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
39
+ velocity_python-0.0.29.dist-info/RECORD,,