daplug-sql 1.0.0b1__tar.gz → 1.0.0b2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daplug-sql
3
- Version: 1.0.0b1
3
+ Version: 1.0.0b2
4
4
  Summary: Shared schema, merge, and SNS helpers powering daplug adapters.
5
5
  Home-page: https://github.com/dual/daplug-sql
6
6
  Author: Paul Cruse III
@@ -23,20 +23,17 @@ Classifier: Topic :: Database :: Front-Ends
23
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
24
  Classifier: Programming Language :: Python
25
25
  Classifier: Programming Language :: Python :: 3
26
- Classifier: Programming Language :: Python :: 3.9
27
26
  Classifier: Programming Language :: Python :: 3.10
28
27
  Classifier: Programming Language :: Python :: 3.11
28
+ Classifier: Programming Language :: Python :: 3.12
29
29
  Classifier: Programming Language :: Python :: 3 :: Only
30
- Requires-Python: >=3.9
30
+ Requires-Python: >=3.10
31
31
  Description-Content-Type: text/markdown
32
32
  License-File: LICENSE
33
- Requires-Dist: boto3>=1.34
34
- Requires-Dist: daplug-core>=0.1.0
35
- Requires-Dist: mysql-connector-python>=8.3
36
- Requires-Dist: jsonref>=0.2
37
- Requires-Dist: psycopg2-binary>=2.9
38
- Requires-Dist: PyYAML>=5.3
39
- Requires-Dist: simplejson>=3.17
33
+ Requires-Dist: boto3<2,>=1.43.15; python_version >= "3.10"
34
+ Requires-Dist: daplug-core<2,>=1.0.0b7; python_version >= "3.10"
35
+ Requires-Dist: psycopg2-binary<3,>=2.9.12; python_version >= "3.9"
36
+ Requires-Dist: mysql-connector-python<10,>=9.7.0; python_version >= "3.10"
40
37
  Dynamic: author
41
38
  Dynamic: author-email
42
39
  Dynamic: classifier
@@ -60,7 +57,7 @@ Dynamic: summary
60
57
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
61
58
  [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
62
59
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=coverage)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
63
- [![Python](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org/downloads/)
60
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)
64
61
  [![PyPI package](https://img.shields.io/pypi/v/daplug-sql?color=blue&label=pypi%20package)](https://pypi.org/project/daplug-sql/)
65
62
  [![License](https://img.shields.io/badge/license-apache%202.0-blue)](LICENSE)
66
63
  [![Contributions](https://img.shields.io/badge/contributions-welcome-blue)](https://github.com/paulcruse3/daplug-sql/issues)
@@ -143,6 +140,8 @@ Every CRUD/query helper expects the target table and identifier column at call t
143
140
  | `debug` | Log SQL statements via the adapter logger when `True`. |
144
141
  | `sns_attributes` | Per-call attributes merged with defaults before publish. |
145
142
  | `fifo_group_id` / `fifo_duplication_id` | Optional FIFO metadata passed straight to SNS. |
143
+ | `publish` | Set to `False` to skip the SNS publish for this call only (default `True`). |
144
+ | `publish_data` | Replace the published payload entirely (the row write is unchanged). |
146
145
 
147
146
  ### SNS Publishing
148
147
 
@@ -177,7 +176,21 @@ sql.insert(
177
176
  )
178
177
  ```
179
178
 
180
- If `sns_arn` is omitted, publish calls are skipped automatically.
179
+ If `sns_arn` is omitted, publish calls are skipped automatically. To skip
180
+ a single call while keeping defaults intact, pass `publish=False`. To
181
+ publish a different payload than the row that was written, pass
182
+ `publish_data={...}`.
183
+
184
+ ```python
185
+ sql.insert(data=row, table="customers", identifier="customer_id", publish=False)
186
+
187
+ sql.update(
188
+ data=row,
189
+ table="customers",
190
+ identifier="customer_id",
191
+ publish_data={"id": row["customer_id"], "event": "updated"},
192
+ )
193
+ ```
181
194
 
182
195
  ---
183
196
 
@@ -6,7 +6,7 @@
6
6
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
7
7
  [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
8
8
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=coverage)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
9
- [![Python](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org/downloads/)
9
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)
10
10
  [![PyPI package](https://img.shields.io/pypi/v/daplug-sql?color=blue&label=pypi%20package)](https://pypi.org/project/daplug-sql/)
11
11
  [![License](https://img.shields.io/badge/license-apache%202.0-blue)](LICENSE)
12
12
  [![Contributions](https://img.shields.io/badge/contributions-welcome-blue)](https://github.com/paulcruse3/daplug-sql/issues)
@@ -89,6 +89,8 @@ Every CRUD/query helper expects the target table and identifier column at call t
89
89
  | `debug` | Log SQL statements via the adapter logger when `True`. |
90
90
  | `sns_attributes` | Per-call attributes merged with defaults before publish. |
91
91
  | `fifo_group_id` / `fifo_duplication_id` | Optional FIFO metadata passed straight to SNS. |
92
+ | `publish` | Set to `False` to skip the SNS publish for this call only (default `True`). |
93
+ | `publish_data` | Replace the published payload entirely (the row write is unchanged). |
92
94
 
93
95
  ### SNS Publishing
94
96
 
@@ -123,7 +125,21 @@ sql.insert(
123
125
  )
124
126
  ```
125
127
 
126
- If `sns_arn` is omitted, publish calls are skipped automatically.
128
+ If `sns_arn` is omitted, publish calls are skipped automatically. To skip
129
+ a single call while keeping defaults intact, pass `publish=False`. To
130
+ publish a different payload than the row that was written, pass
131
+ `publish_data={...}`.
132
+
133
+ ```python
134
+ sql.insert(data=row, table="customers", identifier="customer_id", publish=False)
135
+
136
+ sql.update(
137
+ data=row,
138
+ table="customers",
139
+ identifier="customer_id",
140
+ publish_data={"id": row["customer_id"], "event": "updated"},
141
+ )
142
+ ```
127
143
 
128
144
  ---
129
145
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daplug-sql
3
- Version: 1.0.0b1
3
+ Version: 1.0.0b2
4
4
  Summary: Shared schema, merge, and SNS helpers powering daplug adapters.
5
5
  Home-page: https://github.com/dual/daplug-sql
6
6
  Author: Paul Cruse III
@@ -23,20 +23,17 @@ Classifier: Topic :: Database :: Front-Ends
23
23
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
24
  Classifier: Programming Language :: Python
25
25
  Classifier: Programming Language :: Python :: 3
26
- Classifier: Programming Language :: Python :: 3.9
27
26
  Classifier: Programming Language :: Python :: 3.10
28
27
  Classifier: Programming Language :: Python :: 3.11
28
+ Classifier: Programming Language :: Python :: 3.12
29
29
  Classifier: Programming Language :: Python :: 3 :: Only
30
- Requires-Python: >=3.9
30
+ Requires-Python: >=3.10
31
31
  Description-Content-Type: text/markdown
32
32
  License-File: LICENSE
33
- Requires-Dist: boto3>=1.34
34
- Requires-Dist: daplug-core>=0.1.0
35
- Requires-Dist: mysql-connector-python>=8.3
36
- Requires-Dist: jsonref>=0.2
37
- Requires-Dist: psycopg2-binary>=2.9
38
- Requires-Dist: PyYAML>=5.3
39
- Requires-Dist: simplejson>=3.17
33
+ Requires-Dist: boto3<2,>=1.43.15; python_version >= "3.10"
34
+ Requires-Dist: daplug-core<2,>=1.0.0b7; python_version >= "3.10"
35
+ Requires-Dist: psycopg2-binary<3,>=2.9.12; python_version >= "3.9"
36
+ Requires-Dist: mysql-connector-python<10,>=9.7.0; python_version >= "3.10"
40
37
  Dynamic: author
41
38
  Dynamic: author-email
42
39
  Dynamic: classifier
@@ -60,7 +57,7 @@ Dynamic: summary
60
57
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
61
58
  [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
62
59
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=dual_daplug-sql&metric=coverage)](https://sonarcloud.io/summary/new_code?id=dual_daplug-sql)
63
- [![Python](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org/downloads/)
60
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)
64
61
  [![PyPI package](https://img.shields.io/pypi/v/daplug-sql?color=blue&label=pypi%20package)](https://pypi.org/project/daplug-sql/)
65
62
  [![License](https://img.shields.io/badge/license-apache%202.0-blue)](LICENSE)
66
63
  [![Contributions](https://img.shields.io/badge/contributions-welcome-blue)](https://github.com/paulcruse3/daplug-sql/issues)
@@ -143,6 +140,8 @@ Every CRUD/query helper expects the target table and identifier column at call t
143
140
  | `debug` | Log SQL statements via the adapter logger when `True`. |
144
141
  | `sns_attributes` | Per-call attributes merged with defaults before publish. |
145
142
  | `fifo_group_id` / `fifo_duplication_id` | Optional FIFO metadata passed straight to SNS. |
143
+ | `publish` | Set to `False` to skip the SNS publish for this call only (default `True`). |
144
+ | `publish_data` | Replace the published payload entirely (the row write is unchanged). |
146
145
 
147
146
  ### SNS Publishing
148
147
 
@@ -177,7 +176,21 @@ sql.insert(
177
176
  )
178
177
  ```
179
178
 
180
- If `sns_arn` is omitted, publish calls are skipped automatically.
179
+ If `sns_arn` is omitted, publish calls are skipped automatically. To skip
180
+ a single call while keeping defaults intact, pass `publish=False`. To
181
+ publish a different payload than the row that was written, pass
182
+ `publish_data={...}`.
183
+
184
+ ```python
185
+ sql.insert(data=row, table="customers", identifier="customer_id", publish=False)
186
+
187
+ sql.update(
188
+ data=row,
189
+ table="customers",
190
+ identifier="customer_id",
191
+ publish_data={"id": row["customer_id"], "event": "updated"},
192
+ )
193
+ ```
181
194
 
182
195
  ---
183
196
 
@@ -0,0 +1,8 @@
1
+
2
+ [:python_version >= "3.10"]
3
+ boto3<2,>=1.43.15
4
+ daplug-core<2,>=1.0.0b7
5
+ mysql-connector-python<10,>=9.7.0
6
+
7
+ [:python_version >= "3.9"]
8
+ psycopg2-binary<3,>=2.9.12
@@ -20,15 +20,12 @@ setup(
20
20
  long_description=read_long_description(),
21
21
  long_description_content_type="text/markdown",
22
22
  packages=find_packages(include=["daplug_sql", "daplug_sql.*"]),
23
- python_requires=">=3.9",
23
+ python_requires=">=3.10",
24
24
  install_requires=[
25
- "boto3>=1.34",
26
- "daplug-core>=0.1.0",
27
- "mysql-connector-python>=8.3",
28
- "jsonref>=0.2",
29
- "psycopg2-binary>=2.9",
30
- "PyYAML>=5.3",
31
- "simplejson>=3.17",
25
+ "boto3>=1.43.15,<2; python_version >= '3.10'",
26
+ "daplug-core>=1.0.0b7,<2; python_version >= '3.10'",
27
+ "psycopg2-binary>=2.9.12,<3; python_version >= '3.9'",
28
+ "mysql-connector-python>=9.7.0,<10; python_version >= '3.10'",
32
29
  ],
33
30
  keywords=[
34
31
  "daplug",
@@ -57,9 +54,9 @@ setup(
57
54
  "Topic :: Software Development :: Libraries :: Python Modules",
58
55
  "Programming Language :: Python",
59
56
  "Programming Language :: Python :: 3",
60
- "Programming Language :: Python :: 3.9",
61
57
  "Programming Language :: Python :: 3.10",
62
58
  "Programming Language :: Python :: 3.11",
59
+ "Programming Language :: Python :: 3.12",
63
60
  "Programming Language :: Python :: 3 :: Only",
64
61
  ],
65
62
  license="Apache License 2.0",
@@ -1,7 +0,0 @@
1
- boto3>=1.34
2
- daplug-core>=0.1.0
3
- mysql-connector-python>=8.3
4
- jsonref>=0.2
5
- psycopg2-binary>=2.9
6
- PyYAML>=5.3
7
- simplejson>=3.17
File without changes
File without changes