c2cwsgiutils 5.1.7.dev20230901073305__py3-none-any.whl → 5.2.1.dev197__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/__init__.py +13 -13
- c2cwsgiutils/acceptance/connection.py +5 -2
- c2cwsgiutils/acceptance/image.py +98 -4
- c2cwsgiutils/acceptance/package-lock.json +1933 -0
- c2cwsgiutils/acceptance/package.json +7 -0
- c2cwsgiutils/acceptance/print.py +4 -4
- c2cwsgiutils/acceptance/screenshot.js +62 -0
- c2cwsgiutils/acceptance/utils.py +14 -22
- c2cwsgiutils/auth.py +4 -4
- c2cwsgiutils/broadcast/__init__.py +15 -7
- c2cwsgiutils/broadcast/interface.py +3 -2
- c2cwsgiutils/broadcast/local.py +3 -2
- c2cwsgiutils/broadcast/redis.py +8 -7
- c2cwsgiutils/client_info.py +5 -5
- c2cwsgiutils/config_utils.py +2 -1
- c2cwsgiutils/coverage_setup.py +2 -2
- c2cwsgiutils/db.py +58 -37
- c2cwsgiutils/db_maintenance_view.py +2 -1
- c2cwsgiutils/debug/_listeners.py +10 -9
- c2cwsgiutils/debug/_views.py +12 -11
- c2cwsgiutils/debug/utils.py +5 -5
- c2cwsgiutils/errors.py +7 -6
- c2cwsgiutils/health_check.py +96 -85
- c2cwsgiutils/index.py +90 -105
- c2cwsgiutils/loader.py +3 -3
- c2cwsgiutils/logging_view.py +3 -2
- c2cwsgiutils/models_graph.py +8 -6
- c2cwsgiutils/prometheus.py +175 -57
- c2cwsgiutils/pyramid.py +4 -2
- c2cwsgiutils/pyramid_logging.py +2 -1
- c2cwsgiutils/redis_stats.py +13 -11
- c2cwsgiutils/redis_utils.py +15 -14
- c2cwsgiutils/request_tracking/__init__.py +36 -30
- c2cwsgiutils/request_tracking/_sql.py +3 -1
- c2cwsgiutils/scripts/genversion.py +4 -4
- c2cwsgiutils/scripts/stats_db.py +130 -68
- c2cwsgiutils/scripts/test_print.py +1 -1
- c2cwsgiutils/sentry.py +2 -1
- c2cwsgiutils/setup_process.py +13 -17
- c2cwsgiutils/sql_profiler/_impl.py +12 -5
- c2cwsgiutils/sqlalchemylogger/README.md +48 -0
- c2cwsgiutils/sqlalchemylogger/_models.py +7 -4
- c2cwsgiutils/sqlalchemylogger/examples/example.py +15 -0
- c2cwsgiutils/sqlalchemylogger/handlers.py +11 -8
- c2cwsgiutils/static/favicon-16x16.png +0 -0
- c2cwsgiutils/static/favicon-32x32.png +0 -0
- c2cwsgiutils/stats_pyramid/__init__.py +7 -11
- c2cwsgiutils/stats_pyramid/_db_spy.py +14 -11
- c2cwsgiutils/stats_pyramid/_pyramid_spy.py +29 -20
- c2cwsgiutils/templates/index.html.mako +50 -0
- c2cwsgiutils/version.py +49 -16
- c2cwsgiutils-5.2.1.dev197.dist-info/LICENSE +22 -0
- {c2cwsgiutils-5.1.7.dev20230901073305.dist-info → c2cwsgiutils-5.2.1.dev197.dist-info}/METADATA +187 -135
- c2cwsgiutils-5.2.1.dev197.dist-info/RECORD +67 -0
- {c2cwsgiutils-5.1.7.dev20230901073305.dist-info → c2cwsgiutils-5.2.1.dev197.dist-info}/WHEEL +1 -2
- c2cwsgiutils-5.2.1.dev197.dist-info/entry_points.txt +21 -0
- c2cwsgiutils/acceptance/composition.py +0 -129
- c2cwsgiutils/metrics.py +0 -110
- c2cwsgiutils/scripts/check_es.py +0 -130
- c2cwsgiutils/scripts/coverage_report.py +0 -36
- c2cwsgiutils/stats.py +0 -355
- c2cwsgiutils/stats_pyramid/_views.py +0 -16
- c2cwsgiutils-5.1.7.dev20230901073305.data/scripts/c2cwsgiutils-run +0 -32
- c2cwsgiutils-5.1.7.dev20230901073305.dist-info/LICENSE.txt +0 -28
- c2cwsgiutils-5.1.7.dev20230901073305.dist-info/RECORD +0 -69
- c2cwsgiutils-5.1.7.dev20230901073305.dist-info/entry_points.txt +0 -25
- c2cwsgiutils-5.1.7.dev20230901073305.dist-info/top_level.txt +0 -2
- tests/acceptance/__init__.py +0 -0
- tests/acceptance/test_utils.py +0 -13
@@ -1,28 +0,0 @@
|
|
1
|
-
All the code in this library is provided under this licence:
|
2
|
-
|
3
|
-
Copyright (c) 2015-2019, Camptocamp SA
|
4
|
-
All rights reserved.
|
5
|
-
|
6
|
-
Redistribution and use in source and binary forms, with or without
|
7
|
-
modification, are permitted provided that the following conditions are met:
|
8
|
-
|
9
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
10
|
-
list of conditions and the following disclaimer.
|
11
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
12
|
-
this list of conditions and the following disclaimer in the documentation
|
13
|
-
and/or other materials provided with the distribution.
|
14
|
-
|
15
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
16
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
17
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
18
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
19
|
-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
20
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
21
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
22
|
-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
24
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25
|
-
|
26
|
-
The views and conclusions contained in the software and documentation are those
|
27
|
-
of the authors and should not be interpreted as representing official policies,
|
28
|
-
either expressed or implied, of the FreeBSD Project.
|
@@ -1,69 +0,0 @@
|
|
1
|
-
c2cwsgiutils/__init__.py,sha256=8MV-xPimZ1hzZYeCVpbLhCm05HJ3j7g1QM-kk2xWgh8,3955
|
2
|
-
c2cwsgiutils/auth.py,sha256=EyOH2OVG1wrXNVsQWPa5SpSkdzX96MZDir8PFE-xO9w,9314
|
3
|
-
c2cwsgiutils/client_info.py,sha256=k1jTv3_NVLeMgJURjcgUbH4tmHPjW39UuOWXPJF7DN8,3050
|
4
|
-
c2cwsgiutils/config_utils.py,sha256=aN_New-YukyZ08--z2CsjTSS6YfDsI5pc_ciNewjxS0,1496
|
5
|
-
c2cwsgiutils/coverage_setup.py,sha256=jg_SAgEZnOqbZvbenyES6ReO3bRS8YyNM3qUzjpch6I,839
|
6
|
-
c2cwsgiutils/db.py,sha256=2mQv9JMEAc7urtDU9Bi3P_YUPsXERT9VV5iOq2f3R3Y,15312
|
7
|
-
c2cwsgiutils/db_maintenance_view.py,sha256=Br9EnG4wfFCh5-vWGY86be9iCQmS8Z3dg-n0F0Qp_wc,3049
|
8
|
-
c2cwsgiutils/errors.py,sha256=XlWZOA20bfog1l6vg0mHzgmpCI7zK6qQ5qPVxPhk6FI,6670
|
9
|
-
c2cwsgiutils/health_check.py,sha256=JCHm1GLus5dQiKblKpk6jpg4WpIqxCku63eKFl-VTXE,20317
|
10
|
-
c2cwsgiutils/index.py,sha256=hXrkHNMuTQnNlG-pTe19teNWHX_gjBF4W1WmBAHiUBw,17356
|
11
|
-
c2cwsgiutils/loader.py,sha256=hFIB30saYkyj8brmL07AKE_PFAb2Bny_kWlSOg-xp1E,628
|
12
|
-
c2cwsgiutils/logging_view.py,sha256=zVvZiNvJDdMwclm3KiqsfK8Ra2JSKPSSQt5VYGGpQ2k,3337
|
13
|
-
c2cwsgiutils/metrics.py,sha256=6Fx6ZjVuy40X5pLLlgflgd1hQYTCxm2OMweyXvLEUUI,3425
|
14
|
-
c2cwsgiutils/models_graph.py,sha256=jqw3Ua0sMUhi1Kp4AwiqwuwpB8JYqEEUVaUmicO1HIc,2653
|
15
|
-
c2cwsgiutils/pretty_json.py,sha256=f1-oecFX9hub1nD32mmZRjOTIxhV8bVSt3Meqw68sNU,1698
|
16
|
-
c2cwsgiutils/profiler.py,sha256=3tIwoDSzOKQ06ug_U6j5VDR1BQ9auUOqdJRRLRhDoHw,739
|
17
|
-
c2cwsgiutils/prometheus.py,sha256=2Qzyuy7PSincyRU55V1uxtJRG7ZxCdWkvzfVE9KRNaA,2103
|
18
|
-
c2cwsgiutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
|
-
c2cwsgiutils/pyramid.py,sha256=VmrAMFpC636WTToNNaI9hWQOYJAk5hn__K43mBvUFtw,1346
|
20
|
-
c2cwsgiutils/pyramid_logging.py,sha256=BfxYbpF7mxjMY_08TGp3I9101e6s8tUSJ5yKN7tAt9o,3703
|
21
|
-
c2cwsgiutils/redis_stats.py,sha256=CtOcpYTHK5xUG4PWtZldbd_u2KEjZtZK_9NNmLfKvO0,1520
|
22
|
-
c2cwsgiutils/redis_utils.py,sha256=j8uhxaLOTpxnPQPorrxG3SFrQNebxmMlIioZY0rXDWg,4746
|
23
|
-
c2cwsgiutils/sentry.py,sha256=Yu1lygHOWS8bmPNrUqV7XUr6xxI55JN9LVDxtAcXPeE,5043
|
24
|
-
c2cwsgiutils/services.py,sha256=qz51oCZOC0Lj2_ig4UuHIm0ZZO3FfpFTxrXBWZ_oaNo,1567
|
25
|
-
c2cwsgiutils/setup_process.py,sha256=Qh8TnI6jFKwu9OpGnNrhX_Hy2fptRGTiAWcBij2h6yY,3493
|
26
|
-
c2cwsgiutils/stats.py,sha256=je576MT95MJPKIXGZlK_gf6kQ31YB9wWSc_6A7UJpYw,11558
|
27
|
-
c2cwsgiutils/version.py,sha256=ddTMRafXaPF4LyPZz50PjoqmT34lclLSH1_EHVbTnoU,1818
|
28
|
-
c2cwsgiutils/acceptance/__init__.py,sha256=vjtpPfu0kbXUOYMx15Z8713IfPFZA9XnkUKkIFtVj_M,1500
|
29
|
-
c2cwsgiutils/acceptance/composition.py,sha256=TBq5BdA14nG-7VVFq2-chD-hOY0C575hIZH0ytrjXOU,4610
|
30
|
-
c2cwsgiutils/acceptance/connection.py,sha256=PxqSPYi0Ogrj5FU4IPGK9bQPfBMqxz7L3vQQ4hRCL2U,9109
|
31
|
-
c2cwsgiutils/acceptance/image.py,sha256=pOYaGoQi9v2xabkB142EAMAhuTe3kRCMEfutvsbRb2M,4430
|
32
|
-
c2cwsgiutils/acceptance/print.py,sha256=0sO_QvdwzFrtOHXlq0BjGXM_0c-lUCcrCo-PU_oHH40,2328
|
33
|
-
c2cwsgiutils/acceptance/utils.py,sha256=ixCaHzLyA744dZnfwHpp2AeFlc14WAJb4ojBbbr_R-c,2072
|
34
|
-
c2cwsgiutils/broadcast/__init__.py,sha256=cAODXqq2pwZp0n92QSi0ybJIQttV2CJwc1Cd1hhpEvQ,4160
|
35
|
-
c2cwsgiutils/broadcast/interface.py,sha256=M2NMNCXky05xA_jVlnkEcRG-3SE0TEA2uXTz0oR4zKs,615
|
36
|
-
c2cwsgiutils/broadcast/local.py,sha256=iJxv9IjzKjKYz6ZLXRSbrqGRmNUmGoYsSbcRSdz4dbs,1062
|
37
|
-
c2cwsgiutils/broadcast/redis.py,sha256=TPEk8RyLI1uoqhu6VLEvVsoX-uaN7-D4MVp9Q7F3BfU,5089
|
38
|
-
c2cwsgiutils/broadcast/utils.py,sha256=0fQZXPu3p_5LEJpGenJwiiMxECQjJhjZBjIkBk8h-ng,272
|
39
|
-
c2cwsgiutils/debug/__init__.py,sha256=80zdAZnE9cwgQW1odE2aOauIxYsG5CQpWvHPcslRue8,1239
|
40
|
-
c2cwsgiutils/debug/_listeners.py,sha256=2YQvC5phYSwcIB44p5gJ_-CTBz0HoDivXvX7PVaOIFg,4358
|
41
|
-
c2cwsgiutils/debug/_views.py,sha256=vxeHI42WO42_A1UqSUqmD7fP9dEKQzKmjpk9pn1qayQ,7507
|
42
|
-
c2cwsgiutils/debug/utils.py,sha256=1vtfXND_hzs6PH8ohnRGcPYaW2_qKRJ6VxDvEdG0hdU,2328
|
43
|
-
c2cwsgiutils/request_tracking/__init__.py,sha256=Wde7KKgYzc0D0ESDD5LQYPtWzokA0yV7DjdtqMF1ktk,3853
|
44
|
-
c2cwsgiutils/request_tracking/_sql.py,sha256=OQQhhkOK4lpYIeOwBocPu1a-IHGf8OTVeR8nYySJsCA,538
|
45
|
-
c2cwsgiutils/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
46
|
-
c2cwsgiutils/scripts/check_es.py,sha256=dXF1FpyyIUMRlDxA-OY4RjOdnNqxYq2F6IhoNM7nRPg,4147
|
47
|
-
c2cwsgiutils/scripts/coverage_report.py,sha256=7UNbt8zIVMjhH9M2y5uUnCS6r5htNwPcEQ8fP-IlQfw,1010
|
48
|
-
c2cwsgiutils/scripts/genversion.py,sha256=A5jE3E-yNMd3IW4jRFJmvLHphrvko4rA-is43sFKoxw,1998
|
49
|
-
c2cwsgiutils/scripts/stats_db.py,sha256=OWMOjJMMiRk2R6wi9DjnP7ie0ejPKNLLqx-3HqQt_UM,9126
|
50
|
-
c2cwsgiutils/scripts/test_print.py,sha256=LVOUcXsJh-kqA1pq_6SGxFC1m21Zg9WYKjrzZi_fO3U,2094
|
51
|
-
c2cwsgiutils/sql_profiler/__init__.py,sha256=lZYq83LYlm_P4uNMv0WU_B9Obl90YaNzkqWtteUHadg,876
|
52
|
-
c2cwsgiutils/sql_profiler/_impl.py,sha256=ohH42gQ1VBeUj4ggff6vT3JwQohrDvSvqQLGCRdG9L0,3446
|
53
|
-
c2cwsgiutils/sqlalchemylogger/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
54
|
-
c2cwsgiutils/sqlalchemylogger/_filters.py,sha256=OJQ9_WA-fd9fMZ7TUNFzHHTPI6msw2NVBl5RoeYFnGw,752
|
55
|
-
c2cwsgiutils/sqlalchemylogger/_models.py,sha256=aHzaVA05kPNa2B_s5kLtEMCTLmr9TgH3Gv2PzVYGhxo,1422
|
56
|
-
c2cwsgiutils/sqlalchemylogger/handlers.py,sha256=96b3Li6pRuNsajwZ1ezGQdf327WoUlA1OA6-zFHpIJM,4688
|
57
|
-
c2cwsgiutils/stats_pyramid/__init__.py,sha256=Vxncq4iRCIlrPjiugQVARqg3VjAMK5H3iMXpWO3NISo,971
|
58
|
-
c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=qTQ7xkvE6TN6mcOUhcPpOQBJla-yNY08lV05OZdjGkA,2841
|
59
|
-
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=tDm3Y-kRVp1Y_jEaz1bFlWHCeXkHMAogOKE6qN-rO08,2886
|
60
|
-
c2cwsgiutils/stats_pyramid/_views.py,sha256=c3PfyrXzG6I184-bWUrHpR1bt3xyIMgs5mfcZ6NjEwU,527
|
61
|
-
c2cwsgiutils-5.1.7.dev20230901073305.data/scripts/c2cwsgiutils-run,sha256=GEd1wKRUYFZghmfkUQJesH1TzwnaZ9k2MZmCw6NrhS4,543
|
62
|
-
tests/acceptance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
|
-
tests/acceptance/test_utils.py,sha256=_4GDX0Lx5bAUJq5WRm0aj-nTllIXDcmo3bqRrbAgs20,380
|
64
|
-
c2cwsgiutils-5.1.7.dev20230901073305.dist-info/LICENSE.txt,sha256=PQNFSY2-jzHIwQ_UxvzxLVY5yLryW_lVLHVgUCvtKos,1668
|
65
|
-
c2cwsgiutils-5.1.7.dev20230901073305.dist-info/METADATA,sha256=hjliBqJXQoZ_WuuFpLqi-WvJ0sa-WF6Gg8IhjR5GRNA,32097
|
66
|
-
c2cwsgiutils-5.1.7.dev20230901073305.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
67
|
-
c2cwsgiutils-5.1.7.dev20230901073305.dist-info/entry_points.txt,sha256=a0xudfCo9osK8ZH62-rY8Oc1sSY4wrlMM81rtfi1akg,1090
|
68
|
-
c2cwsgiutils-5.1.7.dev20230901073305.dist-info/top_level.txt,sha256=U2UMa3vcTM_6GxZe2f8KeOi-8gIcUruUnmhVSZZ27BI,19
|
69
|
-
c2cwsgiutils-5.1.7.dev20230901073305.dist-info/RECORD,,
|
@@ -1,25 +0,0 @@
|
|
1
|
-
[console_scripts]
|
2
|
-
c2cwsgiutils-check-es = c2cwsgiutils.scripts.check_es:main
|
3
|
-
c2cwsgiutils-coverage-report = c2cwsgiutils.scripts.coverage_report:main
|
4
|
-
c2cwsgiutils-genversion = c2cwsgiutils.scripts.genversion:main
|
5
|
-
c2cwsgiutils-stats-db = c2cwsgiutils.scripts.stats_db:main
|
6
|
-
c2cwsgiutils-test-print = c2cwsgiutils.scripts.test_print:main
|
7
|
-
c2cwsgiutils_check_es.py = c2cwsgiutils.scripts.check_es:deprecated
|
8
|
-
c2cwsgiutils_coverage_report.py = c2cwsgiutils.scripts.coverage_report:deprecated
|
9
|
-
c2cwsgiutils_genversion.py = c2cwsgiutils.scripts.genversion:deprecated
|
10
|
-
c2cwsgiutils_stats_db.py = c2cwsgiutils.scripts.stats_db:deprecated
|
11
|
-
c2cwsgiutils_test_print.py = c2cwsgiutils.scripts.test_print:deprecated
|
12
|
-
|
13
|
-
[paste.filter_factory]
|
14
|
-
client_info = c2cwsgiutils.client_info:filter_factory
|
15
|
-
sentry = c2cwsgiutils.sentry:filter_factory
|
16
|
-
|
17
|
-
[plaster.loader_factory]
|
18
|
-
c2c = c2cwsgiutils.loader:Loader
|
19
|
-
c2c+egg = c2cwsgiutils.loader:Loader
|
20
|
-
c2c+ini = c2cwsgiutils.loader:Loader
|
21
|
-
|
22
|
-
[plaster.wsgi_loader_factory]
|
23
|
-
c2c = c2cwsgiutils.loader:Loader
|
24
|
-
c2c+egg = c2cwsgiutils.loader:Loader
|
25
|
-
c2c+ini = c2cwsgiutils.loader:Loader
|
tests/acceptance/__init__.py
DELETED
File without changes
|
tests/acceptance/test_utils.py
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
from c2cwsgiutils.acceptance import utils
|
2
|
-
|
3
|
-
|
4
|
-
def test_approx():
|
5
|
-
assert {"a": 5.61, "b": [4.32], "c": {"d": 2.33}} == utils.approx(
|
6
|
-
{"a": 5.6, "b": [4.3], "c": {"d": 2.3}}, abs=0.1
|
7
|
-
)
|
8
|
-
|
9
|
-
assert {"a": 5.61, "b": [4.32], "c": {"d": 2.5}} != utils.approx(
|
10
|
-
{"a": 5.6, "b": [4.3], "c": {"d": 2.3}}, abs=0.1
|
11
|
-
)
|
12
|
-
|
13
|
-
assert 3.14 == utils.approx(3.15, abs=0.02)
|