velocity-python 0.0.118__py3-none-any.whl → 0.0.120__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.118"
1
+ __version__ = version = "0.0.120"
2
2
 
3
3
  from . import aws
4
4
  from . import db
velocity/app/orders.py CHANGED
@@ -1,8 +1,9 @@
1
1
  import datetime
2
2
  import support.app
3
3
  import pprint
4
+ import velocity.db
4
5
 
5
- engine = support.app.postgres()
6
+ engine = velocity.db.postgres.initialize()
6
7
  REQUIRED = object()
7
8
 
8
9
 
@@ -6,7 +6,9 @@ from velocity.misc.format import to_json
6
6
  from velocity.misc.merge import deep_merge
7
7
  from datetime import datetime
8
8
 
9
- engine = support.app.postgres()
9
+ import velocity.db
10
+
11
+ engine = velocity.db.postgres.initialize()
10
12
 
11
13
 
12
14
  @engine.transaction
velocity/db/__init__.py CHANGED
@@ -5,9 +5,6 @@ from velocity.db.servers import sqlite
5
5
  from velocity.db.servers import sqlserver
6
6
  from velocity.db import utils
7
7
 
8
- # Export exceptions at the package level for backward compatibility
9
- from velocity.db.exceptions import *
10
-
11
8
  # Export commonly used utility functions
12
9
  from velocity.db.utils import (
13
10
  safe_sort_rows,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: velocity-python
3
- Version: 0.0.118
3
+ Version: 0.0.120
4
4
  Summary: A rapid application development library for interfacing with data storage
5
5
  Author-email: Velocity Team <info@codeclubs.org>
6
6
  License-Expression: MIT
@@ -1,19 +1,19 @@
1
- velocity/__init__.py,sha256=DmSkPb91YEgRa7GbGjG39khWmXgqyJj5fc5fWt1-D0Y,147
1
+ velocity/__init__.py,sha256=HtOwZeMPjgm3flUcPjxaIXlGJ4m_OIufkyDM5Lr1dbw,147
2
2
  velocity/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  velocity/app/invoices.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- velocity/app/orders.py,sha256=W-HAXEwY8-IFXbKh82HnMeRVZM7P-TWGEQOWtkLIzI4,6298
4
+ velocity/app/orders.py,sha256=fr1oTBjSFfyeMBUXRG06LV4jgwrlwYNL5mbEBleFwf0,6328
5
5
  velocity/app/payments.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  velocity/app/purchase_orders.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  velocity/aws/__init__.py,sha256=0nEsX68Q4I7Z7ybECJnNWsC8QhWOijn4NpaFgyzyfXA,685
8
8
  velocity/aws/amplify.py,sha256=VgSgon0XxboIozz0tKyUohgLIigelhe4W7EH8kwbnLg,15330
9
9
  velocity/aws/handlers/__init__.py,sha256=4-NKj8dBzjYEdIlNdfm_Ip5mI0oOGcpjjBcMwU42yhQ,227
10
10
  velocity/aws/handlers/base_handler.py,sha256=rnEX5X4a5P-FO9Va0-9ZJYCqfqtjvuf101UTz1Vfqyg,7822
11
- velocity/aws/handlers/context.py,sha256=WWnEDbUOuTC2Khu-2s2Ago10jRYGPPvrXmHXVRKvYDw,8353
11
+ velocity/aws/handlers/context.py,sha256=UGp8X7w4zUXsJ5uAteE-kTZYCclisz42nIO8mPu6Eg8,8384
12
12
  velocity/aws/handlers/exceptions.py,sha256=i4wcB8ZSWUHglX2xnesDlWLsU9AMYU72cHCWRBDmjQ8,361
13
13
  velocity/aws/handlers/lambda_handler.py,sha256=yyO42yPgCyp79mzYc3RNGjDwkOV_NTNQQmG7oXyWvpo,4043
14
14
  velocity/aws/handlers/response.py,sha256=s2Kw7yv5zAir1mEmfv6yBVIvRcRQ__xyryf1SrvtiRc,9317
15
15
  velocity/aws/handlers/sqs_handler.py,sha256=wx1fugE-uSallIapeNbtDEbvB7ydetn6MvhFZ3mXk-0,3149
16
- velocity/db/__init__.py,sha256=2_6b3cdInPZDtya8kkW_7xyAullwneF-ll5RZaNawq8,845
16
+ velocity/db/__init__.py,sha256=7XRUHY2af0HL1jvL0SAMpxSe5a2Phbkm-YLJCvC1C_0,739
17
17
  velocity/db/exceptions.py,sha256=XHREJvzNctrtYE-ScBRLnbk7thxTswkfWojKhMmBmd8,2185
18
18
  velocity/db/utils.py,sha256=IoXeAL_0wZE15gbxlb2TtNdHzUSV9bIvw8jNkqjz38o,7020
19
19
  velocity/db/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -21,7 +21,6 @@ velocity/db/core/column.py,sha256=tAr8tL3a2nyaYpNHhGl508FrY_pGZTzyYgjAV5CEBv4,40
21
21
  velocity/db/core/database.py,sha256=3zNGItklu9tZCKsbx2T2vCcU1so8AL9PPL0DLjvaz6s,3554
22
22
  velocity/db/core/decorators.py,sha256=OjWnuvneObKx0RBYlC4_4QrdzwQY6lJ4H0eIMqPBl0s,4557
23
23
  velocity/db/core/engine.py,sha256=xDjlfDvdQ0A3Ug3w-isgnVAVkKSg0KX0iChhRyPvNJw,18463
24
- velocity/db/core/exceptions.py,sha256=9jhPtxagHZtGdMcSwa2uRe82Gqydla5fWCqs4v-Ah8U,1030
25
24
  velocity/db/core/result.py,sha256=b0ie3yZAOj9S57x32uFFGKZ95zhImmZ0iXl0X1qYszc,12813
26
25
  velocity/db/core/row.py,sha256=yqxm03uEDy3oSbnkCtKyiqFdSqG3zXTq2HIHYKOvPY4,7291
27
26
  velocity/db/core/sequence.py,sha256=VMBc0ZjGnOaWTwKW6xMNTdP8rZ2umQ8ml4fHTTwuGq4,3904
@@ -51,8 +50,8 @@ velocity/misc/tools.py,sha256=4TWa-ja2gMZJr1EhqTKsJNirvDclCruyRGMttPhCIGw,1487
51
50
  velocity/misc/conv/__init__.py,sha256=qhHFl_UqW5tjPm--6shO171IysWIdH3mmp3uwiQVyqY,70
52
51
  velocity/misc/conv/iconv.py,sha256=16aPWtreHCxmpl5ufku0KWWZj8PIUFI5J1dP0aXyM3o,10794
53
52
  velocity/misc/conv/oconv.py,sha256=h5Lo05DqOQnxoD3y6Px_MQP_V-pBbWf8Hkgkb9Xp1jk,6032
54
- velocity_python-0.0.118.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
55
- velocity_python-0.0.118.dist-info/METADATA,sha256=0A2e7hzaAk3f6djTEfF1hur_ZQiBHYXs-cufMApAQMU,34262
56
- velocity_python-0.0.118.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
57
- velocity_python-0.0.118.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
58
- velocity_python-0.0.118.dist-info/RECORD,,
53
+ velocity_python-0.0.120.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
54
+ velocity_python-0.0.120.dist-info/METADATA,sha256=m-zOXzLMHScQLF-QQUZ94Z-bIKrSBNvr1L-ipo5flBQ,34262
55
+ velocity_python-0.0.120.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
+ velocity_python-0.0.120.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
57
+ velocity_python-0.0.120.dist-info/RECORD,,
@@ -1,73 +0,0 @@
1
- class DbException(Exception):
2
- pass
3
-
4
-
5
- class DbApplicationError(DbException):
6
- pass
7
-
8
-
9
- class DbForeignKeyMissingError(DbException):
10
- pass
11
-
12
-
13
- class DbDatabaseMissingError(DbException):
14
- pass
15
-
16
-
17
- class DbTableMissingError(DbException):
18
- pass
19
-
20
-
21
- class DbColumnMissingError(DbException):
22
- pass
23
-
24
-
25
- class DbTruncationError(DbException):
26
- pass
27
-
28
-
29
- class DbConnectionError(DbException):
30
- pass
31
-
32
-
33
- class DbDuplicateKeyError(DbException):
34
- pass
35
-
36
-
37
- class DbObjectExistsError(DbException):
38
- pass
39
-
40
-
41
- class DbLockTimeoutError(DbException):
42
- pass
43
-
44
-
45
- class DbRetryTransaction(DbException):
46
- pass
47
-
48
-
49
- class DbDataIntegrityError(DbException):
50
- pass
51
-
52
-
53
- class DuplicateRowsFoundError(Exception):
54
- pass
55
-
56
-
57
- class DbQueryError(DbException):
58
- """Database query error"""
59
-
60
- pass
61
-
62
-
63
- class DbTransactionError(DbException):
64
- """Database transaction error"""
65
-
66
- pass
67
-
68
-
69
- # Add aliases for backward compatibility with engine.py
70
- class DatabaseError(DbException):
71
- """Generic database error - alias for DbException"""
72
-
73
- pass