logger-conf 0.1.0__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.
- logger_conf-0.1.0/.github/workflows/ci.yml +51 -0
- logger_conf-0.1.0/.gitignore +6 -0
- logger_conf-0.1.0/AGENTS.md +39 -0
- logger_conf-0.1.0/CLAUDE.md +1 -0
- logger_conf-0.1.0/LICENSE +201 -0
- logger_conf-0.1.0/NOTICE +1 -0
- logger_conf-0.1.0/PKG-INFO +12 -0
- logger_conf-0.1.0/README.md +50 -0
- logger_conf-0.1.0/publish-config.json +11 -0
- logger_conf-0.1.0/pyproject.toml +35 -0
- logger_conf-0.1.0/ruff.toml +58 -0
- logger_conf-0.1.0/src/logger_conf/__init__.py +3 -0
- logger_conf-0.1.0/src/logger_conf/_otlp.py +35 -0
- logger_conf-0.1.0/src/logger_conf/config.py +141 -0
- logger_conf-0.1.0/src/logger_conf/py.typed +0 -0
- logger_conf-0.1.0/tests/test_config.py +49 -0
- logger_conf-0.1.0/uv.lock +318 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
check:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v5
|
|
18
|
+
|
|
19
|
+
- uses: astral-sh/setup-uv@v7
|
|
20
|
+
with:
|
|
21
|
+
enable-cache: true
|
|
22
|
+
|
|
23
|
+
- name: Lint
|
|
24
|
+
run: uv run ruff check .
|
|
25
|
+
|
|
26
|
+
- name: Format
|
|
27
|
+
run: uv run ruff format --check .
|
|
28
|
+
|
|
29
|
+
- name: Type check
|
|
30
|
+
run: uv run basedpyright
|
|
31
|
+
|
|
32
|
+
- name: Test
|
|
33
|
+
run: uv run pytest
|
|
34
|
+
|
|
35
|
+
publish:
|
|
36
|
+
needs: check
|
|
37
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
permissions:
|
|
40
|
+
contents: write
|
|
41
|
+
id-token: write
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v5
|
|
44
|
+
|
|
45
|
+
# Workaround: fetch-tags is broken with shallow clones
|
|
46
|
+
- run: git fetch --tags origin
|
|
47
|
+
|
|
48
|
+
- uses: astral-sh/setup-uv@v7
|
|
49
|
+
|
|
50
|
+
- name: Publish
|
|
51
|
+
run: uvx --from git+https://github.com/outernet-foundation/pubpkg.git@ea2ecf35a93a3c6405b9430a651d2a7b3d2faa6c publish-packages --config publish-config.json
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# logger-conf
|
|
2
|
+
|
|
3
|
+
## What this is
|
|
4
|
+
|
|
5
|
+
`logger-conf` (import `logger_conf`) is an opinionated stdlib-`logging` configuration: one call (`configure_logging`) stands up a coherent logging topology over Python's standard library `logging` — it does **not** replace the log-call API (callers still write `logger.info(...)`). It decides where records go and how they're formatted.
|
|
6
|
+
|
|
7
|
+
## The three-sink policy
|
|
8
|
+
|
|
9
|
+
`configure_logging` wires up to three sinks, and which sinks are active is deliberate:
|
|
10
|
+
|
|
11
|
+
- **stderr stream, always, human-formatted** (`HumanFormatter`: `HH:MM:SS [level] msg key=value`). For the operator watching the terminal now.
|
|
12
|
+
- **JSONL file, when `log_file_path` is passed.** Rotating (`RotatingFileHandler`). This is the **durable structured record** — `jq`-able, agent-tail-friendly. It is *always* JSON when it exists (never human text). The local file is the durable record of truth; OTLP (below) is a best-effort remote mirror, never a substitute for file structure. Reason: OTLP can drop records (batching, collector down, network); if structure lived only in OTLP and the file were human text, structured data would be lost on any OTLP hiccup.
|
|
13
|
+
- **OTLP export, optional, when `OTEL_EXPORTER_OTLP_ENDPOINT` is set AND the `[otlp]` extra is installed.** Mirrors records to a collector (Loki/Grafana). Behind an optional extra so consumers that don't aggregate (CLI scripts) don't drag in `opentelemetry-sdk`.
|
|
14
|
+
|
|
15
|
+
This policy supersedes the two originals it was unified from: the pulsar variant (JSON file + human stderr, no OTLP) and the placeframe variant (human stderr + OTLP, optional human file). The unification keeps pulsar's always-JSON-file strength and adds placeframe's OTLP/robustness — at the cost of reverting placeframe's file to JSON (acceptable: most placeframe services pass no `log_file_path`, so the blast radius is the few that do, which gain a durable structured record they previously lacked).
|
|
16
|
+
|
|
17
|
+
## OTLP optional-extra design
|
|
18
|
+
|
|
19
|
+
opentelemetry is **not** a core dependency. The import lives behind a wrapper submodule (`_otlp.py`) that imports opentelemetry unconditionally; `config.py` imports `_otlp` under `try/except ImportError`. A consumer without `[otlp]` never pays the import cost or the dependency. If the env var is set but the extra isn't installed, `configure_logging` prints a one-line warning to stderr and skips OTLP rather than crashing — the operator asked for export but didn't install the machinery.
|
|
20
|
+
|
|
21
|
+
## Dependencies
|
|
22
|
+
|
|
23
|
+
One core dependency: `python-json-logger` (stdlib has no JSON formatter; hand-rolling one reinvents exception serialization and extras filtering that `python-json-logger` handles robustly). Unlike `bashrun` (zero-dep by design — its job is wrapping `subprocess`), a logging-configuration package legitimately needs a JSON formatter. `[otlp]` is the only optional extra.
|
|
24
|
+
|
|
25
|
+
## Attribution
|
|
26
|
+
|
|
27
|
+
Resource attributes (`service.name`, `service.namespace` when passed, `service.instance.id`, `service.version` from `SERVICE_VERSION`, `deployment.environment.name` from `DEPLOYMENT_ENVIRONMENT`, `container.name` from `HOSTNAME`) are attached to OTLP records. `service_namespace` is parameterized — each caller passes its own (pulsar→`"pulsar"`, placeframe→`"placeframe"`, etc.); the placeframe variant's hardcoded namespace became a parameter here.
|
|
28
|
+
|
|
29
|
+
## Provenance
|
|
30
|
+
|
|
31
|
+
`HumanFormatter` and `_STANDARD_LOG_RECORD_ATTRS` existed byte-identically in both pulsar's and placeframe's `common` packages; this is now their canonical home. See `design/workspace-redesign.md` in the pulsar repo and the `pylogconf`/`logconf` extraction discussion for the convergence rationale.
|
|
32
|
+
|
|
33
|
+
## Name
|
|
34
|
+
|
|
35
|
+
The distribution and import renamed from `logconf`/`logconf` to `logger-conf`/`logger_conf` (2026-09-20): the bare PyPI name is owned by an unrelated same-purpose package, and `placeframe-common`'s published wheel required `logconf[otlp]` — resolving onto the foreign code. Both levels renamed together per the import==distribution-name convention; the GitHub repo renamed with it (`logconf` → `logger-conf`, redirects cover old links). An earlier same-day ruling of `log-conf` was superseded before anything published — no artifact ever carried it.
|
|
36
|
+
|
|
37
|
+
## Release flow
|
|
38
|
+
|
|
39
|
+
Publishing rides `ci.yml`'s `publish` job on every push to `main` (gated on the check job): pubpkg — invoked uvx-isolated from a pinned git ref, never a project dependency — computes the plan from the tag ledger and path-diff, patches the version ephemerally, and publishes to PyPI under OIDC trusted publishing (pending publisher bound to `ci.yml`, no environment). The committed `pyproject.toml` version is permanently the `0.0.0.dev0` sentinel; the `logger-conf-v*` tags are the version ledger (first release `0.1.0`, patch-auto thereafter). API-breaking changes ship with a manually bumped version — patch-auto assumes additive changes.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
logger_conf-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright 2026 Tyler Hatch
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: logger-conf
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Opinionated stdlib logging configuration: human stderr + JSON file + optional OTLP
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
License-File: NOTICE
|
|
7
|
+
Requires-Python: >=3.13
|
|
8
|
+
Requires-Dist: python-json-logger>=3.2.0
|
|
9
|
+
Provides-Extra: otlp
|
|
10
|
+
Requires-Dist: opentelemetry-api>=1.24.0; extra == 'otlp'
|
|
11
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.24.0; extra == 'otlp'
|
|
12
|
+
Requires-Dist: opentelemetry-sdk>=1.24.0; extra == 'otlp'
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# logger-conf
|
|
2
|
+
|
|
3
|
+
Opinionated stdlib-`logging` configuration for Python. One call — `configure_logging("my-service")` — stands up a coherent logging topology over the standard library `logging` module (it does *not* replace the log-call API; callers still write `logger.info(...)`). It decides where records go and how they're formatted:
|
|
4
|
+
|
|
5
|
+
- a **human-readable stderr stream** (`HH:MM:SS [level] msg key=value`) for the operator watching now,
|
|
6
|
+
- an optional **durable structured JSONL file** for later inspection, `jq`, and agent tail-grep,
|
|
7
|
+
- optional **OTLP export** (to Loki/Grafana) for cross-service aggregation, behind an `[otlp]` extra.
|
|
8
|
+
|
|
9
|
+
## Setup
|
|
10
|
+
|
|
11
|
+
Requires Python 3.13+ and [uv](https://docs.astral.sh/uv/).
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
uv sync # core only (human stderr + JSON file)
|
|
15
|
+
uv sync --extra otlp # add OTLP export support
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```python
|
|
21
|
+
from logger_conf import configure_logging
|
|
22
|
+
from logging import getLogger
|
|
23
|
+
|
|
24
|
+
configure_logging("my-service", log_file_path=Path("logs/my-service.jsonl"))
|
|
25
|
+
logger = getLogger(__name__)
|
|
26
|
+
logger.info("started", extra={"port": 8080})
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
OTLP export activates automatically when `OTEL_EXPORTER_OTLP_ENDPOINT` is set and `logger-conf[otlp]` is installed. Attribution (`service_namespace`, etc.) and uvicorn-logger wiring are optional kwargs; see `configure_logging`'s signature.
|
|
30
|
+
|
|
31
|
+
## Consuming from another repo
|
|
32
|
+
|
|
33
|
+
Install from PyPI:
|
|
34
|
+
|
|
35
|
+
```toml
|
|
36
|
+
[project]
|
|
37
|
+
dependencies = ["logger-conf>=0.1.0"]
|
|
38
|
+
# for OTLP: dependencies = ["logger-conf[otlp]>=0.1.0"]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
To test an unreleased change, pin the repo at a git ref in a scratch branch instead (`logger-conf = { git = "https://github.com/outernet-foundation/logger-conf.git", rev = "<sha>" }` under `[tool.uv.sources]`) and drop the pin when the release lands.
|
|
42
|
+
|
|
43
|
+
## Development
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
uv run ruff check .
|
|
47
|
+
uv run ruff format --check .
|
|
48
|
+
uv run basedpyright
|
|
49
|
+
uv run pytest
|
|
50
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "logger-conf"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Opinionated stdlib logging configuration: human stderr + JSON file + optional OTLP"
|
|
5
|
+
requires-python = ">=3.13"
|
|
6
|
+
dependencies = [
|
|
7
|
+
"python-json-logger>=3.2.0",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
[project.optional-dependencies]
|
|
11
|
+
otlp = [
|
|
12
|
+
"opentelemetry-api>=1.24.0",
|
|
13
|
+
"opentelemetry-sdk>=1.24.0",
|
|
14
|
+
"opentelemetry-exporter-otlp-proto-grpc>=1.24.0",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[dependency-groups]
|
|
18
|
+
dev = ["basedpyright>=1.39.10", "logger-conf[otlp]", "pytest>=8.0.0", "ruff>=0.14.11"]
|
|
19
|
+
|
|
20
|
+
[build-system]
|
|
21
|
+
requires = ["hatchling"]
|
|
22
|
+
build-backend = "hatchling.build"
|
|
23
|
+
|
|
24
|
+
[tool.hatch.build.targets.wheel]
|
|
25
|
+
packages = ["src/logger_conf"]
|
|
26
|
+
include = ["src/logger_conf/py.typed"]
|
|
27
|
+
|
|
28
|
+
[tool.basedpyright]
|
|
29
|
+
venvPath = "."
|
|
30
|
+
venv = ".venv"
|
|
31
|
+
typeCheckingMode = "strict"
|
|
32
|
+
include = ["src", "tests"]
|
|
33
|
+
|
|
34
|
+
[tool.pytest.ini_options]
|
|
35
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
target-version = "py313"
|
|
2
|
+
line-length = 120
|
|
3
|
+
preview = true
|
|
4
|
+
|
|
5
|
+
[lint]
|
|
6
|
+
select = ["ALL"]
|
|
7
|
+
ignore = [
|
|
8
|
+
# Type annotations — basedpyright strict mode handles this
|
|
9
|
+
"ANN",
|
|
10
|
+
# No docstrings, no copyright headers
|
|
11
|
+
"D",
|
|
12
|
+
"DOC",
|
|
13
|
+
"CPY",
|
|
14
|
+
# TODO/FIXME comment formatting
|
|
15
|
+
"TD",
|
|
16
|
+
"FIX",
|
|
17
|
+
# Exception message ergonomics — literal-indirection and custom-class churn without benefit
|
|
18
|
+
"raw-string-in-exception",
|
|
19
|
+
"f-string-in-exception",
|
|
20
|
+
"raise-vanilla-args",
|
|
21
|
+
# Class attribute names never conflict with builtins via self.x
|
|
22
|
+
"builtin-attribute-shadowing",
|
|
23
|
+
# Function-size counters — C901 already covers structural complexity
|
|
24
|
+
"too-many-return-statements",
|
|
25
|
+
"too-many-branches",
|
|
26
|
+
"too-many-arguments",
|
|
27
|
+
"too-many-locals",
|
|
28
|
+
"too-many-statements",
|
|
29
|
+
"too-many-positional-arguments",
|
|
30
|
+
# Boolean parameters read fine as keyword-only flags here
|
|
31
|
+
"boolean-type-hint-positional-argument",
|
|
32
|
+
"boolean-default-value-positional-argument",
|
|
33
|
+
"boolean-positional-value-in-call",
|
|
34
|
+
# Relative imports are the intra-package convention
|
|
35
|
+
"relative-imports",
|
|
36
|
+
# Formatter-owned; enforced by `ruff format`
|
|
37
|
+
"missing-trailing-comma",
|
|
38
|
+
"unsorted-imports",
|
|
39
|
+
# Magic values in comparisons are readable here
|
|
40
|
+
"magic-value-comparison",
|
|
41
|
+
# The formatter owns wrapping; long string literals and URLs stay on one line
|
|
42
|
+
"line-too-long",
|
|
43
|
+
# src-layout tests need no __init__.py
|
|
44
|
+
"implicit-namespace-package",
|
|
45
|
+
# Runtime-used typing imports stay at module level
|
|
46
|
+
"typing-only-first-party-import",
|
|
47
|
+
"typing-only-third-party-import",
|
|
48
|
+
"typing-only-standard-library-import",
|
|
49
|
+
# Small literal tuples read fine in membership tests
|
|
50
|
+
"literal-membership",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[lint.per-file-ignores]
|
|
54
|
+
"tests/**" = ["assert", "no-self-use"]
|
|
55
|
+
"src/logger_conf/_otlp.py" = ["import-private-name"]
|
|
56
|
+
|
|
57
|
+
[lint.flake8-builtins]
|
|
58
|
+
ignorelist = ["id", "map"]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Wrapper module (suppression boundary): the opentelemetry SDK exposes its public logging API
|
|
2
|
+
# under underscore-prefixed modules (opentelemetry._logs, opentelemetry.sdk._logs,
|
|
3
|
+
# ..._log_exporter), so the import-private-name lint is unavoidable here. config.py imports this
|
|
4
|
+
# module behind a try/except so consumers without the [otlp] extra never pay the import cost; the
|
|
5
|
+
# per-file ignore for import-private-name lives in ruff.toml.
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
import logging
|
|
9
|
+
import os
|
|
10
|
+
|
|
11
|
+
from opentelemetry._logs import set_logger_provider
|
|
12
|
+
from opentelemetry.exporter.otlp.proto.grpc._log_exporter import OTLPLogExporter
|
|
13
|
+
from opentelemetry.sdk._logs import LoggerProvider, LoggingHandler
|
|
14
|
+
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
|
|
15
|
+
from opentelemetry.sdk.resources import Resource
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def build_resource(service_name: str, service_namespace: str | None, instance_id: str) -> Resource:
|
|
19
|
+
attributes: dict[str, str] = {
|
|
20
|
+
"service.name": service_name,
|
|
21
|
+
"service.instance.id": instance_id,
|
|
22
|
+
"service.version": os.environ.get("SERVICE_VERSION", "unknown"),
|
|
23
|
+
"deployment.environment.name": os.environ.get("DEPLOYMENT_ENVIRONMENT", "development"),
|
|
24
|
+
"container.name": os.environ.get("HOSTNAME", instance_id),
|
|
25
|
+
}
|
|
26
|
+
if service_namespace is not None:
|
|
27
|
+
attributes["service.namespace"] = service_namespace
|
|
28
|
+
return Resource.create(attributes)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def build_handler(resource: Resource, endpoint: str) -> LoggingHandler:
|
|
32
|
+
provider = LoggerProvider(resource=resource)
|
|
33
|
+
provider.add_log_record_processor(BatchLogRecordProcessor(OTLPLogExporter(endpoint=endpoint, insecure=True)))
|
|
34
|
+
set_logger_provider(provider)
|
|
35
|
+
return LoggingHandler(level=logging.NOTSET, logger_provider=provider)
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
import logging.config
|
|
5
|
+
import os
|
|
6
|
+
import socket
|
|
7
|
+
import sys
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from tempfile import mkdtemp
|
|
10
|
+
from types import ModuleType
|
|
11
|
+
|
|
12
|
+
from pythonjsonlogger.json import JsonFormatter
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
from . import _otlp
|
|
16
|
+
except ImportError:
|
|
17
|
+
_otlp = None
|
|
18
|
+
|
|
19
|
+
_STANDARD_LOG_RECORD_ATTRS = frozenset({
|
|
20
|
+
"args",
|
|
21
|
+
"asctime",
|
|
22
|
+
"created",
|
|
23
|
+
"exc_info",
|
|
24
|
+
"exc_text",
|
|
25
|
+
"filename",
|
|
26
|
+
"funcName",
|
|
27
|
+
"levelname",
|
|
28
|
+
"levelno",
|
|
29
|
+
"lineno",
|
|
30
|
+
"message",
|
|
31
|
+
"module",
|
|
32
|
+
"msecs",
|
|
33
|
+
"msg",
|
|
34
|
+
"name",
|
|
35
|
+
"pathname",
|
|
36
|
+
"process",
|
|
37
|
+
"processName",
|
|
38
|
+
"relativeCreated",
|
|
39
|
+
"stack_info",
|
|
40
|
+
"thread",
|
|
41
|
+
"threadName",
|
|
42
|
+
"taskName",
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class HumanFormatter(logging.Formatter):
|
|
47
|
+
def format(self, record: logging.LogRecord) -> str:
|
|
48
|
+
timestamp = self.formatTime(record, "%H:%M:%S")
|
|
49
|
+
base = f"{timestamp} [{record.levelname.lower()}] {record.getMessage()}"
|
|
50
|
+
extras = {
|
|
51
|
+
key: value
|
|
52
|
+
for key, value in record.__dict__.items()
|
|
53
|
+
if key not in _STANDARD_LOG_RECORD_ATTRS and not key.startswith("_")
|
|
54
|
+
}
|
|
55
|
+
if not extras:
|
|
56
|
+
return base
|
|
57
|
+
rendered_extras = " ".join(f"{key}={value}" for key, value in extras.items())
|
|
58
|
+
return f"{base} {rendered_extras}"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _resolve_log_file_path(requested: Path) -> Path:
|
|
62
|
+
# Fall back to a tmp dir if the requested path isn't writable, so callers (e.g. an OpenAPI
|
|
63
|
+
# dump on a dev machine without /var access) succeed without forcing every callsite to set
|
|
64
|
+
# an override.
|
|
65
|
+
try:
|
|
66
|
+
requested.parent.mkdir(parents=True, exist_ok=True)
|
|
67
|
+
except PermissionError:
|
|
68
|
+
return Path(mkdtemp(prefix=f"{requested.stem}-logs-")) / requested.name
|
|
69
|
+
else:
|
|
70
|
+
return requested
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def configure_logging(
|
|
74
|
+
service_name: str,
|
|
75
|
+
*,
|
|
76
|
+
service_namespace: str | None = None,
|
|
77
|
+
instance_id: str | None = None,
|
|
78
|
+
log_file_path: Path | None = None,
|
|
79
|
+
uvicorn_logger_handlers: bool = False,
|
|
80
|
+
) -> Path | None:
|
|
81
|
+
# stderr is always human-formatted (for the operator watching); the file, when requested,
|
|
82
|
+
# is always JSON (the durable structured record, jq/agent-tail friendly); OTLP, when an
|
|
83
|
+
# endpoint is configured and the [otlp] extra is installed, mirrors records to an aggregator.
|
|
84
|
+
instance_id = instance_id or socket.gethostname()
|
|
85
|
+
|
|
86
|
+
handlers: dict[str, dict[str, object]] = {
|
|
87
|
+
"stream": {"class": "logging.StreamHandler", "formatter": "human", "stream": sys.stderr},
|
|
88
|
+
}
|
|
89
|
+
handler_names: list[str] = ["stream"]
|
|
90
|
+
|
|
91
|
+
otlp_endpoint = os.environ.get("OTEL_EXPORTER_OTLP_ENDPOINT")
|
|
92
|
+
if otlp_endpoint:
|
|
93
|
+
otlp_module: ModuleType | None = _otlp
|
|
94
|
+
if otlp_module is None:
|
|
95
|
+
sys.stderr.write(
|
|
96
|
+
"OTEL_EXPORTER_OTLP_ENDPOINT is set but logger-conf[otlp] is not installed; skipping OTLP export.\n"
|
|
97
|
+
)
|
|
98
|
+
else:
|
|
99
|
+
resource = otlp_module.build_resource(service_name, service_namespace, instance_id)
|
|
100
|
+
handlers["otlp"] = {
|
|
101
|
+
"()": lambda res=resource, ep=otlp_endpoint: otlp_module.build_handler(res, ep),
|
|
102
|
+
}
|
|
103
|
+
handler_names.append("otlp")
|
|
104
|
+
|
|
105
|
+
resolved_log_file_path: Path | None = None
|
|
106
|
+
if log_file_path is not None:
|
|
107
|
+
resolved_log_file_path = _resolve_log_file_path(log_file_path)
|
|
108
|
+
handlers["file"] = {
|
|
109
|
+
"()": "logging.handlers.RotatingFileHandler",
|
|
110
|
+
"formatter": "json",
|
|
111
|
+
"filename": str(resolved_log_file_path),
|
|
112
|
+
"maxBytes": 50 * 1024 * 1024,
|
|
113
|
+
"backupCount": 5,
|
|
114
|
+
"encoding": "utf-8",
|
|
115
|
+
}
|
|
116
|
+
handler_names.append("file")
|
|
117
|
+
|
|
118
|
+
loggers: dict[str, dict[str, object]] = {}
|
|
119
|
+
if uvicorn_logger_handlers:
|
|
120
|
+
for name in ("uvicorn", "uvicorn.access", "uvicorn.error"):
|
|
121
|
+
loggers[name] = {"handlers": handler_names, "level": "INFO", "propagate": False}
|
|
122
|
+
|
|
123
|
+
logging.config.dictConfig({
|
|
124
|
+
"version": 1,
|
|
125
|
+
"disable_existing_loggers": False,
|
|
126
|
+
"formatters": {
|
|
127
|
+
"human": {"()": HumanFormatter},
|
|
128
|
+
"json": {
|
|
129
|
+
"()": JsonFormatter,
|
|
130
|
+
"format": "%(levelname)s %(name)s %(message)s",
|
|
131
|
+
"rename_fields": {"levelname": "level"},
|
|
132
|
+
"timestamp": True,
|
|
133
|
+
"static_fields": {"service": service_name},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
"handlers": handlers,
|
|
137
|
+
"root": {"handlers": handler_names, "level": "INFO"},
|
|
138
|
+
"loggers": loggers,
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
return resolved_log_file_path
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import logging
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from logger_conf import HumanFormatter, configure_logging
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def _make_record(message: str, **extras: object) -> logging.LogRecord:
|
|
9
|
+
record = logging.LogRecord(
|
|
10
|
+
name="test", level=logging.INFO, pathname=__file__, lineno=1, msg=message, args=None, exc_info=None
|
|
11
|
+
)
|
|
12
|
+
for key, value in extras.items():
|
|
13
|
+
setattr(record, key, value)
|
|
14
|
+
return record
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class TestHumanFormatter:
|
|
18
|
+
def test_renders_timestamp_level_message(self):
|
|
19
|
+
formatted = HumanFormatter().format(_make_record("hello"))
|
|
20
|
+
assert formatted.endswith("[info] hello")
|
|
21
|
+
assert formatted[:8].count(":") == 2
|
|
22
|
+
|
|
23
|
+
def test_appends_extras_as_key_value_pairs(self):
|
|
24
|
+
formatted = HumanFormatter().format(_make_record("hello", container="foo", count=3))
|
|
25
|
+
suffix = formatted.split("[info] hello ", 1)[1]
|
|
26
|
+
assert "container=foo" in suffix
|
|
27
|
+
assert "count=3" in suffix
|
|
28
|
+
|
|
29
|
+
def test_omits_extras_when_none(self):
|
|
30
|
+
formatted = HumanFormatter().format(_make_record("hello"))
|
|
31
|
+
assert " " not in formatted.split("[info] hello")[1]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class TestConfigureLogging:
|
|
35
|
+
def test_writes_json_lines_with_service_field(self, tmp_path: Path):
|
|
36
|
+
log_file = tmp_path / "svc.jsonl"
|
|
37
|
+
returned = configure_logging("svc", log_file_path=log_file)
|
|
38
|
+
assert returned == log_file
|
|
39
|
+
|
|
40
|
+
logging.getLogger("svc").info("did a thing", extra={"event": "thing_done"})
|
|
41
|
+
|
|
42
|
+
for handler in logging.getLogger().handlers:
|
|
43
|
+
handler.flush()
|
|
44
|
+
lines = [line for line in log_file.read_text().splitlines() if line.strip()]
|
|
45
|
+
assert lines, "expected at least one JSON log line"
|
|
46
|
+
record = json.loads(lines[-1])
|
|
47
|
+
assert record["service"] == "svc"
|
|
48
|
+
assert record["level"] == "INFO"
|
|
49
|
+
assert record["event"] == "thing_done"
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
version = 1
|
|
2
|
+
revision = 3
|
|
3
|
+
requires-python = ">=3.13"
|
|
4
|
+
resolution-markers = [
|
|
5
|
+
"python_full_version >= '3.14'",
|
|
6
|
+
"python_full_version < '3.14'",
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
[[package]]
|
|
10
|
+
name = "basedpyright"
|
|
11
|
+
version = "1.39.10"
|
|
12
|
+
source = { registry = "https://pypi.org/simple" }
|
|
13
|
+
dependencies = [
|
|
14
|
+
{ name = "nodejs-wheel-binaries" },
|
|
15
|
+
]
|
|
16
|
+
sdist = { url = "https://files.pythonhosted.org/packages/68/43/ad2999f3b09eb2b1e59931d88fac0f7bcc9c17fc18c903268779bd10cc97/basedpyright-1.39.10.tar.gz", hash = "sha256:c8eaf5302f3265e275c7df4fba194d7afa7c1cb53fbfd448e90098360aca2c2e", size = 24740347, upload-time = "2026-08-13T17:09:02.51Z" }
|
|
17
|
+
wheels = [
|
|
18
|
+
{ url = "https://files.pythonhosted.org/packages/be/2a/a224054d75a58786c482f63b8ff2a09fc3362268bd1ebd0a61fb3f982153/basedpyright-1.39.10-py3-none-any.whl", hash = "sha256:cbd75d83c0be841329bcfef2d2f1182f152a6d975b8eb199e75cf5b8e9a3de78", size = 13482322, upload-time = "2026-08-13T17:08:59.074Z" },
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[[package]]
|
|
22
|
+
name = "colorama"
|
|
23
|
+
version = "0.4.6"
|
|
24
|
+
source = { registry = "https://pypi.org/simple" }
|
|
25
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
|
26
|
+
wheels = [
|
|
27
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
[[package]]
|
|
31
|
+
name = "googleapis-common-protos"
|
|
32
|
+
version = "1.75.1"
|
|
33
|
+
source = { registry = "https://pypi.org/simple" }
|
|
34
|
+
dependencies = [
|
|
35
|
+
{ name = "protobuf" },
|
|
36
|
+
]
|
|
37
|
+
sdist = { url = "https://files.pythonhosted.org/packages/72/73/74bcab964c9a7a61f2bb71e8179b0f13e6fa98f7ce00fd168aab291e4a2e/googleapis_common_protos-1.75.1.tar.gz", hash = "sha256:d3042c6c5a2d4e67113104d6b6818b59b6bd92a197f2a91508e801fe815cf071", size = 150967, upload-time = "2026-08-06T06:24:51.972Z" }
|
|
38
|
+
wheels = [
|
|
39
|
+
{ url = "https://files.pythonhosted.org/packages/9a/51/186c02b8549b69ccda44429cf6ff5081e4b61a602ddfe6a8020d1be31d1b/googleapis_common_protos-1.75.1-py3-none-any.whl", hash = "sha256:28a1934bcd33b9c9da66ac301a0a4227e3367f095a17d0375cb98f0a09d93b79", size = 300626, upload-time = "2026-08-06T06:23:46.696Z" },
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "grpcio"
|
|
44
|
+
version = "1.83.0"
|
|
45
|
+
source = { registry = "https://pypi.org/simple" }
|
|
46
|
+
dependencies = [
|
|
47
|
+
{ name = "typing-extensions" },
|
|
48
|
+
]
|
|
49
|
+
sdist = { url = "https://files.pythonhosted.org/packages/0c/98/304898ac4e04e2d5e4e4c2eadc178b1f2a16d5f4bc2f91306c87d64680b9/grpcio-1.83.0.tar.gz", hash = "sha256:7674587248fbbb2ac6e4eecf83a8a0f3d91a928f941de571acfd3a2f007fbc24", size = 13428824, upload-time = "2026-07-23T15:20:37.759Z" }
|
|
50
|
+
wheels = [
|
|
51
|
+
{ url = "https://files.pythonhosted.org/packages/56/eb/135daaa713f32d33b8f99b4153b3f8dc3b2a124996ac15581bf9ebdad3c3/grpcio-1.83.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:6662f3b1e07cc7493d437351860dc867bddc6a93c83ecf33bbfdaf0c217ab2d0", size = 6304480, upload-time = "2026-07-23T15:19:53.962Z" },
|
|
52
|
+
{ url = "https://files.pythonhosted.org/packages/8f/a1/121806ce69f23138dabe06aa595b0e5f1ae051a37e4c1954eed7d692c800/grpcio-1.83.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:74fe6f9e8a35c7dbf32255ee154d15e3e5338a81ed39173d079d594d2e544cd1", size = 12154419, upload-time = "2026-07-23T15:19:56.3Z" },
|
|
53
|
+
{ url = "https://files.pythonhosted.org/packages/b0/e8/d0389e09cd6b4c4d3089b92967ae4e3ffd64795bd349bf2f85cd6656d3da/grpcio-1.83.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:10b3fa0475eb572c9a81a6fe37fa16a9c500c0c91cfc148cac15692b7e3c2867", size = 6873200, upload-time = "2026-07-23T15:19:58.701Z" },
|
|
54
|
+
{ url = "https://files.pythonhosted.org/packages/f8/51/f464c1d211fa50d5adbabe1b2e519948d99c13757052bfc9ea7afa28e284/grpcio-1.83.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:5f20a988480b0f28207f057f7f7ae1313393c3cef0adcfeae8248f9947eaf881", size = 7618811, upload-time = "2026-07-23T15:20:00.733Z" },
|
|
55
|
+
{ url = "https://files.pythonhosted.org/packages/e8/c0/539fe0832f2dd6500a28f5263071623fb34e8d4867aec632ccf81bd21156/grpcio-1.83.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7bd82671b39065ba18cd536e9cd45b27ff649053f81ddd2c6a966d595067080f", size = 7042310, upload-time = "2026-07-23T15:20:02.675Z" },
|
|
56
|
+
{ url = "https://files.pythonhosted.org/packages/8c/ca/ccf617d37ffa72567fa8e005ec7090c99da922799be2fb9847c8b21ca18c/grpcio-1.83.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bc60215b5cb9fc8ca72942c498b551ac2305bd08f6ef8d4e3f0d21b64fbecd61", size = 7575412, upload-time = "2026-07-23T15:20:04.712Z" },
|
|
57
|
+
{ url = "https://files.pythonhosted.org/packages/eb/b9/fd8d5245f823a8e0fd35d90e20ea3aa4acd47f8d5318fa8df307df52dec6/grpcio-1.83.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:f1c3e5689d4b90987b1d72022bcfe866a9a3dc66197484cf856d96b6150e7f45", size = 8604248, upload-time = "2026-07-23T15:20:06.77Z" },
|
|
58
|
+
{ url = "https://files.pythonhosted.org/packages/14/1e/f37632fc11db72dfa4bba86c3a43e54358e53030df111ecae5e91a733ad6/grpcio-1.83.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a21cb4eeeba124443f399be2e8b624943cde864dcbe588cb42e5c483a52a906c", size = 7977458, upload-time = "2026-07-23T15:20:09.109Z" },
|
|
59
|
+
{ url = "https://files.pythonhosted.org/packages/93/b6/d70b69ae5c0cfc341b9ba474980e4ed99cbf05c0e4a14e9eee8cb73db0a5/grpcio-1.83.0-cp313-cp313-win32.whl", hash = "sha256:8fe04f1050a59f875601eb55d42b4f66946fe89817f967e34db1462ccd07dadf", size = 4393993, upload-time = "2026-07-23T15:20:11.017Z" },
|
|
60
|
+
{ url = "https://files.pythonhosted.org/packages/0f/13/45d4cccb555cf4c476226979bf3d2fd0b0254216f7564c3a053e35117efc/grpcio-1.83.0-cp313-cp313-win_amd64.whl", hash = "sha256:6e01ecd9d8ef280abe1365138a4dc318f9a5287f4cb1b41d07816f796653f735", size = 5159650, upload-time = "2026-07-23T15:20:12.979Z" },
|
|
61
|
+
{ url = "https://files.pythonhosted.org/packages/9c/60/f2cca8147ea213d3e43ae9158d03ad04e020fdf32ff027253e1fe93f921d/grpcio-1.83.0-cp314-cp314-linux_armv7l.whl", hash = "sha256:3f351629f6ae16ecc0ec3553e586a6763ffd9f6114044286d0cbec3e09241bfa", size = 6305607, upload-time = "2026-07-23T15:20:15.353Z" },
|
|
62
|
+
{ url = "https://files.pythonhosted.org/packages/d0/ab/d3874931d123a95e83a3ebf8aa04537988fb62425cedb8bf3cefc5ad41b2/grpcio-1.83.0-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:d05ff664100d429335b93c91b8b34ddf9e94a112205e7fa06dede309e44a4e4c", size = 12166617, upload-time = "2026-07-23T15:20:17.435Z" },
|
|
63
|
+
{ url = "https://files.pythonhosted.org/packages/92/ff/6f18f9426b69306f4e00a9add3b0ee2748da8aad53836ef80cab0d62d04f/grpcio-1.83.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7936f2a56cf04f6514705c0fedf400971de01b6aa1719327e4718f410a765e2b", size = 6880213, upload-time = "2026-07-23T15:20:19.98Z" },
|
|
64
|
+
{ url = "https://files.pythonhosted.org/packages/70/21/706d1147c6b93b98f179240c13991fbcc56880eba0c868abb1ad40d8a0a6/grpcio-1.83.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:b0a0be840e51b6b7ee9df9269770faf77bdf4b771053c257c21d12bad607714c", size = 7618335, upload-time = "2026-07-23T15:20:22.161Z" },
|
|
65
|
+
{ url = "https://files.pythonhosted.org/packages/74/04/1a8443c889115ec9e213a213e86bc93a71ee9088027e5befa09aaa0edd9d/grpcio-1.83.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:009667eaf3dcd5224c713589cdc98e7ca4ed0ff0b61132c6b276e930eb83a2df", size = 7043416, upload-time = "2026-07-23T15:20:24.209Z" },
|
|
66
|
+
{ url = "https://files.pythonhosted.org/packages/86/c6/94e0fee5b12bc1da1370185b680988db6f739d19b42d9959db01a7ea50bf/grpcio-1.83.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bb669918fd88936b15599caff4160a77ab74bdeb25f2231f6e45b61282d6107b", size = 7583253, upload-time = "2026-07-23T15:20:26.313Z" },
|
|
67
|
+
{ url = "https://files.pythonhosted.org/packages/a0/97/de1ccb671fb85575bc5192faedf9ecdbdf5b390d2e6584dcf552bcbd370e/grpcio-1.83.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:c19b454d3d3f28db81f2c7c4dbaee96e7f6fd149721733ffe79d6bc530f17404", size = 8605102, upload-time = "2026-07-23T15:20:28.437Z" },
|
|
68
|
+
{ url = "https://files.pythonhosted.org/packages/17/0f/0e0ec749a7034ffcbaa050e39779872950ead90c22e7e0116be3f28b2b46/grpcio-1.83.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:61007cd08640abc5c54547ee32505474c482cd733a53cb87551ea81faa6350af", size = 7979826, upload-time = "2026-07-23T15:20:31.182Z" },
|
|
69
|
+
{ url = "https://files.pythonhosted.org/packages/83/fa/c3fda157287f64bc65acee6c5aa90c41acf9e0d3a8e69a265eecff6d00a1/grpcio-1.83.0-cp314-cp314-win32.whl", hash = "sha256:32e11c37f5285b0c6fa3042c05fe06903696689749833fc64e67dec71b9bbe33", size = 4471765, upload-time = "2026-07-23T15:20:33.195Z" },
|
|
70
|
+
{ url = "https://files.pythonhosted.org/packages/a1/00/b1b26431c9d54eee11724fd6e5585473a2ed47fbc1fb95e5204906a642ce/grpcio-1.83.0-cp314-cp314-win_amd64.whl", hash = "sha256:2bb48cb5e6dd005ca12b89ce4b6ac0b48ff3112c747542ee7986ef611a8ca6d9", size = 5298932, upload-time = "2026-07-23T15:20:35.48Z" },
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[[package]]
|
|
74
|
+
name = "iniconfig"
|
|
75
|
+
version = "2.3.0"
|
|
76
|
+
source = { registry = "https://pypi.org/simple" }
|
|
77
|
+
sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }
|
|
78
|
+
wheels = [
|
|
79
|
+
{ url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
[[package]]
|
|
83
|
+
name = "logger-conf"
|
|
84
|
+
version = "0.0.0.dev0"
|
|
85
|
+
source = { editable = "." }
|
|
86
|
+
dependencies = [
|
|
87
|
+
{ name = "python-json-logger" },
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
[package.optional-dependencies]
|
|
91
|
+
otlp = [
|
|
92
|
+
{ name = "opentelemetry-api" },
|
|
93
|
+
{ name = "opentelemetry-exporter-otlp-proto-grpc" },
|
|
94
|
+
{ name = "opentelemetry-sdk" },
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
[package.dev-dependencies]
|
|
98
|
+
dev = [
|
|
99
|
+
{ name = "basedpyright" },
|
|
100
|
+
{ name = "logger-conf", extra = ["otlp"] },
|
|
101
|
+
{ name = "pytest" },
|
|
102
|
+
{ name = "ruff" },
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
[package.metadata]
|
|
106
|
+
requires-dist = [
|
|
107
|
+
{ name = "opentelemetry-api", marker = "extra == 'otlp'", specifier = ">=1.24.0" },
|
|
108
|
+
{ name = "opentelemetry-exporter-otlp-proto-grpc", marker = "extra == 'otlp'", specifier = ">=1.24.0" },
|
|
109
|
+
{ name = "opentelemetry-sdk", marker = "extra == 'otlp'", specifier = ">=1.24.0" },
|
|
110
|
+
{ name = "python-json-logger", specifier = ">=3.2.0" },
|
|
111
|
+
]
|
|
112
|
+
provides-extras = ["otlp"]
|
|
113
|
+
|
|
114
|
+
[package.metadata.requires-dev]
|
|
115
|
+
dev = [
|
|
116
|
+
{ name = "basedpyright", specifier = ">=1.39.10" },
|
|
117
|
+
{ name = "logger-conf", extras = ["otlp"] },
|
|
118
|
+
{ name = "pytest", specifier = ">=8.0.0" },
|
|
119
|
+
{ name = "ruff", specifier = ">=0.14.11" },
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "nodejs-wheel-binaries"
|
|
124
|
+
version = "24.16.0"
|
|
125
|
+
source = { registry = "https://pypi.org/simple" }
|
|
126
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a3/22/2a5beb4e21417c73233d9f65cf6f3e96e891b80d2f550a8f630ebc6b88c6/nodejs_wheel_binaries-24.16.0.tar.gz", hash = "sha256:c973cb69dc5fd16e6f6dc6e579e2c3d5534e2a1f57619dddf5ba070efa7dde37", size = 8056, upload-time = "2026-05-30T16:52:09.807Z" }
|
|
127
|
+
wheels = [
|
|
128
|
+
{ url = "https://files.pythonhosted.org/packages/83/d1/68b43b53cd0fa83ae6fd406705023ca988d9e0ca41c724d82e66fbeb2ef6/nodejs_wheel_binaries-24.16.0-py2.py3-none-macosx_13_0_arm64.whl", hash = "sha256:d9f8f677dcf30e37ac244f07869726abe043f01eb0f45722b1df31cc2af7093c", size = 55666374, upload-time = "2026-05-30T16:51:39.588Z" },
|
|
129
|
+
{ url = "https://files.pythonhosted.org/packages/e9/b2/40a989159599080da485de966c4c2d207e852ac7aa7864702626d96c8bf5/nodejs_wheel_binaries-24.16.0-py2.py3-none-macosx_13_0_x86_64.whl", hash = "sha256:3d0370fe7120ce9697a4f60d40480d2bd8808d9f30131458d5afc0040d4e5a51", size = 55838487, upload-time = "2026-05-30T16:51:43.383Z" },
|
|
130
|
+
{ url = "https://files.pythonhosted.org/packages/d7/a7/cd42174fb5ff6faff7fa8d326a18914d8f232098ab5de055b57c16fa13ca/nodejs_wheel_binaries-24.16.0-py2.py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:85dc92bbb79c851569c5925dcc2a4c915a034efab375f99e4e7e6bbe9cca8342", size = 60179540, upload-time = "2026-05-30T16:51:47.036Z" },
|
|
131
|
+
{ url = "https://files.pythonhosted.org/packages/2b/95/c8a1f9ae140aa28df8744d984d01d4b3af7cdd6555af12127f40ceb45a7d/nodejs_wheel_binaries-24.16.0-py2.py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:2f3036292811514ba847b3708492644764f88a833ac425c5f55007014308ddfd", size = 60716262, upload-time = "2026-05-30T16:51:50.711Z" },
|
|
132
|
+
{ url = "https://files.pythonhosted.org/packages/64/c9/7c35b3737f59e36d0249c265397b7bff570519b95301d6e16ea361e904ad/nodejs_wheel_binaries-24.16.0-py2.py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:db8a8a76ebd2b28ecbfc9ad464baa3707241b9e050a30e2efdf6f60c0f886502", size = 62230592, upload-time = "2026-05-30T16:51:55Z" },
|
|
133
|
+
{ url = "https://files.pythonhosted.org/packages/04/96/d931255cf9d11a84d6b54d882dba7434646467d568ccf070ea3418638df3/nodejs_wheel_binaries-24.16.0-py2.py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:f1a3d8f7b4491cbbd023ba3fc4e901fcca2d9fb80d57f24ba3890de8b1dbac03", size = 62841759, upload-time = "2026-05-30T16:51:59.407Z" },
|
|
134
|
+
{ url = "https://files.pythonhosted.org/packages/a2/7b/8b7a3f41bc255411be30b6d7d288aab8ffd9ea2055db8555ced3548007b9/nodejs_wheel_binaries-24.16.0-py2.py3-none-win_amd64.whl", hash = "sha256:bb136be9944f0662dcf1120f45193a6b75b13fac378971a95cc42c9f879a81aa", size = 42027734, upload-time = "2026-05-30T16:52:03.348Z" },
|
|
135
|
+
{ url = "https://files.pythonhosted.org/packages/17/66/1ed71f1f529b8ca727d42c7ceb9db0bef145ce4a13dfc86fb50aa44f3be6/nodejs_wheel_binaries-24.16.0-py2.py3-none-win_arm64.whl", hash = "sha256:8308940b5edd0a50dc5267ea36ba21c9f668e83fe0d9f293937174d3a7e31c36", size = 39714528, upload-time = "2026-05-30T16:52:06.421Z" },
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
[[package]]
|
|
139
|
+
name = "opentelemetry-api"
|
|
140
|
+
version = "1.44.0"
|
|
141
|
+
source = { registry = "https://pypi.org/simple" }
|
|
142
|
+
dependencies = [
|
|
143
|
+
{ name = "typing-extensions" },
|
|
144
|
+
]
|
|
145
|
+
sdist = { url = "https://files.pythonhosted.org/packages/ee/8b/aa9e2d8b8dfa7c946f7dec5d1f8f6ba8eca062f43509a06bdb5ce93d26c0/opentelemetry_api-1.44.0.tar.gz", hash = "sha256:67647e5e9566edcf421166fdf022b3537f818635daa852b289e34604dc6fb33a", size = 72406, upload-time = "2026-07-16T15:25:32.678Z" }
|
|
146
|
+
wheels = [
|
|
147
|
+
{ url = "https://files.pythonhosted.org/packages/ca/6f/a04e900f465ff3221ccc395522503e2d10e79fa21f2723c8e177aae1e0d1/opentelemetry_api-1.44.0-py3-none-any.whl", hash = "sha256:94b98c893a91b88657eaac1e3ba89618cdb85be6918196705354f34728b2cdef", size = 60018, upload-time = "2026-07-16T15:25:11.657Z" },
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "opentelemetry-exporter-otlp-proto-common"
|
|
152
|
+
version = "1.44.0"
|
|
153
|
+
source = { registry = "https://pypi.org/simple" }
|
|
154
|
+
dependencies = [
|
|
155
|
+
{ name = "opentelemetry-proto" },
|
|
156
|
+
]
|
|
157
|
+
sdist = { url = "https://files.pythonhosted.org/packages/61/09/4d717852c1cf3f854b76c7110a5d00883bc3c99288b9b0dbcbeb9e306eb6/opentelemetry_exporter_otlp_proto_common-1.44.0.tar.gz", hash = "sha256:dc87a5a5bc58f149a56d1547e4691588fa12994cdc3bc039a694ccb3375862ac", size = 20202, upload-time = "2026-07-16T15:25:37.658Z" }
|
|
158
|
+
wheels = [
|
|
159
|
+
{ url = "https://files.pythonhosted.org/packages/5e/71/65fd9d54c10b860f87c045ccee1264cab7011268895d3528818a29c1172a/opentelemetry_exporter_otlp_proto_common-1.44.0-py3-none-any.whl", hash = "sha256:9a9fe61bba73d802904bc989f1d6b4a7b1ee40f06c40e98d6f85af65aaebb694", size = 17045, upload-time = "2026-07-16T15:25:18.201Z" },
|
|
160
|
+
]
|
|
161
|
+
|
|
162
|
+
[[package]]
|
|
163
|
+
name = "opentelemetry-exporter-otlp-proto-grpc"
|
|
164
|
+
version = "1.44.0"
|
|
165
|
+
source = { registry = "https://pypi.org/simple" }
|
|
166
|
+
dependencies = [
|
|
167
|
+
{ name = "googleapis-common-protos" },
|
|
168
|
+
{ name = "grpcio" },
|
|
169
|
+
{ name = "opentelemetry-api" },
|
|
170
|
+
{ name = "opentelemetry-exporter-otlp-proto-common" },
|
|
171
|
+
{ name = "opentelemetry-proto" },
|
|
172
|
+
{ name = "opentelemetry-sdk" },
|
|
173
|
+
{ name = "typing-extensions" },
|
|
174
|
+
]
|
|
175
|
+
sdist = { url = "https://files.pythonhosted.org/packages/1f/47/80d9e9d468dc5de3af5096f5ccdb065fa4dd1470f74495cc53e59e397f47/opentelemetry_exporter_otlp_proto_grpc-1.44.0.tar.gz", hash = "sha256:40d1ae9e03fcc36de3cbac610cc99f35894938bff9cfd90fc4ec68bd85448463", size = 27225, upload-time = "2026-07-16T15:25:38.308Z" }
|
|
176
|
+
wheels = [
|
|
177
|
+
{ url = "https://files.pythonhosted.org/packages/54/29/6ae42ba32b153ae0a44ae125f0caff2188bbe62d99c82d1768da30864e72/opentelemetry_exporter_otlp_proto_grpc-1.44.0-py3-none-any.whl", hash = "sha256:6a1a645ea182a2f59440c51fa8301d309f3324a8f9d65f8395584b064b67ee4e", size = 19624, upload-time = "2026-07-16T15:25:19.096Z" },
|
|
178
|
+
]
|
|
179
|
+
|
|
180
|
+
[[package]]
|
|
181
|
+
name = "opentelemetry-proto"
|
|
182
|
+
version = "1.44.0"
|
|
183
|
+
source = { registry = "https://pypi.org/simple" }
|
|
184
|
+
dependencies = [
|
|
185
|
+
{ name = "protobuf" },
|
|
186
|
+
]
|
|
187
|
+
sdist = { url = "https://files.pythonhosted.org/packages/64/01/40ac4ae9a149263cc52c2cee200ddd80cb6d8db1a4610abf8eabce0fe771/opentelemetry_proto-1.44.0.tar.gz", hash = "sha256:c547a79c2f8c0c515d31509154682e5921c7cfd5ca67b70e1f9266e2c3e103f3", size = 46488, upload-time = "2026-07-16T15:25:45.34Z" }
|
|
188
|
+
wheels = [
|
|
189
|
+
{ url = "https://files.pythonhosted.org/packages/d1/7c/8be563d68e93bbefa5c8affb82ddcff91b3ad858ce49957ba7b16fd3e0ab/opentelemetry_proto-1.44.0-py3-none-any.whl", hash = "sha256:898b155a0e1557afd867478fb6158e8122a46329ca0bb8dc53cc55e98f017f56", size = 72483, upload-time = "2026-07-16T15:25:28.429Z" },
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "opentelemetry-sdk"
|
|
194
|
+
version = "1.44.0"
|
|
195
|
+
source = { registry = "https://pypi.org/simple" }
|
|
196
|
+
dependencies = [
|
|
197
|
+
{ name = "opentelemetry-api" },
|
|
198
|
+
{ name = "opentelemetry-semantic-conventions" },
|
|
199
|
+
{ name = "typing-extensions" },
|
|
200
|
+
]
|
|
201
|
+
sdist = { url = "https://files.pythonhosted.org/packages/5d/77/a6592cbc7c8d9bcc9d6757a9df45e04a7c585e3e6e7a13456da522b21109/opentelemetry_sdk-1.44.0.tar.gz", hash = "sha256:cebe7f65dc12f26ead75c6064de12fd2a9052e5060c0272d402cfa203aae123b", size = 208624, upload-time = "2026-07-16T15:25:46.078Z" }
|
|
202
|
+
wheels = [
|
|
203
|
+
{ url = "https://files.pythonhosted.org/packages/e7/23/ff077e61886ee020a17ce9c8b6fa11c601c8d8345b09ea24f605445df62a/opentelemetry_sdk-1.44.0-py3-none-any.whl", hash = "sha256:df081c4c6bcfdb1211e3e86140376792643128a25f8d72d1d27675936e7e96ad", size = 137221, upload-time = "2026-07-16T15:25:29.534Z" },
|
|
204
|
+
]
|
|
205
|
+
|
|
206
|
+
[[package]]
|
|
207
|
+
name = "opentelemetry-semantic-conventions"
|
|
208
|
+
version = "0.65b0"
|
|
209
|
+
source = { registry = "https://pypi.org/simple" }
|
|
210
|
+
dependencies = [
|
|
211
|
+
{ name = "opentelemetry-api" },
|
|
212
|
+
{ name = "typing-extensions" },
|
|
213
|
+
]
|
|
214
|
+
sdist = { url = "https://files.pythonhosted.org/packages/8f/73/0cbdebcb4cf545fdd328da14f5137e37d0770c3f26185e478b0d15d94f50/opentelemetry_semantic_conventions-0.65b0.tar.gz", hash = "sha256:f9b2b81e9d5b64f11bc952075e7e9c7fb0aab075c7fd1c46d597f1b919852d60", size = 148774, upload-time = "2026-07-16T15:25:46.902Z" }
|
|
215
|
+
wheels = [
|
|
216
|
+
{ url = "https://files.pythonhosted.org/packages/a6/0e/49df70d9b81fb5cbae4bbf2a49d865b09bcbcbc4eb53f5851b1027738d78/opentelemetry_semantic_conventions-0.65b0-py3-none-any.whl", hash = "sha256:1cacde7b0ad306f84c5ef08c3dbe1bbaf20165bba6f8bff43b670e555a086bcb", size = 204645, upload-time = "2026-07-16T15:25:30.688Z" },
|
|
217
|
+
]
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "packaging"
|
|
221
|
+
version = "26.3"
|
|
222
|
+
source = { registry = "https://pypi.org/simple" }
|
|
223
|
+
sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
|
|
224
|
+
wheels = [
|
|
225
|
+
{ url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
[[package]]
|
|
229
|
+
name = "pluggy"
|
|
230
|
+
version = "1.6.0"
|
|
231
|
+
source = { registry = "https://pypi.org/simple" }
|
|
232
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }
|
|
233
|
+
wheels = [
|
|
234
|
+
{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },
|
|
235
|
+
]
|
|
236
|
+
|
|
237
|
+
[[package]]
|
|
238
|
+
name = "protobuf"
|
|
239
|
+
version = "7.35.1"
|
|
240
|
+
source = { registry = "https://pypi.org/simple" }
|
|
241
|
+
sdist = { url = "https://files.pythonhosted.org/packages/da/01/9ef0afd7999eb9badb3a768b4aedd78c86d4c65cfaf1958ab276199e76b4/protobuf-7.35.1.tar.gz", hash = "sha256:ce115a26fe0c39a2c29973d914d327e516a6455464489fe3cd1e51a1b354f81a", size = 458717, upload-time = "2026-06-11T21:55:40.257Z" }
|
|
242
|
+
wheels = [
|
|
243
|
+
{ url = "https://files.pythonhosted.org/packages/10/03/8aeeb7458d22546bf64b5250ca1daeb5ff757d900e8e4a7476c6f0db843e/protobuf-7.35.1-cp310-abi3-macosx_10_9_universal2.whl", hash = "sha256:24f857477359a85c0c235261b8ba905fd51b2562f4a64ca1df5473f29850cbf6", size = 433226, upload-time = "2026-06-11T21:55:31.719Z" },
|
|
244
|
+
{ url = "https://files.pythonhosted.org/packages/37/4b/dfb89eb0e652a1ff073c39a59fb5e3a83cfe9b57a2c83fa6d78270101767/protobuf-7.35.1-cp310-abi3-manylinux2014_aarch64.whl", hash = "sha256:11d6b0ec246892d85215b0a13ca6e0233cf5284b68f0ac02646427f4ff88a799", size = 328847, upload-time = "2026-06-11T21:55:34.035Z" },
|
|
245
|
+
{ url = "https://files.pythonhosted.org/packages/0f/58/dc12f2cd484951524af6e3382c785869b9b3fb5e52ee95ae23add53ee8f9/protobuf-7.35.1-cp310-abi3-manylinux2014_s390x.whl", hash = "sha256:b73f9489a4b8b1c9cb1f8ed951c736392592edb24b9d6819f36d2e10b171d5b4", size = 344030, upload-time = "2026-06-11T21:55:34.941Z" },
|
|
246
|
+
{ url = "https://files.pythonhosted.org/packages/e4/be/5b3cfe508bfab6761414ff944e3366eb13be4fd71efcd69450f89ba39f43/protobuf-7.35.1-cp310-abi3-manylinux2014_x86_64.whl", hash = "sha256:74758715c53d7158fb76caf4f0cfdacc5329a4b1bb994f865d6cf302d413a1c4", size = 327130, upload-time = "2026-06-11T21:55:35.921Z" },
|
|
247
|
+
{ url = "https://files.pythonhosted.org/packages/d8/bc/6d6c7ba8709c85f8f2c390b2b118d6fb08a783676a572271851bf45a7d22/protobuf-7.35.1-cp310-abi3-win32.whl", hash = "sha256:353652e4efd0bca5b5fc2656abf8307ef351f0cf938c9eba09f0e09c20a25c30", size = 428945, upload-time = "2026-06-11T21:55:37.034Z" },
|
|
248
|
+
{ url = "https://files.pythonhosted.org/packages/0a/19/8d0cb6f20a1ef7b18f1c8986ad5783f22f84cce39c6ce9a6e645ea55192e/protobuf-7.35.1-cp310-abi3-win_amd64.whl", hash = "sha256:230a75ddfc2de4806e56696ce9640c1cdfdb6543b7cfce98d42a4c0a0e7bdb87", size = 439996, upload-time = "2026-06-11T21:55:38.123Z" },
|
|
249
|
+
{ url = "https://files.pythonhosted.org/packages/19/c7/5f7c636ec43e0c545e28d1f1db71990108306f7bdcb89f069ba97e428e7f/protobuf-7.35.1-py3-none-any.whl", hash = "sha256:4bc97768d8fe4ad6743c8a19403e314511ed9f6d13205b687e52421c023ac1b9", size = 171659, upload-time = "2026-06-11T21:55:39.155Z" },
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
[[package]]
|
|
253
|
+
name = "pygments"
|
|
254
|
+
version = "2.20.0"
|
|
255
|
+
source = { registry = "https://pypi.org/simple" }
|
|
256
|
+
sdist = { url = "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f", size = 4955991, upload-time = "2026-03-29T13:29:33.898Z" }
|
|
257
|
+
wheels = [
|
|
258
|
+
{ url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" },
|
|
259
|
+
]
|
|
260
|
+
|
|
261
|
+
[[package]]
|
|
262
|
+
name = "pytest"
|
|
263
|
+
version = "9.1.1"
|
|
264
|
+
source = { registry = "https://pypi.org/simple" }
|
|
265
|
+
dependencies = [
|
|
266
|
+
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
267
|
+
{ name = "iniconfig" },
|
|
268
|
+
{ name = "packaging" },
|
|
269
|
+
{ name = "pluggy" },
|
|
270
|
+
{ name = "pygments" },
|
|
271
|
+
]
|
|
272
|
+
sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
|
|
273
|
+
wheels = [
|
|
274
|
+
{ url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
|
|
275
|
+
]
|
|
276
|
+
|
|
277
|
+
[[package]]
|
|
278
|
+
name = "python-json-logger"
|
|
279
|
+
version = "4.1.0"
|
|
280
|
+
source = { registry = "https://pypi.org/simple" }
|
|
281
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f7/ff/3cc9165fd44106973cd7ac9facb674a65ed853494592541d339bdc9a30eb/python_json_logger-4.1.0.tar.gz", hash = "sha256:b396b9e3ed782b09ff9d6e4f1683d46c83ad0d35d2e407c09a9ebbf038f88195", size = 17573, upload-time = "2026-03-29T04:39:56.805Z" }
|
|
282
|
+
wheels = [
|
|
283
|
+
{ url = "https://files.pythonhosted.org/packages/27/be/0631a861af4d1c875f096c07d34e9a63639560a717130e7a87cbc82b7e3f/python_json_logger-4.1.0-py3-none-any.whl", hash = "sha256:132994765cf75bf44554be9aa49b06ef2345d23661a96720262716438141b6b2", size = 15021, upload-time = "2026-03-29T04:39:55.266Z" },
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "ruff"
|
|
288
|
+
version = "0.16.3"
|
|
289
|
+
source = { registry = "https://pypi.org/simple" }
|
|
290
|
+
sdist = { url = "https://files.pythonhosted.org/packages/61/b3/3213589383f8f1b3938781bd1278713f6d18621a14992b3e81fefb8a5ef9/ruff-0.16.3.tar.gz", hash = "sha256:e76d33a347661a84b5be6d043d0347fdc745dfdcf825a8f4fed64b5e26eebdf2", size = 4891904, upload-time = "2026-08-13T15:17:13.381Z" }
|
|
291
|
+
wheels = [
|
|
292
|
+
{ url = "https://files.pythonhosted.org/packages/bf/96/493770daebd68c0a67f1549fdf519f53be51fc435186c0585bcc272fd76c/ruff-0.16.3-py3-none-linux_armv6l.whl", hash = "sha256:0c5710e247a58a4521e66e124ba9a74655b414f61ba3a2e9e3811e11098f48f7", size = 10902799, upload-time = "2026-08-13T15:16:27.382Z" },
|
|
293
|
+
{ url = "https://files.pythonhosted.org/packages/5e/e6/2becf3942fddc29a29b8df47691d456fb1085391a694f74d84513251418c/ruff-0.16.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:fe155130631a2471fd2e14a7a664a4dfbd7194b8229c3d7b2a40b21178639081", size = 11135539, upload-time = "2026-08-13T15:16:30.87Z" },
|
|
294
|
+
{ url = "https://files.pythonhosted.org/packages/3e/1e/4b8b72f0d006dbf19326aa99f9ca0ee2ff374187c4d301cf529a51aa06fe/ruff-0.16.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:e2ed719e14aa64d895c2ee922594a90a43c861a93f0575a95ff8c47cdbd13eb9", size = 10475095, upload-time = "2026-08-13T15:16:33.259Z" },
|
|
295
|
+
{ url = "https://files.pythonhosted.org/packages/92/32/2201fa49ba1f6c101ee321e83f051ac7a4b8d07b0ef6b4d3f2772b302275/ruff-0.16.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9e0b1da805eb043654645d74d5de1e5ce2edc686e40790d2b86f56d71cc06a84", size = 10668771, upload-time = "2026-08-13T15:16:35.65Z" },
|
|
296
|
+
{ url = "https://files.pythonhosted.org/packages/c3/66/4afc5c8363bd04d45effce1b7c8713ca037d7a6740b7451a2403a6e3a972/ruff-0.16.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a37bdea0bbe21780f590bf437d6412c8c4e1b6cd010f91a65c2c40c5e5f5f870", size = 10699568, upload-time = "2026-08-13T15:16:38.195Z" },
|
|
297
|
+
{ url = "https://files.pythonhosted.org/packages/53/fd/c67d246bf36bf1698551c56de39e95cd07f70e64433e0098e6267d77061b/ruff-0.16.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09571e6d1288ed9be475207a3ac04ada404f1cd898104be0f6ab8d7df438575b", size = 11499365, upload-time = "2026-08-13T15:16:40.623Z" },
|
|
298
|
+
{ url = "https://files.pythonhosted.org/packages/67/0b/00ecbceb99a263af7b12f6f05ac3c92bc47b905e91adc3f207a836e3bc01/ruff-0.16.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2c18c5a101eb540010638cc1ff3c84944d3adb3df62b8d98ca8f22ba484d3413", size = 12311728, upload-time = "2026-08-13T15:16:43.564Z" },
|
|
299
|
+
{ url = "https://files.pythonhosted.org/packages/54/b2/b7b3bb54f4d3f7db504e476ad4ab8de530dceebe2c061384b2757ee419e8/ruff-0.16.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8457c44f15033c85ddbb77b15d451df9e24e4bd03b628396dd3610cedc3b8f82", size = 11699896, upload-time = "2026-08-13T15:16:46.209Z" },
|
|
300
|
+
{ url = "https://files.pythonhosted.org/packages/c7/30/4c468429ac195addc5ee1b717b6ab1b66632786737ca3b2ed3443fb0c26a/ruff-0.16.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:294b95c4ae0cda9388525c2047778aa758d6b8d4bb876fd4e9eaa3ebc92343eb", size = 11058736, upload-time = "2026-08-13T15:16:48.823Z" },
|
|
301
|
+
{ url = "https://files.pythonhosted.org/packages/43/67/7a113cdaddf24b64d7f75b1242a99d04c82fcef4f6921fdbb832beaffb5f/ruff-0.16.3-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:3d0c7c40c87c2a820509c31ba007968da6e1306468c067b2d82fbfdbcd0e8474", size = 11586911, upload-time = "2026-08-13T15:16:51.913Z" },
|
|
302
|
+
{ url = "https://files.pythonhosted.org/packages/f1/c1/2e66f24c0f3ead25a5e660111778685e505e5da353c82802bf49f0cbe7b9/ruff-0.16.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:9f738c0fdfa8eed0b2ce7fb27ee7258208a92a68d7949e62aa15164bc7b389da", size = 10954265, upload-time = "2026-08-13T15:16:54.763Z" },
|
|
303
|
+
{ url = "https://files.pythonhosted.org/packages/c2/ba/4cee23bf52cba9a058d3726de623624daf50ef9638868edd86f4126157f6/ruff-0.16.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:fb785f0be25abe69d320415cd4f833b59e17ba7613d9ba6a958023b6bceb0a50", size = 10709886, upload-time = "2026-08-13T15:16:57.339Z" },
|
|
304
|
+
{ url = "https://files.pythonhosted.org/packages/82/df/7da7194fa5d9dc0a285f7e6fa5a4722e7c63faac0b45b614ded9314363a1/ruff-0.16.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:c5536e3acfbf9563085aa2be7b13c629c3077e902afc5b941ac44024dbb9f506", size = 11210392, upload-time = "2026-08-13T15:17:00.171Z" },
|
|
305
|
+
{ url = "https://files.pythonhosted.org/packages/35/85/7795f6e817af050e7517bf3e7aa9b061cce70ef33d280aad902c956c1ecf/ruff-0.16.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:a2d85c02f9b8e165d85e6779184d38c4132de12603dab59c51c28e22584f9e4d", size = 11626910, upload-time = "2026-08-13T15:17:03.299Z" },
|
|
306
|
+
{ url = "https://files.pythonhosted.org/packages/78/9b/475b927cf27a5cbbda3c7bafb69ed6ff77e1d7923d5d85f17c2749d7ae32/ruff-0.16.3-py3-none-win32.whl", hash = "sha256:388cdf2166642bd9b13d52b5932d3170f34f8abed7e8d9a855f1d84b83645a0a", size = 10931415, upload-time = "2026-08-13T15:17:05.726Z" },
|
|
307
|
+
{ url = "https://files.pythonhosted.org/packages/b2/99/e2a2bfc4fbf0a1e8a916bc9ebe6fe6c58cc34c28e0ffc6ce281d572d1c2e/ruff-0.16.3-py3-none-win_amd64.whl", hash = "sha256:e80a7d69ca2a6d1c4d352ec91458cdca6e56c83cdbcabd93e4abe1e53591d948", size = 11445993, upload-time = "2026-08-13T15:17:08.353Z" },
|
|
308
|
+
{ url = "https://files.pythonhosted.org/packages/69/3e/4132e539aed78c148854d4997a2685b0ed4dc4e87110b59ce528564e184e/ruff-0.16.3-py3-none-win_arm64.whl", hash = "sha256:b8ca152da82c1acc1fa8d5874b15951935f0eef46f10e6954c83859011b6178a", size = 11399302, upload-time = "2026-08-13T15:17:10.908Z" },
|
|
309
|
+
]
|
|
310
|
+
|
|
311
|
+
[[package]]
|
|
312
|
+
name = "typing-extensions"
|
|
313
|
+
version = "4.16.0"
|
|
314
|
+
source = { registry = "https://pypi.org/simple" }
|
|
315
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
|
|
316
|
+
wheels = [
|
|
317
|
+
{ url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
|
|
318
|
+
]
|