c2cwsgiutils 6.2.0.dev400__py3-none-any.whl → 6.2.0.dev404__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.
@@ -1,6 +1,6 @@
1
1
  # Copyright (c) 2026, Camptocamp SA
2
2
 
3
- import datetime
3
+ import datetime as dt
4
4
  import gc
5
5
  import logging
6
6
  import os
@@ -164,10 +164,10 @@ def _error(request: pyramid.request.Request) -> Any:
164
164
  def _time(request: pyramid.request.Request) -> Any:
165
165
  del request # unused
166
166
  return {
167
- "local_time": str(datetime.datetime.now()), # noqa: DTZ005
168
- "gmt_time": str(datetime.datetime.now(datetime.UTC)),
167
+ "local_time": str(dt.datetime.now()), # noqa: DTZ005
168
+ "gmt_time": str(dt.datetime.now(dt.UTC)),
169
169
  "epoch": time.time(),
170
- "timezone": datetime.datetime.now().astimezone().tzname(),
170
+ "timezone": dt.datetime.now().astimezone().tzname(),
171
171
  }
172
172
 
173
173
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: c2cwsgiutils
3
- Version: 6.2.0.dev400
3
+ Version: 6.2.0.dev404
4
4
  Summary: Common utilities for Camptocamp WSGI applications
5
5
  License-Expression: BSD-2-Clause
6
6
  License-File: LICENSE
@@ -63,7 +63,10 @@ Requires-Dist: lxml ; extra == "all"
63
63
  Requires-Dist: lxml ; extra == "tests"
64
64
  Requires-Dist: objgraph ; extra == "all"
65
65
  Requires-Dist: objgraph ; extra == "debug"
66
- Requires-Dist: prometheus-client
66
+ Requires-Dist: prometheus-client ; extra == "all"
67
+ Requires-Dist: prometheus-client ; extra == "standard"
68
+ Requires-Dist: prometheus-client ; extra == "waitress"
69
+ Requires-Dist: prometheus-client ; extra == "webserver"
67
70
  Requires-Dist: psutil ; extra == "all"
68
71
  Requires-Dist: psutil ; extra == "debug"
69
72
  Requires-Dist: psycopg[binary] (>=3.2,<4.0) ; extra == "all"
@@ -20,7 +20,7 @@ c2cwsgiutils/db.py,sha256=yUwYBoC_J3XiwOFC76NG4HUTGQsFS9u_MhjhkeibGOU,16695
20
20
  c2cwsgiutils/db_maintenance_view.py,sha256=P_iqj7pmqgQOWOin40k6FXyU8HXYHr_Mge7WvF1I3e0,3086
21
21
  c2cwsgiutils/debug/__init__.py,sha256=JAGeS8OHmJaJir8lx1RSqN9mxWGEj1G4uqm5eOxBHPA,1370
22
22
  c2cwsgiutils/debug/_listeners.py,sha256=zdZDVDH2XE0ZzIAzcKfJnss5UxECVqaKbABxBOni_h8,4310
23
- c2cwsgiutils/debug/_views.py,sha256=d5CAfS10E7cXHw7EXXbT7p_viFh4hEf-vakJ-2fxJ64,8658
23
+ c2cwsgiutils/debug/_views.py,sha256=q4kpaplR4DOvL3bcdbkCIpUrpKQbzySFsb4HHPRhgn8,8640
24
24
  c2cwsgiutils/debug/utils.py,sha256=zHsaucc_SzNMyFFXGkaSoiEtRaKqbj9YmWCyU547xgI,2375
25
25
  c2cwsgiutils/errors.py,sha256=oxVsyEBpMwk-4p5r061ieAmyPq-JHAuayVYCjJv3bbQ,6785
26
26
  c2cwsgiutils/health_check.py,sha256=4Kz77GSNd8egJdwg48bZ62A9TyhsO72iaRIOfiI2lMM,20800
@@ -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.dev400.dist-info/METADATA,sha256=fRx23GnB4p2Sw1Q3WMWpdSni53viopovnS7VeYNbooU,37622
65
- c2cwsgiutils-6.2.0.dev400.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
66
- c2cwsgiutils-6.2.0.dev400.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
67
- c2cwsgiutils-6.2.0.dev400.dist-info/licenses/LICENSE,sha256=hCNci_ppSy6SKe_nTdgzjCsTIaNQgAKqDSghWn_G-1I,1304
68
- c2cwsgiutils-6.2.0.dev400.dist-info/RECORD,,
64
+ c2cwsgiutils-6.2.0.dev404.dist-info/METADATA,sha256=5F17TGYHsjXDf6K0RKijl9vTjcZRpqO3bAddxoXW2n0,37805
65
+ c2cwsgiutils-6.2.0.dev404.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
66
+ c2cwsgiutils-6.2.0.dev404.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
67
+ c2cwsgiutils-6.2.0.dev404.dist-info/licenses/LICENSE,sha256=hCNci_ppSy6SKe_nTdgzjCsTIaNQgAKqDSghWn_G-1I,1304
68
+ c2cwsgiutils-6.2.0.dev404.dist-info/RECORD,,