c2cwsgiutils 6.2.0.dev387__py3-none-any.whl → 6.2.0.dev395__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.
- c2cwsgiutils/acceptance/package-lock.json +23 -23
- c2cwsgiutils/acceptance/package.json +1 -1
- c2cwsgiutils/request_tracking/_sql.py +1 -1
- c2cwsgiutils/scripts/stats_db.py +1 -1
- c2cwsgiutils/sqlalchemylogger/README.md +2 -2
- {c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/METADATA +11 -11
- {c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/RECORD +10 -10
- {c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/WHEEL +1 -1
- {c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/entry_points.txt +0 -0
- {c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"commander": "15.0.0",
|
|
9
|
-
"puppeteer": "25.
|
|
9
|
+
"puppeteer": "25.12.0"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"node_modules/@puppeteer/browsers": {
|
|
13
|
-
"version": "3.2.
|
|
14
|
-
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.
|
|
15
|
-
"integrity": "sha512-
|
|
13
|
+
"version": "3.2.3",
|
|
14
|
+
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.3.tgz",
|
|
15
|
+
"integrity": "sha512-2Bt3m6dDAJqmZehn0wiXSYyQmuhyiHHZ7FjvrVaS1W2RoFGV6eCK71UvKYkNJjkwC1Q9nobjhvTMhLQztFVINA==",
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"modern-tar": "^0.8.
|
|
18
|
+
"modern-tar": "^0.8.4",
|
|
19
19
|
"yargs": "^18.0.0"
|
|
20
20
|
},
|
|
21
21
|
"bin": {
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
"node_modules/devtools-protocol": {
|
|
121
|
-
"version": "0.0.
|
|
122
|
-
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.
|
|
123
|
-
"integrity": "sha512-
|
|
121
|
+
"version": "0.0.1687809",
|
|
122
|
+
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1687809.tgz",
|
|
123
|
+
"integrity": "sha512-t7kSb+UKYdyxcmqy98U2P86ne6rCve3DIJ4+lp54i/hhClgFuG35JrLj23rO14Jw3sWDsp7i+22QhNU0+/qk8g==",
|
|
124
124
|
"license": "BSD-3-Clause"
|
|
125
125
|
},
|
|
126
126
|
"node_modules/emoji-regex": {
|
|
@@ -187,17 +187,17 @@
|
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
"node_modules/puppeteer": {
|
|
190
|
-
"version": "25.
|
|
191
|
-
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.
|
|
192
|
-
"integrity": "sha512-
|
|
190
|
+
"version": "25.12.0",
|
|
191
|
+
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.12.0.tgz",
|
|
192
|
+
"integrity": "sha512-agM9cYcxbvmU17w9qtF17s7/Vv7Dhbyig6AWwIgvQQLR2dKZdPqNvRPanac7xH4iMPcNYOCfyCkwqCnR4nVOcA==",
|
|
193
193
|
"hasInstallScript": true,
|
|
194
194
|
"license": "Apache-2.0",
|
|
195
195
|
"dependencies": {
|
|
196
|
-
"@puppeteer/browsers": "3.2.
|
|
196
|
+
"@puppeteer/browsers": "3.2.3",
|
|
197
197
|
"chromium-bidi": "17.0.2",
|
|
198
|
-
"devtools-protocol": "0.0.
|
|
198
|
+
"devtools-protocol": "0.0.1687809",
|
|
199
199
|
"lilconfig": "^3.1.3",
|
|
200
|
-
"puppeteer-core": "25.
|
|
200
|
+
"puppeteer-core": "25.12.0",
|
|
201
201
|
"typed-query-selector": "^2.12.2"
|
|
202
202
|
},
|
|
203
203
|
"bin": {
|
|
@@ -208,16 +208,16 @@
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
"node_modules/puppeteer-core": {
|
|
211
|
-
"version": "25.
|
|
212
|
-
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.
|
|
213
|
-
"integrity": "sha512-
|
|
211
|
+
"version": "25.12.0",
|
|
212
|
+
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.12.0.tgz",
|
|
213
|
+
"integrity": "sha512-z6LQUt5SH7jwGtGA+nMtJuEjZIsqPiwQ+EFHCYuVDQrJpvifNmmGuyDvTzAKPyFzihxgHc5f3aMzu2kn8Ps37A==",
|
|
214
214
|
"license": "Apache-2.0",
|
|
215
215
|
"dependencies": {
|
|
216
|
-
"@puppeteer/browsers": "3.2.
|
|
216
|
+
"@puppeteer/browsers": "3.2.3",
|
|
217
217
|
"chromium-bidi": "17.0.2",
|
|
218
|
-
"devtools-protocol": "0.0.
|
|
218
|
+
"devtools-protocol": "0.0.1687809",
|
|
219
219
|
"typed-query-selector": "^2.12.2",
|
|
220
|
-
"webdriver-bidi-protocol": "0.4.
|
|
220
|
+
"webdriver-bidi-protocol": "0.4.3",
|
|
221
221
|
"ws": "^8.21.3"
|
|
222
222
|
},
|
|
223
223
|
"engines": {
|
|
@@ -262,9 +262,9 @@
|
|
|
262
262
|
"license": "MIT"
|
|
263
263
|
},
|
|
264
264
|
"node_modules/webdriver-bidi-protocol": {
|
|
265
|
-
"version": "0.4.
|
|
266
|
-
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.
|
|
267
|
-
"integrity": "sha512-
|
|
265
|
+
"version": "0.4.3",
|
|
266
|
+
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.3.tgz",
|
|
267
|
+
"integrity": "sha512-uuN0goWfxP22B7J/uAgBpOYNPttC+XVseYE+rSY5+rQ+YBeVz/VORw8WbmLVcqW78zNg5A4qnjNXYUWR3il2ig==",
|
|
268
268
|
"license": "Apache-2.0"
|
|
269
269
|
},
|
|
270
270
|
"node_modules/wrap-ansi": {
|
|
@@ -11,7 +11,7 @@ def _add_session_id(session: Session, _transaction: Any) -> None:
|
|
|
11
11
|
request = get_current_request()
|
|
12
12
|
if request is not None:
|
|
13
13
|
session.execute(
|
|
14
|
-
sqlalchemy.text("
|
|
14
|
+
sqlalchemy.text("SELECT set_config('application_name', :session_id, false)"),
|
|
15
15
|
params={"session_id": request.c2c_request_id},
|
|
16
16
|
)
|
|
17
17
|
|
c2cwsgiutils/scripts/stats_db.py
CHANGED
|
@@ -270,7 +270,7 @@ def _do_dtats_db(args: argparse.Namespace) -> None:
|
|
|
270
270
|
SELECT table_schema, table_name FROM information_schema.tables
|
|
271
271
|
WHERE table_type='BASE TABLE' AND table_schema IN :schemas
|
|
272
272
|
""",
|
|
273
|
-
),
|
|
273
|
+
).bindparams(sqlalchemy.bindparam("schemas", expanding=True)),
|
|
274
274
|
params={"schemas": tuple(args.schema)},
|
|
275
275
|
).fetchall()
|
|
276
276
|
for schema, table in tables:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
This module is used to ship logging records to an SQL database.
|
|
2
2
|
|
|
3
|
-
Currently only `sqlite` and `
|
|
3
|
+
Currently only `sqlite` and PostgreSQL with `psycopg` (version 3) are fully supported.
|
|
4
4
|
|
|
5
5
|
To add the handler, setup it directly in your app's main function. You
|
|
6
6
|
can add it to an existing logger (setup in you `.ini` file),
|
|
@@ -19,7 +19,7 @@ def _setup_sqlalchemy_logger():
|
|
|
19
19
|
handler = SQLAlchemyHandler(
|
|
20
20
|
sqlalchemy_url={
|
|
21
21
|
# "url": "sqlite:///logger_db.sqlite3",
|
|
22
|
-
"url": "postgresql://postgres:password@localhost:5432/test",
|
|
22
|
+
"url": "postgresql+psycopg://postgres:password@localhost:5432/test",
|
|
23
23
|
"tablename": "test",
|
|
24
24
|
"tableargs": {"schema": "xyz"},
|
|
25
25
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c2cwsgiutils
|
|
3
|
-
Version: 6.2.0.
|
|
3
|
+
Version: 6.2.0.dev395
|
|
4
4
|
Summary: Common utilities for Camptocamp WSGI applications
|
|
5
5
|
License-Expression: BSD-2-Clause
|
|
6
6
|
License-File: LICENSE
|
|
@@ -36,10 +36,10 @@ Provides-Extra: webserver
|
|
|
36
36
|
Requires-Dist: Paste ; extra == "all"
|
|
37
37
|
Requires-Dist: Paste ; extra == "standard"
|
|
38
38
|
Requires-Dist: Paste ; extra == "waitress"
|
|
39
|
-
Requires-Dist: SQLAlchemy (>=1.
|
|
40
|
-
Requires-Dist: SQLAlchemy (>=1.
|
|
41
|
-
Requires-Dist: SQLAlchemy (>=1.
|
|
42
|
-
Requires-Dist: SQLAlchemy (>=1.
|
|
39
|
+
Requires-Dist: SQLAlchemy (>=2.1.0,<3.0.0) ; extra == "all"
|
|
40
|
+
Requires-Dist: SQLAlchemy (>=2.1.0,<3.0.0) ; extra == "standard"
|
|
41
|
+
Requires-Dist: SQLAlchemy (>=2.1.0,<3.0.0) ; extra == "waitress"
|
|
42
|
+
Requires-Dist: SQLAlchemy (>=2.1.0,<3.0.0) ; extra == "webserver"
|
|
43
43
|
Requires-Dist: SQLAlchemy-Utils ; extra == "all"
|
|
44
44
|
Requires-Dist: SQLAlchemy-Utils ; extra == "standard"
|
|
45
45
|
Requires-Dist: SQLAlchemy-Utils ; extra == "waitress"
|
|
@@ -66,10 +66,10 @@ Requires-Dist: objgraph ; extra == "debug"
|
|
|
66
66
|
Requires-Dist: prometheus-client
|
|
67
67
|
Requires-Dist: psutil ; extra == "all"
|
|
68
68
|
Requires-Dist: psutil ; extra == "debug"
|
|
69
|
-
Requires-Dist:
|
|
70
|
-
Requires-Dist:
|
|
71
|
-
Requires-Dist:
|
|
72
|
-
Requires-Dist:
|
|
69
|
+
Requires-Dist: psycopg[binary] (>=3.2,<4.0) ; extra == "all"
|
|
70
|
+
Requires-Dist: psycopg[binary] (>=3.2,<4.0) ; extra == "standard"
|
|
71
|
+
Requires-Dist: psycopg[binary] (>=3.2,<4.0) ; extra == "waitress"
|
|
72
|
+
Requires-Dist: psycopg[binary] (>=3.2,<4.0) ; extra == "webserver"
|
|
73
73
|
Requires-Dist: pyjwt ; extra == "all"
|
|
74
74
|
Requires-Dist: pyjwt ; extra == "oauth2"
|
|
75
75
|
Requires-Dist: pyjwt ; extra == "standard"
|
|
@@ -199,11 +199,11 @@ health_check.add_alembic_check(dbsession, "/app/alembic.ini", 1)
|
|
|
199
199
|
The related environment variables:
|
|
200
200
|
|
|
201
201
|
- `DEVELOPMENT`: set to `1` to enable the development mode, default is `0`.
|
|
202
|
-
- `SQLALCHEMY_URL`: SQL alchemy URL, like `postgresql://user:password@host:port/dbname`.
|
|
202
|
+
- `SQLALCHEMY_URL`: SQL alchemy URL, like `postgresql+psycopg://user:password@host:port/dbname`.
|
|
203
203
|
- `SQLALCHEMY_POOL_RECYCLE`: The SQL alchemy pool recycle, default is `30`.
|
|
204
204
|
- `SQLALCHEMY_POOL_SIZE`: The SQL alchemy pool size, default is `5`.
|
|
205
205
|
- `SQLALCHEMY_MAX_OVERFLOW`: SQL alchemy max overflow, default is `25`.
|
|
206
|
-
- `SQLALCHEMY_SLAVE_URL`: The SQL alchemy slave (read only) URL, like `postgresql://user:password@host:port/dbname`.
|
|
206
|
+
- `SQLALCHEMY_SLAVE_URL`: The SQL alchemy slave (read only) URL, like `postgresql+psycopg://user:password@host:port/dbname`.
|
|
207
207
|
- `SQLALCHEMY_SLAVE_POOL_RECYCLE`: The SQL alchemy slave pool recycle, default is `30`.
|
|
208
208
|
- `SQLALCHEMY_SLAVE_POOL_SIZE`: The SQL alchemy slave pool size, default is `5`.
|
|
209
209
|
- `SQLALCHEMY_SLAVE_MAX_OVERFLOW`: The SQL alchemy slave max overflow, default is `25`.
|
|
@@ -2,8 +2,8 @@ c2cwsgiutils/__init__.py,sha256=9ZR6IKyIN5Z0n21sOH62rQlj4EhW7XLNyq9wbwXqXdw,4084
|
|
|
2
2
|
c2cwsgiutils/acceptance/__init__.py,sha256=XgheLg3eou10N1yFHjb1C0FhIEFo0AQzrodq_GEUIeA,1552
|
|
3
3
|
c2cwsgiutils/acceptance/connection.py,sha256=eoLqLMETHD8XvldlC9V7A3wp30JjGEgJcJ3e1IwQkS8,9964
|
|
4
4
|
c2cwsgiutils/acceptance/image.py,sha256=2anD2A8tVFyJEgYUJAnznBPG7zHQjRMkoyaIzWam4zM,9402
|
|
5
|
-
c2cwsgiutils/acceptance/package-lock.json,sha256=
|
|
6
|
-
c2cwsgiutils/acceptance/package.json,sha256=
|
|
5
|
+
c2cwsgiutils/acceptance/package-lock.json,sha256=c0RAr645xsA3ppDFaaqPdXzhfxxBJbCcl0LUOh3AL_w,13015
|
|
6
|
+
c2cwsgiutils/acceptance/package.json,sha256=oqw9kXIx6JZ81QjKRK2ra53hfNd1UVKOaZw1f_j95Us,102
|
|
7
7
|
c2cwsgiutils/acceptance/print.py,sha256=pwJfToEFuK9rJnL_TXb5H-ZD1Hbauue3eonBDLYFVxA,2592
|
|
8
8
|
c2cwsgiutils/acceptance/screenshot.js,sha256=FAJYIWOLJFMm0MNggKzo3mIybtN-VtKLdMzPhQ9pO1g,2041
|
|
9
9
|
c2cwsgiutils/acceptance/utils.py,sha256=vuPIkEgZ6m7xU6zGtLoY8hohhM1HMbcue-PpP0PE4P8,1931
|
|
@@ -37,17 +37,17 @@ c2cwsgiutils/pyramid_logging.py,sha256=G9Ib_zc10OFgkfulDqDsoc9rrWy4RH9m3119RI4eq
|
|
|
37
37
|
c2cwsgiutils/redis_stats.py,sha256=mzNv9Thuj5tims-v1aoVvWJwCdLF3WyBoEQ0myR4ESI,1710
|
|
38
38
|
c2cwsgiutils/redis_utils.py,sha256=2GCtJrvv-IStDRIKiAq5VcOz9mxIqaCm_IvPVaQwEbI,5754
|
|
39
39
|
c2cwsgiutils/request_tracking/__init__.py,sha256=59EyHjZGJ0_BBET4TIT-v8qeaiFC0cXgNdlrygSpZJM,4212
|
|
40
|
-
c2cwsgiutils/request_tracking/_sql.py,sha256=
|
|
40
|
+
c2cwsgiutils/request_tracking/_sql.py,sha256=ZeZhm7YHV7HtrcYlCUc3DP6ycG88h7OYnkSgJTY3PFs,647
|
|
41
41
|
c2cwsgiutils/scripts/__init__.py,sha256=pkqbKuATfEJFGtJhN7Al_pCqPeSKFJh55pqW94LU6X0,36
|
|
42
42
|
c2cwsgiutils/scripts/genversion.py,sha256=wiwpk81efVBDSte-onWlSyQNLHVZNRUXREzl-FEj-1E,2089
|
|
43
|
-
c2cwsgiutils/scripts/stats_db.py,sha256=
|
|
43
|
+
c2cwsgiutils/scripts/stats_db.py,sha256=oazBLiRdRd8HH0STqysTgnIexiPYOkRRmD3L4BUg780,10634
|
|
44
44
|
c2cwsgiutils/scripts/test_print.py,sha256=nN4hb-p9FHwoFSp05bceSwpuLetI6g3RdZ4iexIAhoo,2157
|
|
45
45
|
c2cwsgiutils/sentry.py,sha256=86GPd6OdgPOFI4Cr2WGePh5kmPHubrl9z0i-_gghCf0,6905
|
|
46
46
|
c2cwsgiutils/services.py,sha256=ZgJcFpZHog7Cg998c8xYxDrYKNZJxSvOT8K3bhCKwbc,1606
|
|
47
47
|
c2cwsgiutils/setup_process.py,sha256=BDHCPegT2pIYVfmXeqP0jByNl3R_bs3htLwLMhlqHMU,3624
|
|
48
48
|
c2cwsgiutils/sql_profiler/__init__.py,sha256=NeKXxNxSpLaIp-1FaddBejzMEubdQ9dnqtfddq027Ls,958
|
|
49
49
|
c2cwsgiutils/sql_profiler/_impl.py,sha256=8-YtSQjPKL6RVTiHtcNtT9kESwoQj5Pw5bw-YnSPLc0,3801
|
|
50
|
-
c2cwsgiutils/sqlalchemylogger/README.md,sha256=
|
|
50
|
+
c2cwsgiutils/sqlalchemylogger/README.md,sha256=Tj2ayCyTIDae8IZDeSntZWMXhdLvtfFllpk1Q2XrRVo,2704
|
|
51
51
|
c2cwsgiutils/sqlalchemylogger/__init__.py,sha256=pkqbKuATfEJFGtJhN7Al_pCqPeSKFJh55pqW94LU6X0,36
|
|
52
52
|
c2cwsgiutils/sqlalchemylogger/_filters.py,sha256=cxAXd9Wa8Wa_aKrubEWRoeDrfC_jNaH0-Dt1DSWL18c,789
|
|
53
53
|
c2cwsgiutils/sqlalchemylogger/_models.py,sha256=m3qjET5iovifeUkgTuBzEWyDGCg__Os0UcpJ5J26F5E,1512
|
|
@@ -61,8 +61,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=HV9tEFCkOhcBS-U1_DicLe3y3TGAVc_sxEt
|
|
|
61
61
|
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=GeV7a_AKDjcToIVpju4T3KBI64yCG6IWw_6nw_IAlFM,3535
|
|
62
62
|
c2cwsgiutils/templates/index.html.mako,sha256=e54pfSL0nGRsnJkahFRLevNyUhvlCNb_2uVaO8rDhbg,1416
|
|
63
63
|
c2cwsgiutils/version.py,sha256=3youfhXNIwZXuOqjDMUua2njF0cQS75FCuW1AMCldgs,3193
|
|
64
|
-
c2cwsgiutils-6.2.0.
|
|
65
|
-
c2cwsgiutils-6.2.0.
|
|
66
|
-
c2cwsgiutils-6.2.0.
|
|
67
|
-
c2cwsgiutils-6.2.0.
|
|
68
|
-
c2cwsgiutils-6.2.0.
|
|
64
|
+
c2cwsgiutils-6.2.0.dev395.dist-info/METADATA,sha256=rHUougu4cuXpO2s2wmZFJU_seLGoL8tnlaxlrqxGlz0,37622
|
|
65
|
+
c2cwsgiutils-6.2.0.dev395.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
66
|
+
c2cwsgiutils-6.2.0.dev395.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
|
67
|
+
c2cwsgiutils-6.2.0.dev395.dist-info/licenses/LICENSE,sha256=hCNci_ppSy6SKe_nTdgzjCsTIaNQgAKqDSghWn_G-1I,1304
|
|
68
|
+
c2cwsgiutils-6.2.0.dev395.dist-info/RECORD,,
|
{c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{c2cwsgiutils-6.2.0.dev387.dist-info → c2cwsgiutils-6.2.0.dev395.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|