Initial implementation of EnvBao
Single-binary CLI that injects environment variables from an OpenBao server into the shell via eval "$(envbao)". - Strict permission policy for ~/.envbao (exits 78 if unsafe) - KV v1/v2 engine with auto-detection, pluggable engine registry - Safe quoting for bash/zsh/sh/fish, protected-variable denylist - Audit logging (stderr, private rotating file, syslog); no secrets logged - Gitea pipelines for tests and SemVer-tag releases - PyInstaller spec, docs, BSD-3-Clause licence Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
5f2de99d7e
37 files changed
+3234
No files matched your search
@@ -0,0 +1,82 @@
|
||||
name: release
|
||||
|
||||
# Runs when a SemVer tag such as v1.4.0 or v2.0.0-rc.1 is pushed.
|
||||
on:
|
||||
push:
|
||||
tags: ["v*"]
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: linux-amd64
|
||||
outputs:
|
||||
version: ${{ steps.v.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- id: v
|
||||
name: Validate tag is SemVer
|
||||
run: |
|
||||
version="$(python3 scripts/version_from_tag.py "${GITHUB_REF_NAME}")"
|
||||
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
build:
|
||||
needs: validate
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include:
|
||||
# PyInstaller cannot cross-compile: each target builds on a matching runner.
|
||||
- { runner: linux-amd64, target: linux-amd64 }
|
||||
- { runner: linux-arm64, target: linux-arm64 }
|
||||
- { runner: macos-arm64, target: macos-arm64 }
|
||||
runs-on: ${{ matrix.runner }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- name: Install dependencies
|
||||
run: uv sync --all-groups --frozen
|
||||
- name: Test
|
||||
run: uv run pytest -q --cov
|
||||
- name: Stamp version from tag
|
||||
run: python3 scripts/version_from_tag.py "${GITHUB_REF_NAME}"
|
||||
- name: Build single-file binary
|
||||
run: uv run pyinstaller envbao.spec --clean --noconfirm
|
||||
- name: Smoke test and name artifact
|
||||
run: |
|
||||
test "$(./dist/envbao --version)" = "envbao ${{ needs.validate.outputs.version }}"
|
||||
mv dist/envbao "dist/envbao-${{ needs.validate.outputs.version }}-${{ matrix.target }}"
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: envbao-${{ matrix.target }}
|
||||
path: dist/envbao-*
|
||||
|
||||
release:
|
||||
needs: [validate, build]
|
||||
runs-on: linux-amd64
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: artifacts
|
||||
- name: Checksums
|
||||
run: |
|
||||
mkdir release
|
||||
cp artifacts/*/envbao-* release/
|
||||
(cd release && sha256sum envbao-* > SHA256SUMS)
|
||||
- name: Publish Gitea release
|
||||
env:
|
||||
TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
VERSION: ${{ needs.validate.outputs.version }}
|
||||
run: |
|
||||
set -eu
|
||||
case "$VERSION" in *-*) pre=true ;; *) pre=false ;; esac
|
||||
id="$(curl -fsS -X POST "$API/releases" \
|
||||
-H "Authorization: token $TOKEN" -H 'Content-Type: application/json' \
|
||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"prerelease\":$pre}" \
|
||||
| python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')"
|
||||
for f in release/*; do
|
||||
curl -fsS -X POST "$API/releases/$id/assets?name=$(basename "$f")" \
|
||||
-H "Authorization: token $TOKEN" -F "attachment=@$f" >/dev/null
|
||||
done
|
||||
@@ -0,0 +1,30 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
# Label of a Linux act_runner; see docs/releasing.md
|
||||
runs-on: linux-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- name: Install dependencies
|
||||
run: uv sync --all-groups --frozen
|
||||
- name: Lint
|
||||
run: |
|
||||
uv run ruff check .
|
||||
uv run ruff format --check .
|
||||
- name: Type check
|
||||
run: uv run mypy
|
||||
- name: Tests (coverage must stay >= 90%)
|
||||
run: uv run pytest --cov --cov-report=term-missing
|
||||
- name: Build smoke test
|
||||
run: |
|
||||
uv run pyinstaller envbao.spec --clean --noconfirm
|
||||
./dist/envbao --version
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
.venv/
|
||||
.idea/
|
||||
.junie/
|
||||
.pytest_cache/
|
||||
.mypy_cache/
|
||||
.ruff_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
build/
|
||||
dist/
|
||||
*.egg-info/
|
||||
@@ -0,0 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes are documented here. This project follows [Semantic Versioning](https://semver.org).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- Initial implementation: config loading, strict permission policy, KV v1/v2 engine with
|
||||
auto-detection, safe shell rendering (bash/zsh/sh/fish), `--check` and `--init`, audit logging.
|
||||
- Gitea pipelines for tests and tag-driven releases (linux-amd64, linux-arm64, macos-arm64).
|
||||
@@ -0,0 +1,29 @@
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2026, Matt Daubney
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,103 @@
|
||||
# EnvBao
|
||||
|
||||
[](LICENSE)
|
||||
|
||||
Inject environment variables from a running [OpenBao](https://openbao.org) server into your shell.
|
||||
`envbao` is a single self-contained binary designed to be called from `~/.zshrc` or `~/.bashrc`:
|
||||
|
||||
```sh
|
||||
eval "$(envbao)"
|
||||
```
|
||||
|
||||
It reads `~/.envbao/config.toml`, fetches the secrets selected by your queries, and prints
|
||||
safely quoted `export` statements for your shell to evaluate.
|
||||
|
||||
## Features
|
||||
|
||||
- **Security first** - refuses to run unless `~/.envbao` and everything in it is accessible by
|
||||
you only; all failures print *nothing* to stdout, so a failed run can never half-configure
|
||||
your shell. See [docs/security.md](docs/security.md).
|
||||
- **Config-driven queries** - choose exactly which secrets, keys, prefixes and renames you want.
|
||||
- **KV v1 and v2** with automatic version detection. Other credential engines are planned and
|
||||
slot into an engine registry.
|
||||
- **Audited** - issues are logged to stderr, `~/.envbao/envbao.log` (mode 0600) and the system
|
||||
log. Tokens and secret values are never logged.
|
||||
- **Single binary**, no runtime dependencies (built with PyInstaller).
|
||||
- bash, zsh, sh and fish output.
|
||||
|
||||
## Install
|
||||
|
||||
Download the binary for your platform from the project's releases page
|
||||
(`envbao-<version>-linux-amd64`, `-linux-arm64`, `-macos-arm64`), verify it against `SHA256SUMS`,
|
||||
then:
|
||||
|
||||
```sh
|
||||
chmod +x envbao-*; mv envbao-* ~/.local/bin/envbao
|
||||
```
|
||||
|
||||
Or run from source: `uv sync && uv run envbao --help`.
|
||||
|
||||
## Quick start
|
||||
|
||||
```sh
|
||||
envbao --init # creates ~/.envbao (0700) and a template config.toml (0600)
|
||||
$EDITOR ~/.envbao/config.toml # add server address, token and queries
|
||||
envbao --check # verify permissions, config and token (prints no secrets)
|
||||
```
|
||||
|
||||
Add to `~/.zshrc` or `~/.bashrc`:
|
||||
|
||||
```sh
|
||||
command -v envbao >/dev/null && eval "$(envbao)"
|
||||
```
|
||||
|
||||
### Example `~/.envbao/config.toml`
|
||||
|
||||
```toml
|
||||
[server]
|
||||
address = "https://bao.example.com:8200"
|
||||
token = "s.xxxxxxxx" # or: token_file = "~/.envbao/token"
|
||||
|
||||
[[query]]
|
||||
mount = "secret"
|
||||
path = "myapp/prod"
|
||||
keys = ["DB_URL", "API_KEY"] # optional filter
|
||||
prefix = "MYAPP_" # optional
|
||||
rename = { DB_URL = "DATABASE_URL" } # optional (applied before prefix)
|
||||
on_missing = "warn" # "warn" (default) or "error"
|
||||
```
|
||||
|
||||
Full reference: [docs/configuration.md](docs/configuration.md).
|
||||
|
||||
## Exit codes
|
||||
|
||||
| Code | Meaning |
|
||||
|------|---------|
|
||||
| 0 | Success |
|
||||
| 1 | Other failure |
|
||||
| 2 | Command-line usage error |
|
||||
| 69 | Server unreachable or returned an unexpected response |
|
||||
| 77 | Token rejected by the server |
|
||||
| 78 | Bad configuration or unsafe file permissions |
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Usage](docs/usage.md)
|
||||
- [Configuration reference](docs/configuration.md)
|
||||
- [Security model](docs/security.md)
|
||||
- [Development](docs/development.md)
|
||||
- [Releasing and CI](docs/releasing.md)
|
||||
- [Plans](docs/plans/)
|
||||
|
||||
## Development
|
||||
|
||||
```sh
|
||||
uv sync --all-groups
|
||||
uv run pytest --cov # tests (coverage gate: 90%)
|
||||
uv run ruff check . && uv run mypy
|
||||
uv run pyinstaller envbao.spec # builds dist/envbao
|
||||
```
|
||||
|
||||
## Licence
|
||||
|
||||
BSD 3-Clause. See [LICENSE](LICENSE).
|
||||
@@ -0,0 +1,51 @@
|
||||
# Configuration reference
|
||||
|
||||
File: `~/.envbao/config.toml`. Unknown keys and wrong types are rejected, so typos fail loudly.
|
||||
|
||||
## `[server]`
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| `address` | string | *required* | Base URL, e.g. `https://bao.example.com:8200`. No credentials in the URL. |
|
||||
| `token` | string | | OpenBao token. Exactly one of `token` / `token_file` is required. |
|
||||
| `token_file` | string | | Path (`~` expanded) to a file containing the token. Must pass the same permission policy (owner only, not a symlink). |
|
||||
| `namespace` | string | | Sent as `X-Vault-Namespace`. |
|
||||
| `ca_cert` | string | system store | PEM CA bundle used to verify the server. |
|
||||
| `timeout` | number | `5` | Per-request timeout in seconds. |
|
||||
| `allow_insecure_http` | bool | `false` | Permit `http://` to a non-loopback host. Loopback (`127.0.0.1`, `::1`, `localhost`) is always allowed over HTTP. Not recommended: the token travels in clear. |
|
||||
|
||||
## `[security]`
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| `allow_protected` | list of strings | `[]` | Protected variable names (see [security.md](security.md)) that secrets may set, e.g. `["PATH"]`. |
|
||||
|
||||
## `[[query]]`
|
||||
|
||||
One table per secret source. Queries run in order; later ones override earlier ones.
|
||||
|
||||
Common keys:
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| `engine` | string | `"kv"` | Secret engine. Currently only `kv`. |
|
||||
| `keys` | list of strings | all | Only export these keys from the secret. |
|
||||
| `rename` | table | `{}` | Map secret key → variable name. Applied before `prefix`. |
|
||||
| `prefix` | string | `""` | Prepended to every variable name. |
|
||||
| `on_missing` | `"warn"` \| `"error"` | `"warn"` | What to do if the secret or a listed key does not exist. `error` aborts the whole run. |
|
||||
|
||||
### `engine = "kv"`
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| `mount` | string | *required* | KV mount path, e.g. `secret`. |
|
||||
| `path` | string | *required* | Secret path within the mount. |
|
||||
| `kv_version` | `1` \| `2` \| `"auto"` | `"auto"` | `auto` queries `sys/internal/ui/mounts/<mount>`; set explicitly if the token cannot read that endpoint. |
|
||||
|
||||
Names that are not valid variable names (`[A-Za-z_][A-Za-z0-9_]*`) are skipped with a warning.
|
||||
|
||||
## Adding an engine
|
||||
|
||||
Implement `envbao.engines.Engine` (`validate` and `fetch`) in a new module under
|
||||
`src/envbao/engines/`, register it in `ENGINES`, and document its options here. Filtering,
|
||||
renaming, prefixing, name validation and rendering are shared.
|
||||
@@ -0,0 +1,55 @@
|
||||
# Development
|
||||
|
||||
## Setup
|
||||
|
||||
```sh
|
||||
uv sync --all-groups
|
||||
```
|
||||
|
||||
## Checks (also run by CI)
|
||||
|
||||
```sh
|
||||
uv run ruff check . && uv run ruff format --check .
|
||||
uv run mypy # strict
|
||||
uv run pytest --cov # fails below 90 % coverage
|
||||
```
|
||||
|
||||
## Layout
|
||||
|
||||
| Module | Responsibility |
|
||||
|--------|----------------|
|
||||
| `cli.py` | Argument parsing, orchestration, exit codes |
|
||||
| `security.py` | Filesystem permission policy |
|
||||
| `config.py` | Strict TOML parsing into dataclasses |
|
||||
| `client.py` | stdlib HTTP client for the OpenBao API (TLS, no redirects) |
|
||||
| `engines/` | Secret engines (`kv`); extension point for more |
|
||||
| `resolve.py` | Runs queries, applies keys/rename/prefix, filters unsafe names |
|
||||
| `render.py` | Name validation, quoting, shell dialects |
|
||||
| `logging_setup.py` | stderr, private rotating file, syslog |
|
||||
| `errors.py` | Exceptions and exit codes |
|
||||
|
||||
## Testing approach
|
||||
|
||||
- `tests/conftest.py` provides `fake_bao`, an in-process HTTP server emulating the OpenBao endpoints
|
||||
used (KV v1/v2, mount detection, `lookup-self`, redirects), so tests need no real server.
|
||||
- Permission tests build real directories under `tmp_path` and `chmod` them.
|
||||
- Rendering tests execute the output in `/bin/sh` to prove values round-trip unchanged.
|
||||
|
||||
## Building locally
|
||||
|
||||
```sh
|
||||
uv run pyinstaller envbao.spec --clean --noconfirm
|
||||
./dist/envbao --version
|
||||
```
|
||||
|
||||
PyInstaller cannot cross-compile; build on the platform you target.
|
||||
|
||||
## Testing against a real OpenBao
|
||||
|
||||
```sh
|
||||
bao server -dev -dev-root-token-id=dev &
|
||||
export BAO_ADDR=http://127.0.0.1:8200 BAO_TOKEN=dev
|
||||
bao kv put -mount=secret myapp/prod DB_URL=postgres://x API_KEY=abc
|
||||
envbao --init # then set address/token, add a [[query]] for secret/myapp/prod
|
||||
envbao --check && envbao
|
||||
```
|
||||
@@ -0,0 +1,72 @@
|
||||
# EnvBao – implementation plan
|
||||
|
||||
## Context
|
||||
Build `envbao`, a single-binary CLI invoked from `.zshrc`/`.bashrc` (`eval "$(envbao)"`) that pulls secrets from a running OpenBao server and emits shell `export` statements. Config (server, token, queries) lives in `~/.envbao/config.toml`. Security first: strict permission checks, no secret leakage, auditable logging. Repo is currently empty apart from a stub `pyproject.toml` (Python >=3.13, uv, no deps). Remote: `ssh://git@git.daubney.dev:222/matt/EnvBao.git`. Licence BSD-3-Clause.
|
||||
|
||||
## Stack
|
||||
- Python 3.13, `uv`, src layout (`src/envbao/`), stdlib only at runtime where possible: `tomllib`, `urllib.request`/`ssl`, `logging`, `argparse`, `shlex`. (No `hvac`/`httpx` → smaller binary, smaller attack surface.)
|
||||
- Dev: `pytest`, `pytest-cov`, `ruff`, `mypy`, `pyinstaller`, `responses`-free: tests use a local `http.server` fake OpenBao.
|
||||
- Build: PyInstaller `--onefile` (via `envbao.spec`), version injected from git tag.
|
||||
|
||||
## Layout
|
||||
```
|
||||
src/envbao/
|
||||
__main__.py / cli.py argparse: default=emit exports; --shell {bash,zsh,fish,auto}; --config PATH; --check; --version; -v
|
||||
config.py load + validate config.toml (dataclasses), token/token_file/ENVBAO_TOKEN-free by design
|
||||
security.py permission checks (dir 0700, files 0600, owned by euid, no symlink escape, not group/world accessible); exit code 78 on failure
|
||||
client.py minimal OpenBao HTTP client (X-Vault-Token, TLS verify on by default, timeout, CA bundle option, refuse http:// to non-loopback unless allow_insecure_http)
|
||||
engines/__init__.py Engine protocol + registry (extension point for mid-term: approle, database, aws, ssh etc.)
|
||||
engines/kv.py KV v1/v2 with auto-detect via sys/internal/ui/mounts/<path>; list/read, key filter, prefix, rename
|
||||
render.py env-var name validation ([A-Za-z_][A-Za-z0-9_]*), shlex-quoted export/set -gx output, reject control chars/newlines
|
||||
logging_setup.py stderr + rotating file log ~/.envbao/envbao.log (0600); NEVER logs token/values, only names/paths/status
|
||||
tests/ unit + integration (fake OpenBao server) + permission tests (tmp_path, chmod)
|
||||
docs/ usage.md, configuration.md, security.md, development.md, releasing.md
|
||||
.gitea/workflows/test.yml on push/PR: ruff, mypy, pytest --cov (fail-under 90), py3.13
|
||||
.gitea/workflows/release.yml on tag v*.*.*: validate semver, build linux-amd64/linux-arm64/macos-arm64, sha256sums, publish via Gitea release API
|
||||
envbao.spec, LICENSE (BSD-3-Clause, © Matt Daubney), README.md, CHANGELOG.md, .gitignore, pyproject.toml (deps/groups/scripts)
|
||||
```
|
||||
|
||||
## Config (`~/.envbao/config.toml`)
|
||||
```toml
|
||||
[server]
|
||||
address = "https://bao.example.com:8200"
|
||||
token = "s.xxxx" # or token_file = "~/.envbao/token" (also perm-checked)
|
||||
namespace = "" # optional X-Vault-Namespace
|
||||
ca_cert = "" # optional
|
||||
timeout = 5
|
||||
|
||||
[[query]] # one per secret source; "engine" defaults to "kv"
|
||||
engine = "kv"
|
||||
mount = "secret"
|
||||
path = "myapp/prod"
|
||||
keys = ["DB_URL", "API_KEY"] # optional filter
|
||||
prefix = "MYAPP_" # optional
|
||||
rename = { DB_URL = "DATABASE_URL" } # optional
|
||||
on_missing = "warn" # warn | error
|
||||
```
|
||||
Unknown `engine` → clear error; engine registry means new credential engines are added as modules without touching CLI/render.
|
||||
|
||||
## Security behaviours
|
||||
1. Before reading anything: `~/.envbao` must be a real directory owned by current user with mode `0700`; every file inside `0600` and owned by user; otherwise log CRITICAL, print nothing to stdout, exit non-zero (78). Symlinks rejected.
|
||||
2. Config parse errors, auth failures (403), connection/TLS errors → logged, **stdout stays empty** (so `eval` is a no-op) and a short message goes to stderr; exit code non-zero. Partial-failure policy governed by `on_missing`.
|
||||
3. Output quoting via `shlex.quote`; names validated; values containing NUL rejected.
|
||||
4. Token never logged or placed in argv/env; HTTP errors redacted. Optional `--check` validates config/perms/token (`auth/token/lookup-self`) without emitting values.
|
||||
5. Fail-closed on TLS; plain HTTP only with explicit `allow_insecure_http=true` and loopback otherwise warned.
|
||||
6. Logs: file at `0600`, events: perm violation, auth fail, each query success/fail (path only), count of vars exported.
|
||||
|
||||
## CI/CD (Gitea Actions)
|
||||
- `test.yml`: `astral-sh/setup-uv`, `uv sync --all-groups`, ruff, mypy, pytest with coverage.
|
||||
- `release.yml`: trigger `push: tags: ['v*']`; regex-check `^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$`; matrix of runners by label (`linux-amd64`, `linux-arm64`, and **`macos-arm64`** for the macOS build — labels documented in `docs/releasing.md`, as PyInstaller can't cross-compile); version written into `src/envbao/_version.py` at build from tag; artifacts `envbao-<ver>-<os>-<arch>` + `SHA256SUMS` uploaded to the Gitea release (token secret `RELEASE_TOKEN`).
|
||||
|
||||
## Execution steps
|
||||
0. First action once approved: copy this plan verbatim into the repo as `docs/plans/001-initial-implementation.md` (plan mode currently blocks writing outside the plan file), and commit it with the scaffold.
|
||||
1. `git init`, add remote, scaffold pyproject/LICENSE/.gitignore and a full **README.md** (what/why, install from release binary, quick start with `eval "$(envbao)"` for zsh/bash, example config, permission requirements, security notes, exit codes, CI/release summary, links to `docs/`, licence badge). README is kept in sync with features at the end of step 4.
|
||||
2. Implement security → config → render → client → kv engine → cli (TDD, tests alongside each module).
|
||||
3. Fake-OpenBao integration tests (KV v1, v2, auto-detect, 403, TLS/HTTP policy, missing keys).
|
||||
4. Docs, CI workflows, PyInstaller spec; local build smoke test.
|
||||
5. Initial commit (no push unless asked).
|
||||
|
||||
## Verification
|
||||
- `uv run pytest --cov` (≥90%), `ruff check`, `mypy --strict`.
|
||||
- `uv run pyinstaller envbao.spec` → run `dist/envbao --version`; `eval "$(dist/envbao --config test.toml)"` against a local `bao server -dev` (if installed) or the fake server; confirm `chmod 644 config.toml` makes it exit non-zero with empty stdout.
|
||||
- Lint the workflow YAML; tag-regex unit test with valid/invalid semver strings.
|
||||
@@ -0,0 +1,47 @@
|
||||
# Releasing and CI
|
||||
|
||||
## Pipelines (`.gitea/workflows/`)
|
||||
|
||||
- **`test.yml`** - on every push and pull request: ruff, ruff format check, strict mypy, pytest with a
|
||||
90 % coverage gate, and a PyInstaller build smoke test.
|
||||
- **`release.yml`** - on a pushed tag `vMAJOR.MINOR.PATCH[-prerelease][+build]` ([SemVer 2.0.0](https://semver.org)):
|
||||
1. `validate` rejects tags that are not valid SemVer (`scripts/version_from_tag.py`).
|
||||
2. `build` runs tests then builds `envbao` with PyInstaller on each runner, stamping the version
|
||||
from the tag into the binary and checking `envbao --version` matches.
|
||||
3. `release` writes `SHA256SUMS` and creates a Gitea release (marked *prerelease* if the tag has a
|
||||
`-suffix`) with all binaries attached.
|
||||
|
||||
## Cutting a release
|
||||
|
||||
```sh
|
||||
git tag v1.0.0 && git push origin v1.0.0
|
||||
```
|
||||
|
||||
Update `CHANGELOG.md` first.
|
||||
|
||||
## Runner requirements
|
||||
|
||||
PyInstaller cannot cross-compile, so the pipeline needs one Gitea `act_runner` per target, registered
|
||||
with these labels:
|
||||
|
||||
| Label | Host |
|
||||
|-------|------|
|
||||
| `linux-amd64` | Linux x86-64 (also runs tests, validation and publishing; needs `curl`, `python3`) |
|
||||
| `linux-arm64` | Linux aarch64 |
|
||||
| `macos-arm64` | macOS on Apple Silicon (host-mode runner, e.g. `macos-arm64:host`) |
|
||||
|
||||
Runners need network access to fetch `astral-sh/setup-uv` and Python packages.
|
||||
|
||||
## Secrets
|
||||
|
||||
| Secret | Purpose |
|
||||
|--------|---------|
|
||||
| `RELEASE_TOKEN` | Gitea access token with `write:repository` scope, used to create the release and upload assets. |
|
||||
|
||||
## Notes
|
||||
|
||||
- `actions/upload-artifact@v3` / `download-artifact@v3` are used because Gitea does not yet support v4.
|
||||
- Linux binaries link against the glibc of the build host; build on the oldest distro you want to
|
||||
support.
|
||||
- macOS binaries are unsigned; first run may need `xattr -d com.apple.quarantine envbao` if downloaded
|
||||
through a browser.
|
||||
@@ -0,0 +1,43 @@
|
||||
# Security model
|
||||
|
||||
## Threat model
|
||||
|
||||
`envbao` protects a long-lived OpenBao token on a single-user workstation and makes sure secrets
|
||||
reach the shell without being exposed or interpreted as code. It does **not** defend against an
|
||||
attacker who already runs as you or as root, nor does it protect the environment of processes once
|
||||
variables are exported (any child process inherits them).
|
||||
|
||||
## Controls
|
||||
|
||||
1. **Permission policy** - before anything else, `~/.envbao` (or the `--config` parent) and every
|
||||
entry beneath it must be: not a symlink, a regular file/directory, owned by the current user,
|
||||
and without any group/other permission bits (effectively `0700` dirs / `0600` files). Otherwise
|
||||
`envbao` logs CRITICAL, prints nothing to stdout, never contacts the server, and exits 78.
|
||||
A `token_file` outside the directory is checked identically.
|
||||
2. **Fail closed** - output is produced only after every query succeeded. Errors yield empty stdout.
|
||||
3. **Transport** - TLS verification is always on (optional `ca_cert`). `http://` is only allowed to
|
||||
loopback unless `allow_insecure_http = true`. Redirects are never followed, so the token cannot be
|
||||
forwarded elsewhere. Responses are size-limited.
|
||||
4. **Injection safety** - names must match `[A-Za-z_][A-Za-z0-9_]*`; values are quoted
|
||||
(`shlex.quote`, or fish single-quote escaping) and NUL bytes are rejected. Tests round-trip
|
||||
hostile values (`$(...)`, backticks, quotes, newlines) through a real shell.
|
||||
5. **Protected variables** - secrets may not set shell/loader control variables such as `PATH`,
|
||||
`IFS`, `ENV`, `BASH_ENV`, `PROMPT_COMMAND`, `LD_*`, `DYLD_*`, `PYTHONPATH`, `NODE_OPTIONS`, etc.,
|
||||
unless explicitly listed in `[security] allow_protected`. Refusals are logged at ERROR.
|
||||
6. **No secret leakage** - the token is excluded from `repr()`, never put on a command line or in
|
||||
the environment, and never logged. Secret values are never logged. HTTP error messages carry only
|
||||
status and path. Unexpected exceptions log only their type, not a traceback, unless `-vv`.
|
||||
7. **Audit trail** - log file (`0600`, created atomically with that mode, rotated) plus best-effort
|
||||
syslog for WARNING and above. Events: permission violations, auth failures, per-query outcome,
|
||||
overrides, refused variables, count of exported variables.
|
||||
|
||||
## Recommendations
|
||||
|
||||
- Use a token with a narrow read-only policy and a TTL; renew it periodically.
|
||||
- Prefer `token_file` if you want to rotate the token without editing the config.
|
||||
- Keep `~/.envbao` out of backups/sync tools that change permissions.
|
||||
- Verify release binaries against `SHA256SUMS`.
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
Please report privately to the maintainer rather than opening a public issue.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Usage
|
||||
|
||||
```
|
||||
envbao [--config PATH] [--shell {auto,bash,zsh,sh,fish}] [-v|-vv] [--check | --init]
|
||||
envbao --version
|
||||
```
|
||||
|
||||
| Option | Description |
|
||||
|--------|-------------|
|
||||
| *(none)* | Fetch all queries and print export statements to stdout. |
|
||||
| `--config PATH` | Use another config file. Its **parent directory** is the one permission-checked. |
|
||||
| `--shell` | Output dialect. `auto` (default) picks from `$SHELL`; unknown shells get POSIX syntax. |
|
||||
| `--check` | Validate permissions, config and token (via `auth/token/lookup-self`). Prints nothing to stdout. |
|
||||
| `--init` | Create `~/.envbao` (0700) and a template `config.toml` (0600). Never overwrites. |
|
||||
| `-v` / `-vv` | Show INFO / DEBUG messages on stderr. |
|
||||
|
||||
## Shell integration
|
||||
|
||||
bash / zsh:
|
||||
|
||||
```sh
|
||||
command -v envbao >/dev/null && eval "$(envbao)"
|
||||
```
|
||||
|
||||
fish (`~/.config/fish/config.fish`):
|
||||
|
||||
```fish
|
||||
type -q envbao; and envbao | source
|
||||
```
|
||||
|
||||
**Behaviour on failure:** stdout is empty and the exit code is non-zero, so `eval` does nothing and
|
||||
your shell starts normally; the reason is printed to stderr and logged. If you prefer silence at
|
||||
shell start-up, append `2>/dev/null` (details remain in `~/.envbao/envbao.log`).
|
||||
|
||||
## Output
|
||||
|
||||
Values are always single-quoted, so they can never be interpreted as shell syntax:
|
||||
|
||||
```sh
|
||||
export DATABASE_URL='postgres://u:p@h/db'
|
||||
export MYAPP_GREETING='it'"'"'s fine'
|
||||
```
|
||||
|
||||
Non-string secret values (numbers, booleans, nested objects) are converted to JSON text.
|
||||
Later `[[query]]` tables override earlier ones; overrides are logged.
|
||||
|
||||
## Logs
|
||||
|
||||
Records go to stderr (WARNING+ by default), the system log (WARNING+, best effort), and
|
||||
`~/.envbao/envbao.log` (INFO+, mode 0600, rotated at 256 KiB, 3 backups). The log contains paths,
|
||||
variable *names*, counts and outcomes only.
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
# PyInstaller spec: builds a single self-contained executable at dist/envbao.
|
||||
# Usage: uv run pyinstaller envbao.spec --clean --noconfirm
|
||||
a = Analysis(
|
||||
["src/envbao/__main__.py"],
|
||||
pathex=["src"],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
excludes=["tkinter", "unittest", "pydoc", "doctest"],
|
||||
noarchive=False,
|
||||
)
|
||||
pyz = PYZ(a.pure)
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.datas,
|
||||
[],
|
||||
name="envbao",
|
||||
debug=False,
|
||||
strip=False,
|
||||
upx=False,
|
||||
console=True,
|
||||
runtime_tmpdir=None,
|
||||
)
|
||||
@@ -0,0 +1,58 @@
|
||||
[project]
|
||||
name = "envbao"
|
||||
dynamic = ["version"]
|
||||
description = "Inject environment variables from an OpenBao server into your shell."
|
||||
readme = "README.md"
|
||||
license = "BSD-3-Clause"
|
||||
license-files = ["LICENSE"]
|
||||
requires-python = ">=3.13"
|
||||
dependencies = []
|
||||
|
||||
[project.scripts]
|
||||
envbao = "envbao.cli:main"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=8",
|
||||
"pytest-cov>=5",
|
||||
"ruff>=0.6",
|
||||
"mypy>=1.11",
|
||||
"pyinstaller>=6.10",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "src/envbao/_version.py"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/envbao"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
addopts = "-ra --strict-markers"
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["envbao"]
|
||||
branch = true
|
||||
|
||||
[tool.coverage.report]
|
||||
fail_under = 90
|
||||
show_missing = true
|
||||
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
src = ["src", "tests"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "B", "UP", "S", "SIM"]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/*" = ["S101", "S105", "S106"]
|
||||
|
||||
[tool.mypy]
|
||||
strict = true
|
||||
files = ["src/envbao"]
|
||||
@@ -0,0 +1,54 @@
|
||||
"""Validate a git tag as SemVer 2.0.0 and stamp it into ``src/envbao/_version.py``.
|
||||
|
||||
Usage: ``python scripts/version_from_tag.py v1.2.3`` - prints the bare version.
|
||||
Exits non-zero (and writes nothing) if the tag is not ``v`` + a valid SemVer string.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Official semver.org regex, prefixed with the literal "v".
|
||||
SEMVER_TAG = re.compile(
|
||||
r"^v(?P<version>(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)"
|
||||
r"(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?"
|
||||
r"(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?)$"
|
||||
)
|
||||
VERSION_FILE = Path(__file__).resolve().parent.parent / "src" / "envbao" / "_version.py"
|
||||
|
||||
|
||||
def parse_tag(tag: str) -> str:
|
||||
"""Return the version for a valid ``vX.Y.Z[-pre][+build]`` tag, else raise ValueError."""
|
||||
match = SEMVER_TAG.fullmatch(tag)
|
||||
if not match:
|
||||
raise ValueError(f"{tag!r} is not a valid semver tag (expected vMAJOR.MINOR.PATCH)")
|
||||
return match["version"]
|
||||
|
||||
|
||||
def write_version(version: str, path: Path | None = None) -> None:
|
||||
"""Overwrite the version module (default: the package's) with ``version``."""
|
||||
(path or VERSION_FILE).write_text(
|
||||
'"""Package version. Overwritten from the git tag by the release pipeline."""\n\n'
|
||||
f'__version__ = "{version}"\n',
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
|
||||
def main(argv: list[str]) -> int:
|
||||
if len(argv) != 2:
|
||||
sys.stderr.write("usage: version_from_tag.py <tag>\n")
|
||||
return 2
|
||||
try:
|
||||
version = parse_tag(argv[1])
|
||||
except ValueError as exc:
|
||||
sys.stderr.write(f"error: {exc}\n")
|
||||
return 1
|
||||
write_version(version)
|
||||
sys.stdout.write(version + "\n")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main(sys.argv))
|
||||
@@ -0,0 +1,5 @@
|
||||
"""EnvBao: inject environment variables from an OpenBao server into your shell."""
|
||||
|
||||
from envbao._version import __version__
|
||||
|
||||
__all__ = ["__version__"]
|
||||
@@ -0,0 +1,6 @@
|
||||
import sys
|
||||
|
||||
from envbao.cli import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
@@ -0,0 +1,3 @@
|
||||
"""Package version. Overwritten from the git tag by the release pipeline."""
|
||||
|
||||
__version__ = "0.0.0.dev0"
|
||||
@@ -0,0 +1,147 @@
|
||||
"""Command line interface.
|
||||
|
||||
Normal use is ``eval "$(envbao)"`` from a shell start-up file. In that mode **stdout
|
||||
carries only shell statements** and is empty on any failure; diagnostics go to stderr and
|
||||
the log. The process exit status tells scripts what went wrong (see ``envbao.errors``).
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from collections.abc import Sequence
|
||||
from pathlib import Path
|
||||
|
||||
from envbao import __version__
|
||||
from envbao.client import BaoClient
|
||||
from envbao.config import Config, load_config, resolve_config_path
|
||||
from envbao.errors import EXIT_FAILURE, EXIT_OK, EnvBaoError, PermissionPolicyError
|
||||
from envbao.logging_setup import add_file_logging, setup_stderr_logging
|
||||
from envbao.render import SHELLS, detect_shell, render
|
||||
from envbao.resolve import resolve, validate_queries
|
||||
from envbao.security import check_config_dir
|
||||
|
||||
log = logging.getLogger("envbao")
|
||||
|
||||
CONFIG_TEMPLATE = """\
|
||||
# EnvBao configuration. This file and its directory must be accessible by you only.
|
||||
[server]
|
||||
address = "https://bao.example.com:8200"
|
||||
token = "" # or: token_file = "~/.envbao/token" (mode 0600)
|
||||
# namespace = ""
|
||||
# ca_cert = "/path/to/ca.pem"
|
||||
# timeout = 5
|
||||
|
||||
# One [[query]] table per secret. Later queries override earlier ones.
|
||||
[[query]]
|
||||
engine = "kv"
|
||||
mount = "secret"
|
||||
path = "myapp/prod"
|
||||
# keys = ["DB_URL"]
|
||||
# prefix = "MYAPP_"
|
||||
# rename = { DB_URL = "DATABASE_URL" }
|
||||
# on_missing = "warn" # or "error"
|
||||
"""
|
||||
|
||||
|
||||
def build_parser() -> argparse.ArgumentParser:
|
||||
"""Create the argument parser."""
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="envbao",
|
||||
description="Print shell export statements for secrets stored in OpenBao. "
|
||||
'Use as: eval "$(envbao)"',
|
||||
)
|
||||
parser.add_argument(
|
||||
"--config", metavar="PATH", help="config file (default: ~/.envbao/config.toml)"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--shell",
|
||||
choices=("auto", *SHELLS),
|
||||
default="auto",
|
||||
help="output syntax (default: detect from $SHELL)",
|
||||
)
|
||||
mode = parser.add_mutually_exclusive_group()
|
||||
mode.add_argument(
|
||||
"--check",
|
||||
action="store_true",
|
||||
help="verify permissions, config and token, then exit without printing variables",
|
||||
)
|
||||
mode.add_argument(
|
||||
"--init",
|
||||
action="store_true",
|
||||
help="create ~/.envbao with safe permissions and a template config.toml",
|
||||
)
|
||||
parser.add_argument("-v", "--verbose", action="count", default=0, help="log more to stderr")
|
||||
parser.add_argument("--version", action="version", version=f"envbao {__version__}")
|
||||
return parser
|
||||
|
||||
|
||||
def init_config(path: Path) -> None:
|
||||
"""Create the config directory (0700) and a template config (0600) at ``path``."""
|
||||
directory = path.parent
|
||||
directory.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||
os.chmod(directory, 0o700)
|
||||
fd = os.open(path, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
|
||||
with os.fdopen(fd, "w", encoding="utf-8") as fh:
|
||||
fh.write(CONFIG_TEMPLATE)
|
||||
|
||||
|
||||
def _check(config: Config, client: BaoClient) -> None:
|
||||
info = client.get("auth/token/lookup-self").get("data", {})
|
||||
ttl = info.get("ttl")
|
||||
sys.stderr.write(
|
||||
f"envbao: OK - permissions safe, {len(config.queries)} query(ies) valid, "
|
||||
f"token accepted{f' (ttl {ttl}s)' if ttl is not None else ''}\n"
|
||||
)
|
||||
|
||||
|
||||
def run(args: argparse.Namespace) -> int:
|
||||
"""Execute the requested action and return the exit status."""
|
||||
path = resolve_config_path(args.config)
|
||||
|
||||
if args.init:
|
||||
try:
|
||||
init_config(path)
|
||||
except FileExistsError:
|
||||
sys.stderr.write(f"envbao: {path} already exists; not overwriting\n")
|
||||
return EXIT_FAILURE
|
||||
sys.stderr.write(f"envbao: created {path}; edit it to add your server and token\n")
|
||||
return EXIT_OK
|
||||
|
||||
# Permissions first: nothing in the directory is read or logged to until it is safe.
|
||||
check_config_dir(path.parent)
|
||||
add_file_logging(path.parent)
|
||||
|
||||
config = load_config(path)
|
||||
validate_queries(config)
|
||||
client = BaoClient(config.server)
|
||||
|
||||
if args.check:
|
||||
_check(config, client)
|
||||
return EXIT_OK
|
||||
|
||||
env = resolve(client, config)
|
||||
shell = detect_shell() if args.shell == "auto" else args.shell
|
||||
output = render(env, shell)
|
||||
log.info("exported %d variable(s) for %s", len(env), shell)
|
||||
sys.stdout.write(output)
|
||||
return EXIT_OK
|
||||
|
||||
|
||||
def main(argv: Sequence[str] | None = None) -> int:
|
||||
"""Program entry point; returns the process exit status."""
|
||||
args = build_parser().parse_args(argv)
|
||||
setup_stderr_logging(args.verbose)
|
||||
try:
|
||||
return run(args)
|
||||
except PermissionPolicyError as exc:
|
||||
return exc.exit_code # already logged at CRITICAL by the security check
|
||||
except EnvBaoError as exc:
|
||||
log.error("%s", exc)
|
||||
return exc.exit_code
|
||||
except Exception as exc: # last resort: never dump a traceback that could hold secrets
|
||||
log.critical("unexpected %s", type(exc).__name__)
|
||||
log.debug("details", exc_info=True)
|
||||
return EXIT_FAILURE
|
||||
@@ -0,0 +1,128 @@
|
||||
"""Minimal OpenBao HTTP client built on the standard library.
|
||||
|
||||
Security properties:
|
||||
|
||||
* TLS certificate and hostname verification are always on (optionally against a custom CA).
|
||||
* ``http://`` is only accepted for loopback addresses unless ``allow_insecure_http`` is set.
|
||||
* Redirects are never followed, so the token cannot be forwarded to another host.
|
||||
* Error messages contain the HTTP status and request path only, never the token or bodies.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import ipaddress
|
||||
import json
|
||||
import logging
|
||||
import ssl
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
from typing import Any
|
||||
from urllib.parse import urlencode, urlsplit
|
||||
|
||||
from envbao.config import ServerConfig
|
||||
from envbao.errors import AuthError, ConfigError, NotFoundError, ServerError
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
_API_PREFIX = "/v1/"
|
||||
_MAX_RESPONSE_BYTES = 8 * 1024 * 1024
|
||||
|
||||
|
||||
class _NoRedirect(urllib.request.HTTPRedirectHandler):
|
||||
def redirect_request(self, *args: Any, **kwargs: Any) -> None:
|
||||
return None
|
||||
|
||||
|
||||
def _is_loopback(host: str) -> bool:
|
||||
if host == "localhost":
|
||||
return True
|
||||
try:
|
||||
return ipaddress.ip_address(host).is_loopback
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
|
||||
def validate_address(address: str, *, allow_insecure_http: bool) -> str:
|
||||
"""Return the normalised base URL, enforcing the transport-security policy.
|
||||
|
||||
Raises:
|
||||
ConfigError: for unsupported schemes or plain HTTP to a non-loopback host.
|
||||
"""
|
||||
parts = urlsplit(address)
|
||||
if parts.scheme not in ("http", "https") or not parts.hostname:
|
||||
raise ConfigError("server.address must be an http(s) URL such as https://bao:8200")
|
||||
if parts.username or parts.password:
|
||||
raise ConfigError("server.address must not contain credentials")
|
||||
if parts.scheme == "http" and not _is_loopback(parts.hostname):
|
||||
if not allow_insecure_http:
|
||||
raise ConfigError(
|
||||
"refusing plain http:// to a non-loopback host; use https or set "
|
||||
"server.allow_insecure_http = true"
|
||||
)
|
||||
log.warning(
|
||||
"using insecure http:// transport to %s; the token is sent in clear", parts.netloc
|
||||
)
|
||||
return f"{parts.scheme}://{parts.netloc}"
|
||||
|
||||
|
||||
class BaoClient:
|
||||
"""Authenticated read-only access to the OpenBao HTTP API."""
|
||||
|
||||
def __init__(self, server: ServerConfig) -> None:
|
||||
self._base = validate_address(
|
||||
server.address, allow_insecure_http=server.allow_insecure_http
|
||||
)
|
||||
self._token = server.token
|
||||
self._namespace = server.namespace
|
||||
self._timeout = server.timeout
|
||||
handlers: list[urllib.request.BaseHandler] = [_NoRedirect()]
|
||||
if self._base.startswith("https://"):
|
||||
try:
|
||||
ctx = ssl.create_default_context(
|
||||
cafile=str(server.ca_cert) if server.ca_cert else None
|
||||
)
|
||||
except (OSError, ssl.SSLError) as exc:
|
||||
raise ConfigError(f"cannot load server.ca_cert: {exc}") from None
|
||||
handlers.append(urllib.request.HTTPSHandler(context=ctx))
|
||||
self._opener = urllib.request.build_opener(*handlers)
|
||||
|
||||
def get(self, path: str, params: dict[str, str] | None = None) -> dict[str, Any]:
|
||||
"""GET ``/v1/<path>`` and return the decoded JSON object.
|
||||
|
||||
Raises:
|
||||
AuthError: HTTP 401/403.
|
||||
NotFoundError: HTTP 404.
|
||||
ServerError: any other failure (network, TLS, 5xx, malformed response).
|
||||
"""
|
||||
url = f"{self._base}{_API_PREFIX}{path.lstrip('/')}"
|
||||
if params:
|
||||
url += "?" + urlencode(params)
|
||||
headers = {"X-Vault-Token": self._token, "Accept": "application/json"}
|
||||
if self._namespace:
|
||||
headers["X-Vault-Namespace"] = self._namespace
|
||||
request = urllib.request.Request(url, headers=headers, method="GET") # noqa: S310
|
||||
|
||||
shown = f"/{_API_PREFIX.strip('/')}/{path.lstrip('/')}"
|
||||
try:
|
||||
with self._opener.open(request, timeout=self._timeout) as response:
|
||||
body = response.read(_MAX_RESPONSE_BYTES + 1)
|
||||
except urllib.error.HTTPError as exc:
|
||||
exc.close()
|
||||
if exc.code in (401, 403):
|
||||
raise AuthError(f"access denied (HTTP {exc.code}) for {shown}") from None
|
||||
if exc.code == 404:
|
||||
raise NotFoundError(f"not found: {shown}") from None
|
||||
raise ServerError(f"server returned HTTP {exc.code} for {shown}") from None
|
||||
except (urllib.error.URLError, OSError, TimeoutError) as exc:
|
||||
reason = getattr(exc, "reason", exc)
|
||||
raise ServerError(f"cannot reach {self._base}: {reason}") from None
|
||||
|
||||
if len(body) > _MAX_RESPONSE_BYTES:
|
||||
raise ServerError(f"response for {shown} exceeds size limit")
|
||||
try:
|
||||
decoded = json.loads(body)
|
||||
except ValueError:
|
||||
raise ServerError(f"response for {shown} is not valid JSON") from None
|
||||
if not isinstance(decoded, dict):
|
||||
raise ServerError(f"unexpected response shape for {shown}")
|
||||
return decoded
|
||||
@@ -0,0 +1,232 @@
|
||||
"""Loading and validation of ``config.toml``.
|
||||
|
||||
The parser is deliberately strict: unknown keys and wrongly typed values are rejected so
|
||||
that typos (for example in a security-relevant option) never silently fall back to a
|
||||
default.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import tomllib
|
||||
from collections.abc import Mapping
|
||||
from dataclasses import dataclass, field
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from envbao.errors import ConfigError
|
||||
from envbao.security import check_path
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_DIR = Path("~/.envbao")
|
||||
CONFIG_NAME = "config.toml"
|
||||
DEFAULT_TIMEOUT = 5.0
|
||||
ON_MISSING_CHOICES = ("warn", "error")
|
||||
|
||||
_SERVER_KEYS = {
|
||||
"address",
|
||||
"token",
|
||||
"token_file",
|
||||
"namespace",
|
||||
"ca_cert",
|
||||
"timeout",
|
||||
"allow_insecure_http",
|
||||
}
|
||||
_SECURITY_KEYS = {"allow_protected"}
|
||||
_TOP_KEYS = {"server", "security", "query"}
|
||||
_QUERY_COMMON_KEYS = {"engine", "keys", "prefix", "rename", "on_missing"}
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class ServerConfig:
|
||||
"""Connection settings for the OpenBao server."""
|
||||
|
||||
address: str
|
||||
token: str = field(repr=False) # never show the token in reprs/tracebacks
|
||||
namespace: str | None = None
|
||||
ca_cert: Path | None = None
|
||||
timeout: float = DEFAULT_TIMEOUT
|
||||
allow_insecure_http: bool = False
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Query:
|
||||
"""One secret source and how its keys map to environment variables.
|
||||
|
||||
``options`` holds the engine-specific settings (e.g. ``mount``/``path`` for ``kv``);
|
||||
they are validated by the engine itself.
|
||||
"""
|
||||
|
||||
engine: str
|
||||
options: Mapping[str, Any]
|
||||
keys: tuple[str, ...] | None = None
|
||||
prefix: str = ""
|
||||
rename: Mapping[str, str] = field(default_factory=dict)
|
||||
on_missing: str = "warn"
|
||||
|
||||
def describe(self) -> str:
|
||||
"""Short, secret-free description of this query for logs."""
|
||||
opts = " ".join(f"{k}={v}" for k, v in self.options.items())
|
||||
return f"{self.engine}({opts})"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Config:
|
||||
"""Fully validated configuration."""
|
||||
|
||||
server: ServerConfig
|
||||
queries: tuple[Query, ...]
|
||||
allow_protected: frozenset[str] = frozenset()
|
||||
|
||||
|
||||
def resolve_config_path(explicit: str | None) -> Path:
|
||||
"""Return the config file path: ``explicit`` if given, else ``~/.envbao/config.toml``."""
|
||||
if explicit:
|
||||
return Path(explicit).expanduser()
|
||||
return DEFAULT_DIR.expanduser() / CONFIG_NAME
|
||||
|
||||
|
||||
def _require_table(value: Any, name: str) -> Mapping[str, Any]:
|
||||
if not isinstance(value, dict):
|
||||
raise ConfigError(f"[{name}] must be a table")
|
||||
return value
|
||||
|
||||
|
||||
def _reject_unknown(table: Mapping[str, Any], allowed: set[str], name: str) -> None:
|
||||
unknown = sorted(set(table) - allowed)
|
||||
if unknown:
|
||||
raise ConfigError(f"unknown key(s) in {name}: {', '.join(unknown)}")
|
||||
|
||||
|
||||
def _get_str(table: Mapping[str, Any], key: str, name: str) -> str | None:
|
||||
value = table.get(key)
|
||||
if value is None:
|
||||
return None
|
||||
if not isinstance(value, str):
|
||||
raise ConfigError(f"{name}.{key} must be a string")
|
||||
return value
|
||||
|
||||
|
||||
def _get_str_list(table: Mapping[str, Any], key: str, name: str) -> list[str] | None:
|
||||
value = table.get(key)
|
||||
if value is None:
|
||||
return None
|
||||
if not isinstance(value, list) or not all(isinstance(v, str) for v in value):
|
||||
raise ConfigError(f"{name}.{key} must be a list of strings")
|
||||
return list(value)
|
||||
|
||||
|
||||
def _read_token_file(path_str: str) -> str:
|
||||
path = Path(path_str).expanduser()
|
||||
# The token file may live outside ~/.envbao, so it is checked on its own as well.
|
||||
check_path(path, expect_dir=False)
|
||||
try:
|
||||
return path.read_text(encoding="utf-8").strip()
|
||||
except (OSError, UnicodeDecodeError) as exc:
|
||||
raise ConfigError(f"cannot read token_file {path}: {exc}") from None
|
||||
|
||||
|
||||
def _parse_server(raw: Mapping[str, Any]) -> ServerConfig:
|
||||
table = _require_table(raw, "server")
|
||||
_reject_unknown(table, _SERVER_KEYS, "[server]")
|
||||
|
||||
address = _get_str(table, "address", "server")
|
||||
if not address:
|
||||
raise ConfigError("server.address is required")
|
||||
|
||||
token = _get_str(table, "token", "server")
|
||||
token_file = _get_str(table, "token_file", "server")
|
||||
if token and token_file:
|
||||
raise ConfigError("set only one of server.token and server.token_file")
|
||||
if token_file:
|
||||
token = _read_token_file(token_file)
|
||||
if not token:
|
||||
raise ConfigError("a token is required: set server.token or server.token_file")
|
||||
|
||||
timeout = table.get("timeout", DEFAULT_TIMEOUT)
|
||||
if isinstance(timeout, bool) or not isinstance(timeout, int | float) or timeout <= 0:
|
||||
raise ConfigError("server.timeout must be a positive number")
|
||||
|
||||
allow_http = table.get("allow_insecure_http", False)
|
||||
if not isinstance(allow_http, bool):
|
||||
raise ConfigError("server.allow_insecure_http must be a boolean")
|
||||
|
||||
ca_cert = _get_str(table, "ca_cert", "server")
|
||||
return ServerConfig(
|
||||
address=address,
|
||||
token=token,
|
||||
namespace=_get_str(table, "namespace", "server") or None,
|
||||
ca_cert=Path(ca_cert).expanduser() if ca_cert else None,
|
||||
timeout=float(timeout),
|
||||
allow_insecure_http=allow_http,
|
||||
)
|
||||
|
||||
|
||||
def _parse_query(raw: Any, index: int) -> Query:
|
||||
name = f"query #{index + 1}"
|
||||
if not isinstance(raw, dict):
|
||||
raise ConfigError(f"{name} must be a table")
|
||||
|
||||
engine = _get_str(raw, "engine", name) or "kv"
|
||||
keys = _get_str_list(raw, "keys", name)
|
||||
prefix = _get_str(raw, "prefix", name) or ""
|
||||
|
||||
rename = raw.get("rename", {})
|
||||
if not isinstance(rename, dict) or not all(
|
||||
isinstance(k, str) and isinstance(v, str) for k, v in rename.items()
|
||||
):
|
||||
raise ConfigError(f"{name}.rename must be a table of string to string")
|
||||
|
||||
on_missing = _get_str(raw, "on_missing", name) or "warn"
|
||||
if on_missing not in ON_MISSING_CHOICES:
|
||||
raise ConfigError(f"{name}.on_missing must be one of {', '.join(ON_MISSING_CHOICES)}")
|
||||
|
||||
options = {k: v for k, v in raw.items() if k not in _QUERY_COMMON_KEYS}
|
||||
return Query(
|
||||
engine=engine,
|
||||
options=options,
|
||||
keys=tuple(keys) if keys is not None else None,
|
||||
prefix=prefix,
|
||||
rename=dict(rename),
|
||||
on_missing=on_missing,
|
||||
)
|
||||
|
||||
|
||||
def parse_config(data: Mapping[str, Any]) -> Config:
|
||||
"""Validate parsed TOML ``data`` and build a :class:`Config`."""
|
||||
_reject_unknown(data, _TOP_KEYS, "config file")
|
||||
if "server" not in data:
|
||||
raise ConfigError("missing [server] table")
|
||||
server = _parse_server(data["server"])
|
||||
|
||||
queries_raw = data.get("query", [])
|
||||
if not isinstance(queries_raw, list):
|
||||
raise ConfigError("queries must be declared with [[query]] tables")
|
||||
queries = tuple(_parse_query(q, i) for i, q in enumerate(queries_raw))
|
||||
|
||||
security = _require_table(data.get("security", {}), "security")
|
||||
_reject_unknown(security, _SECURITY_KEYS, "[security]")
|
||||
allow_protected = _get_str_list(security, "allow_protected", "security") or []
|
||||
|
||||
return Config(server=server, queries=queries, allow_protected=frozenset(allow_protected))
|
||||
|
||||
|
||||
def load_config(path: Path) -> Config:
|
||||
"""Read and validate the config file at ``path``.
|
||||
|
||||
The caller is responsible for having checked file permissions first.
|
||||
|
||||
Raises:
|
||||
ConfigError: if the file is missing, unparsable or invalid.
|
||||
"""
|
||||
try:
|
||||
with path.open("rb") as fh:
|
||||
data = tomllib.load(fh)
|
||||
except FileNotFoundError:
|
||||
raise ConfigError(f"config file not found: {path}") from None
|
||||
except tomllib.TOMLDecodeError as exc:
|
||||
raise ConfigError(f"invalid TOML in {path}: {exc}") from None
|
||||
except OSError as exc:
|
||||
raise ConfigError(f"cannot read {path}: {exc.strerror}") from None
|
||||
return parse_config(data)
|
||||
@@ -0,0 +1,42 @@
|
||||
"""Secret engines.
|
||||
|
||||
An engine turns the engine-specific options of a ``[[query]]`` into a flat mapping of
|
||||
names to values. Filtering (``keys``), ``prefix`` and ``rename`` are applied centrally in
|
||||
:mod:`envbao.resolve`, so adding a new credential engine only requires a new module that
|
||||
implements :class:`Engine` and an entry in :data:`ENGINES`.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Mapping
|
||||
from typing import Any, Protocol
|
||||
|
||||
from envbao.client import BaoClient
|
||||
from envbao.engines import kv
|
||||
from envbao.errors import ConfigError
|
||||
|
||||
|
||||
class Engine(Protocol):
|
||||
"""Interface every secret engine implements."""
|
||||
|
||||
def validate(self, options: Mapping[str, Any]) -> None:
|
||||
"""Raise :class:`~envbao.errors.ConfigError` if ``options`` are invalid."""
|
||||
|
||||
def fetch(self, client: BaoClient, options: Mapping[str, Any]) -> dict[str, Any]:
|
||||
"""Return the raw name -> value mapping.
|
||||
|
||||
Raises:
|
||||
NotFoundError: if the secret does not exist.
|
||||
"""
|
||||
|
||||
|
||||
ENGINES: dict[str, Engine] = {"kv": kv.KvEngine()}
|
||||
|
||||
|
||||
def get_engine(name: str) -> Engine:
|
||||
"""Look up an engine by name, raising :class:`ConfigError` if unknown."""
|
||||
try:
|
||||
return ENGINES[name]
|
||||
except KeyError:
|
||||
known = ", ".join(sorted(ENGINES))
|
||||
raise ConfigError(f"unknown engine {name!r} (available: {known})") from None
|
||||
@@ -0,0 +1,69 @@
|
||||
"""Key/Value secrets engine (versions 1 and 2) with automatic version detection."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from envbao.client import BaoClient
|
||||
from envbao.errors import ConfigError, EnvBaoError, NotFoundError, ServerError
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
_OPTIONS = {"mount", "path", "kv_version"}
|
||||
|
||||
|
||||
class KvEngine:
|
||||
"""Reads one secret from a KV v1 or v2 mount.
|
||||
|
||||
Options: ``mount`` (required), ``path`` (required), ``kv_version`` (``1``, ``2`` or
|
||||
``"auto"``, default ``"auto"``).
|
||||
"""
|
||||
|
||||
def validate(self, options: Mapping[str, Any]) -> None:
|
||||
unknown = sorted(set(options) - _OPTIONS)
|
||||
if unknown:
|
||||
raise ConfigError(f"unknown option(s) for kv engine: {', '.join(unknown)}")
|
||||
for key in ("mount", "path"):
|
||||
value = options.get(key)
|
||||
if not isinstance(value, str) or not value.strip("/"):
|
||||
raise ConfigError(f"kv query requires a non-empty string '{key}'")
|
||||
version = options.get("kv_version", "auto")
|
||||
if version not in (1, 2, "auto"):
|
||||
raise ConfigError('kv_version must be 1, 2 or "auto"')
|
||||
|
||||
def fetch(self, client: BaoClient, options: Mapping[str, Any]) -> dict[str, Any]:
|
||||
mount = str(options["mount"]).strip("/")
|
||||
path = str(options["path"]).strip("/")
|
||||
version = options.get("kv_version", "auto")
|
||||
if version == "auto":
|
||||
version = detect_version(client, mount)
|
||||
|
||||
if version == 2:
|
||||
body = client.get(f"{mount}/data/{path}")
|
||||
data = body.get("data", {}).get("data")
|
||||
else:
|
||||
body = client.get(f"{mount}/{path}")
|
||||
data = body.get("data")
|
||||
|
||||
if data is None: # e.g. a soft-deleted KV v2 version
|
||||
raise NotFoundError(f"no data at {mount}/{path}")
|
||||
if not isinstance(data, dict):
|
||||
raise ServerError(f"unexpected data shape at {mount}/{path}")
|
||||
return data
|
||||
|
||||
|
||||
def detect_version(client: BaoClient, mount: str) -> int:
|
||||
"""Return the KV version (1 or 2) of ``mount`` via ``sys/internal/ui/mounts``."""
|
||||
try:
|
||||
body = client.get(f"sys/internal/ui/mounts/{mount}")
|
||||
except EnvBaoError as exc:
|
||||
raise type(exc)(
|
||||
f"could not detect KV version of mount '{mount}' ({exc}); "
|
||||
"set kv_version = 1 or 2 on the query to skip detection"
|
||||
) from None
|
||||
options = body.get("data", {}).get("options") or {}
|
||||
version = str(options.get("version", "1")) or "1"
|
||||
log.debug("mount %s detected as KV v%s", mount, version)
|
||||
return 2 if version == "2" else 1
|
||||
@@ -0,0 +1,49 @@
|
||||
"""Exception hierarchy and process exit codes.
|
||||
|
||||
Every error EnvBao raises deliberately derives from :class:`EnvBaoError` and carries the
|
||||
exit code the CLI should terminate with. Messages must never contain secrets (tokens or
|
||||
secret values).
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
EXIT_OK = 0
|
||||
EXIT_FAILURE = 1
|
||||
EXIT_USAGE = 2 # argparse default
|
||||
EXIT_UNAVAILABLE = 69 # server unreachable / unexpected server response (EX_UNAVAILABLE)
|
||||
EXIT_AUTH = 77 # token rejected (EX_NOPERM)
|
||||
EXIT_CONFIG = 78 # bad config or unsafe file permissions (EX_CONFIG)
|
||||
|
||||
|
||||
class EnvBaoError(Exception):
|
||||
"""Base class for all expected EnvBao failures."""
|
||||
|
||||
exit_code = EXIT_FAILURE
|
||||
|
||||
|
||||
class ConfigError(EnvBaoError):
|
||||
"""The configuration file is missing, malformed or invalid."""
|
||||
|
||||
exit_code = EXIT_CONFIG
|
||||
|
||||
|
||||
class PermissionPolicyError(EnvBaoError):
|
||||
"""A file or directory under the EnvBao config directory has unsafe permissions."""
|
||||
|
||||
exit_code = EXIT_CONFIG
|
||||
|
||||
|
||||
class ServerError(EnvBaoError):
|
||||
"""The OpenBao server could not be reached or returned an unexpected response."""
|
||||
|
||||
exit_code = EXIT_UNAVAILABLE
|
||||
|
||||
|
||||
class AuthError(ServerError):
|
||||
"""The OpenBao server rejected the token (HTTP 401/403)."""
|
||||
|
||||
exit_code = EXIT_AUTH
|
||||
|
||||
|
||||
class NotFoundError(ServerError):
|
||||
"""The requested path does not exist (HTTP 404)."""
|
||||
@@ -0,0 +1,68 @@
|
||||
"""Logging configuration.
|
||||
|
||||
Logs never contain tokens or secret values; only paths, variable names and outcomes.
|
||||
Records go to stderr (so stdout stays clean for ``eval``), to ``<config dir>/envbao.log``
|
||||
(mode 0600, rotated) once the directory has passed the permission check, and best-effort
|
||||
to the system log for auditing.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import logging.handlers
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
LOG_NAME = "envbao.log"
|
||||
_FORMAT = "%(asctime)s %(levelname)s envbao[%(process)d]: %(message)s"
|
||||
_SYSLOG_FORMAT = "envbao[%(process)d]: %(levelname)s %(message)s"
|
||||
_SYSLOG_SOCKETS = ("/dev/log", "/var/run/syslog")
|
||||
|
||||
|
||||
class _PrivateRotatingFileHandler(logging.handlers.RotatingFileHandler):
|
||||
"""Rotating handler that always creates files with mode 0600."""
|
||||
|
||||
def _open(self): # type: ignore[no-untyped-def]
|
||||
fd = os.open(self.baseFilename, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0o600)
|
||||
return os.fdopen(fd, self.mode, encoding=self.encoding)
|
||||
|
||||
|
||||
def setup_stderr_logging(verbosity: int = 0) -> None:
|
||||
"""Configure the root ``envbao`` logger with a stderr handler (and best-effort syslog)."""
|
||||
logger = logging.getLogger("envbao")
|
||||
logger.handlers.clear()
|
||||
logger.propagate = False
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
stderr = logging.StreamHandler(sys.stderr)
|
||||
stderr.setLevel(
|
||||
logging.DEBUG if verbosity >= 2 else logging.INFO if verbosity else logging.WARNING
|
||||
)
|
||||
stderr.setFormatter(logging.Formatter("envbao: %(levelname)s: %(message)s"))
|
||||
logger.addHandler(stderr)
|
||||
|
||||
for sock in _SYSLOG_SOCKETS:
|
||||
if os.path.exists(sock):
|
||||
try:
|
||||
syslog = logging.handlers.SysLogHandler(address=sock)
|
||||
except OSError:
|
||||
continue
|
||||
syslog.setLevel(logging.WARNING)
|
||||
syslog.setFormatter(logging.Formatter(_SYSLOG_FORMAT))
|
||||
logger.addHandler(syslog)
|
||||
break
|
||||
|
||||
|
||||
def add_file_logging(directory: Path) -> None:
|
||||
"""Also log INFO and above to ``directory/envbao.log``. Call only after the permission check."""
|
||||
try:
|
||||
handler = _PrivateRotatingFileHandler(
|
||||
directory / LOG_NAME, maxBytes=256 * 1024, backupCount=3, encoding="utf-8"
|
||||
)
|
||||
except OSError as exc:
|
||||
logging.getLogger("envbao").warning("cannot open log file: %s", exc.strerror)
|
||||
return
|
||||
handler.setLevel(logging.INFO)
|
||||
handler.setFormatter(logging.Formatter(_FORMAT))
|
||||
logging.getLogger("envbao").addHandler(handler)
|
||||
@@ -0,0 +1,71 @@
|
||||
"""Rendering of environment variables as shell statements.
|
||||
|
||||
Variable names are validated against a strict pattern and values are always quoted, so
|
||||
that a secret value can never be interpreted as shell syntax by ``eval``.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import re
|
||||
import shlex
|
||||
from collections.abc import Mapping
|
||||
|
||||
from envbao.errors import ConfigError
|
||||
|
||||
SHELLS = ("bash", "zsh", "sh", "fish")
|
||||
_NAME_RE = re.compile(r"[A-Za-z_][A-Za-z0-9_]*\Z")
|
||||
|
||||
#: Variables that change how the shell or dynamic loader behaves. A compromised or
|
||||
#: misconfigured secret store must not be able to set these, so they are refused unless
|
||||
#: listed in ``[security] allow_protected``.
|
||||
PROTECTED = frozenset(
|
||||
{
|
||||
"PATH", "IFS", "SHELL", "HOME", "USER", "LOGNAME", "ENV", "BASH_ENV", "CDPATH",
|
||||
"PROMPT_COMMAND", "PS1", "PS2", "PS4", "SHELLOPTS", "BASHOPTS", "FPATH", "ZDOTDIR",
|
||||
"LD_PRELOAD", "LD_LIBRARY_PATH", "LD_AUDIT", "PYTHONPATH", "PYTHONSTARTUP",
|
||||
"PERL5OPT", "NODE_OPTIONS", "RUBYOPT",
|
||||
}
|
||||
) # fmt: skip
|
||||
_PROTECTED_PREFIXES = ("DYLD_", "BASH_FUNC_", "LD_")
|
||||
|
||||
|
||||
def is_valid_name(name: str) -> bool:
|
||||
"""Return True if ``name`` is a legal POSIX environment variable name."""
|
||||
return bool(_NAME_RE.match(name))
|
||||
|
||||
|
||||
def is_protected(name: str) -> bool:
|
||||
"""Return True if ``name`` is a shell/loader control variable."""
|
||||
return name in PROTECTED or name.startswith(_PROTECTED_PREFIXES)
|
||||
|
||||
|
||||
def detect_shell(environ: Mapping[str, str] | None = None) -> str:
|
||||
"""Guess the output dialect from ``$SHELL``; defaults to ``sh`` syntax."""
|
||||
shell = os.path.basename((environ or os.environ).get("SHELL", ""))
|
||||
return shell if shell in SHELLS else "sh"
|
||||
|
||||
|
||||
def _fish_quote(value: str) -> str:
|
||||
return "'" + value.replace("\\", "\\\\").replace("'", "\\'") + "'"
|
||||
|
||||
|
||||
def render(env: Mapping[str, str], shell: str = "sh") -> str:
|
||||
"""Return one export statement per variable, newline separated.
|
||||
|
||||
Raises:
|
||||
ConfigError: for an invalid name, a value containing NUL, or an unknown shell.
|
||||
"""
|
||||
if shell not in SHELLS:
|
||||
raise ConfigError(f"unsupported shell {shell!r}")
|
||||
lines: list[str] = []
|
||||
for name, value in env.items():
|
||||
if not is_valid_name(name):
|
||||
raise ConfigError(f"invalid environment variable name {name!r}")
|
||||
if "\x00" in value:
|
||||
raise ConfigError(f"value for {name} contains a NUL byte")
|
||||
if shell == "fish":
|
||||
lines.append(f"set -gx {name} {_fish_quote(value)}")
|
||||
else:
|
||||
lines.append(f"export {name}={shlex.quote(value)}")
|
||||
return "\n".join(lines) + ("\n" if lines else "")
|
||||
@@ -0,0 +1,99 @@
|
||||
"""Run the configured queries and build the final environment mapping."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from envbao.client import BaoClient
|
||||
from envbao.config import Config, Query
|
||||
from envbao.engines import get_engine
|
||||
from envbao.errors import ConfigError, EnvBaoError, NotFoundError
|
||||
from envbao.render import is_protected, is_valid_name
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def stringify(value: Any) -> str:
|
||||
"""Convert a secret value to the string placed in the environment."""
|
||||
if isinstance(value, str):
|
||||
return value
|
||||
return json.dumps(value, separators=(",", ":"))
|
||||
|
||||
|
||||
def validate_queries(config: Config) -> None:
|
||||
"""Validate engine-specific options of every query without contacting the server."""
|
||||
for index, query in enumerate(config.queries, start=1):
|
||||
try:
|
||||
get_engine(query.engine).validate(query.options)
|
||||
except ConfigError as exc:
|
||||
raise ConfigError(f"query #{index}: {exc}") from None
|
||||
|
||||
|
||||
def _select(raw: dict[str, Any], query: Query) -> dict[str, Any]:
|
||||
if query.keys is None:
|
||||
return raw
|
||||
missing = [k for k in query.keys if k not in raw]
|
||||
for key in missing:
|
||||
log.warning("key %r not present in %s", key, query.describe())
|
||||
if missing and query.on_missing == "error":
|
||||
raise NotFoundError(f"required key(s) missing from {query.describe()}")
|
||||
return {k: raw[k] for k in query.keys if k in raw}
|
||||
|
||||
|
||||
def run_query(client: BaoClient, query: Query, config: Config) -> dict[str, str]:
|
||||
"""Execute one query and return ``{ENV_NAME: value}``.
|
||||
|
||||
Names that are not valid variable names, or that are protected shell/loader variables
|
||||
(unless allowed in ``[security] allow_protected``), are skipped and logged.
|
||||
"""
|
||||
engine = get_engine(query.engine)
|
||||
try:
|
||||
raw = engine.fetch(client, query.options)
|
||||
except NotFoundError as exc:
|
||||
if query.on_missing == "error":
|
||||
raise
|
||||
log.warning("%s: %s", query.describe(), exc)
|
||||
return {}
|
||||
|
||||
result: dict[str, str] = {}
|
||||
for key, value in _select(raw, query).items():
|
||||
name = query.rename.get(key, key)
|
||||
name = f"{query.prefix}{name}"
|
||||
if not is_valid_name(name):
|
||||
log.warning("skipping %r from %s: not a valid variable name", name, query.describe())
|
||||
continue
|
||||
if is_protected(name) and name not in config.allow_protected:
|
||||
log.error(
|
||||
"refusing to set protected variable %s from %s "
|
||||
"(add it to [security] allow_protected to permit)",
|
||||
name,
|
||||
query.describe(),
|
||||
)
|
||||
continue
|
||||
result[name] = stringify(value)
|
||||
log.info("%s: %d variable(s)", query.describe(), len(result))
|
||||
return result
|
||||
|
||||
|
||||
def resolve(client: BaoClient, config: Config) -> dict[str, str]:
|
||||
"""Run all queries in order (later queries override earlier ones).
|
||||
|
||||
All-or-nothing: any non-recoverable error aborts and nothing is returned.
|
||||
|
||||
Raises:
|
||||
EnvBaoError: on the first fatal failure.
|
||||
"""
|
||||
env: dict[str, str] = {}
|
||||
for query in config.queries:
|
||||
try:
|
||||
values = run_query(client, query, config)
|
||||
except EnvBaoError as exc:
|
||||
log.error("query %s failed: %s", query.describe(), exc)
|
||||
raise
|
||||
for name in values:
|
||||
if name in env:
|
||||
log.warning("%s overridden by %s", name, query.describe())
|
||||
env.update(values)
|
||||
return env
|
||||
@@ -0,0 +1,80 @@
|
||||
"""Filesystem permission policy for the EnvBao configuration directory.
|
||||
|
||||
The directory holds an API token, so EnvBao refuses to run unless everything in it is
|
||||
readable and writable by the current user only. Symlinks are rejected outright to avoid
|
||||
being tricked into reading (or trusting the permissions of) a file elsewhere.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import os
|
||||
import stat
|
||||
from pathlib import Path
|
||||
|
||||
from envbao.errors import PermissionPolicyError
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
_GROUP_OTHER_BITS = stat.S_IRWXG | stat.S_IRWXO
|
||||
|
||||
|
||||
def _check(path: Path, *, expect_dir: bool) -> None:
|
||||
"""Verify ``path`` is a non-symlink owned by the current user with no group/other access.
|
||||
|
||||
Raises:
|
||||
PermissionPolicyError: if any check fails.
|
||||
"""
|
||||
try:
|
||||
st = os.lstat(path)
|
||||
except FileNotFoundError:
|
||||
raise PermissionPolicyError(f"{path} does not exist") from None
|
||||
except OSError as exc:
|
||||
raise PermissionPolicyError(f"cannot stat {path}: {exc.strerror}") from None
|
||||
|
||||
if stat.S_ISLNK(st.st_mode):
|
||||
raise PermissionPolicyError(f"{path} is a symbolic link; refusing to follow it")
|
||||
if expect_dir and not stat.S_ISDIR(st.st_mode):
|
||||
raise PermissionPolicyError(f"{path} is not a directory")
|
||||
if not expect_dir and not (stat.S_ISREG(st.st_mode) or stat.S_ISDIR(st.st_mode)):
|
||||
raise PermissionPolicyError(f"{path} is not a regular file or directory")
|
||||
if st.st_uid != os.geteuid():
|
||||
raise PermissionPolicyError(f"{path} is not owned by the current user")
|
||||
|
||||
mode = stat.S_IMODE(st.st_mode)
|
||||
if mode & _GROUP_OTHER_BITS:
|
||||
want = "0700" if stat.S_ISDIR(st.st_mode) else "0600"
|
||||
raise PermissionPolicyError(
|
||||
f"{path} has mode {mode:04o}; it must be accessible by the owner only "
|
||||
f"(fix with: chmod {want} '{path}')"
|
||||
)
|
||||
|
||||
|
||||
def check_path(path: Path, *, expect_dir: bool) -> None:
|
||||
"""Check a single path against the policy, logging any violation at CRITICAL.
|
||||
|
||||
Raises:
|
||||
PermissionPolicyError: if any check fails.
|
||||
"""
|
||||
try:
|
||||
_check(path, expect_dir=expect_dir)
|
||||
except PermissionPolicyError as exc:
|
||||
log.critical("permission policy violation: %s", exc)
|
||||
raise
|
||||
|
||||
|
||||
def check_config_dir(directory: Path) -> None:
|
||||
"""Check ``directory`` and everything beneath it against the permission policy.
|
||||
|
||||
Raises:
|
||||
PermissionPolicyError: on the first violation found. The violation is also logged
|
||||
at CRITICAL level for auditing.
|
||||
"""
|
||||
try:
|
||||
_check(directory, expect_dir=True)
|
||||
for root, dirs, files in os.walk(directory, followlinks=False):
|
||||
for name in (*dirs, *files):
|
||||
_check(Path(root) / name, expect_dir=False)
|
||||
except PermissionPolicyError as exc:
|
||||
log.critical("permission policy violation: %s", exc)
|
||||
raise
|
||||
Whitespace-only changes.
@@ -0,0 +1,94 @@
|
||||
"""Shared fixtures, including a tiny in-process fake OpenBao server."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import threading
|
||||
from collections.abc import Iterator
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
|
||||
TOKEN = "s.test-token"
|
||||
|
||||
|
||||
class FakeBao:
|
||||
"""Records requests and serves canned responses keyed by path."""
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.routes: dict[str, tuple[int, Any]] = {}
|
||||
self.requests: list[tuple[str, dict[str, str]]] = []
|
||||
self.url = ""
|
||||
|
||||
def kv2(self, mount: str, path: str, data: dict[str, Any]) -> None:
|
||||
self.routes[f"/v1/sys/internal/ui/mounts/{mount}"] = (
|
||||
200,
|
||||
{"data": {"options": {"version": "2"}}},
|
||||
)
|
||||
self.routes[f"/v1/{mount}/data/{path}"] = (200, {"data": {"data": data, "metadata": {}}})
|
||||
|
||||
def kv1(self, mount: str, path: str, data: dict[str, Any]) -> None:
|
||||
self.routes[f"/v1/sys/internal/ui/mounts/{mount}"] = (
|
||||
200,
|
||||
{"data": {"options": None}},
|
||||
)
|
||||
self.routes[f"/v1/{mount}/{path}"] = (200, {"data": data})
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def fake_bao() -> Iterator[FakeBao]:
|
||||
state = FakeBao()
|
||||
|
||||
class Handler(BaseHTTPRequestHandler):
|
||||
def do_GET(self) -> None: # noqa: N802
|
||||
headers = {k.lower(): v for k, v in self.headers.items()}
|
||||
state.requests.append((self.path, headers))
|
||||
if headers.get("x-vault-token") != TOKEN:
|
||||
self._send(403, {"errors": ["permission denied"]})
|
||||
return
|
||||
if self.path == "/v1/auth/token/lookup-self":
|
||||
self._send(200, {"data": {"ttl": 3600}})
|
||||
return
|
||||
if self.path == "/v1/redirect":
|
||||
self.send_response(302)
|
||||
self.send_header("Location", "http://127.0.0.1:1/steal")
|
||||
self.end_headers()
|
||||
return
|
||||
status, body = state.routes.get(self.path, (404, {"errors": []}))
|
||||
self._send(status, body)
|
||||
|
||||
def _send(self, status: int, body: Any) -> None:
|
||||
raw = body if isinstance(body, bytes) else json.dumps(body).encode()
|
||||
self.send_response(status)
|
||||
self.send_header("Content-Type", "application/json")
|
||||
self.send_header("Content-Length", str(len(raw)))
|
||||
self.end_headers()
|
||||
self.wfile.write(raw)
|
||||
|
||||
def log_message(self, *args: Any) -> None:
|
||||
pass
|
||||
|
||||
server = HTTPServer(("127.0.0.1", 0), Handler)
|
||||
state.url = f"http://127.0.0.1:{server.server_port}"
|
||||
thread = threading.Thread(target=server.serve_forever, daemon=True)
|
||||
thread.start()
|
||||
yield state
|
||||
server.shutdown()
|
||||
server.server_close()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def config_dir(tmp_path: Path) -> Path:
|
||||
d = tmp_path / ".envbao"
|
||||
d.mkdir(mode=0o700)
|
||||
d.chmod(0o700)
|
||||
return d
|
||||
|
||||
|
||||
def write_config(directory: Path, text: str, mode: int = 0o600) -> Path:
|
||||
path = directory / "config.toml"
|
||||
path.write_text(text)
|
||||
path.chmod(mode)
|
||||
return path
|
||||
@@ -0,0 +1,224 @@
|
||||
import os
|
||||
import stat
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from envbao import __version__
|
||||
from envbao.cli import init_config, main
|
||||
from envbao.errors import EXIT_AUTH, EXIT_CONFIG, EXIT_FAILURE, EXIT_OK, EXIT_UNAVAILABLE
|
||||
|
||||
from .conftest import TOKEN, FakeBao, write_config
|
||||
|
||||
|
||||
def conf(fake: FakeBao, token: str = TOKEN, extra: str = "") -> str:
|
||||
return f"""
|
||||
[server]
|
||||
address = "{fake.url}"
|
||||
token = "{token}"
|
||||
|
||||
[[query]]
|
||||
mount = "secret"
|
||||
path = "app"
|
||||
{extra}
|
||||
"""
|
||||
|
||||
|
||||
def test_exports_variables(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1", "B": "it's"})
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
assert main(["--config", str(path), "--shell", "bash"]) == EXIT_OK
|
||||
out = capsys.readouterr()
|
||||
assert out.out == "export A=1\nexport B='it'\"'\"'s'\n"
|
||||
assert TOKEN not in out.err
|
||||
|
||||
|
||||
def test_fish_and_auto_shell(
|
||||
fake_bao: FakeBao,
|
||||
config_dir: Path,
|
||||
capsys: pytest.CaptureFixture[str],
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1"})
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
monkeypatch.setenv("SHELL", "/usr/bin/fish")
|
||||
assert main(["--config", str(path)]) == EXIT_OK
|
||||
assert capsys.readouterr().out == "set -gx A '1'\n"
|
||||
|
||||
|
||||
def test_insecure_permissions_exit_with_empty_stdout(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1"})
|
||||
path = write_config(config_dir, conf(fake_bao), mode=0o644)
|
||||
assert main(["--config", str(path)]) == EXIT_CONFIG
|
||||
out = capsys.readouterr()
|
||||
assert out.out == ""
|
||||
assert "chmod 0600" in out.err
|
||||
assert fake_bao.requests == [] # server never contacted
|
||||
|
||||
|
||||
def test_insecure_directory(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
config_dir.chmod(0o755)
|
||||
assert main(["--config", str(path)]) == EXIT_CONFIG
|
||||
assert capsys.readouterr().out == ""
|
||||
|
||||
|
||||
def test_bad_token_exit_code(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
path = write_config(config_dir, conf(fake_bao, token="s.nope", extra="kv_version = 2"))
|
||||
assert main(["--config", str(path)]) == EXIT_AUTH
|
||||
out = capsys.readouterr()
|
||||
assert out.out == ""
|
||||
assert "s.nope" not in out.err
|
||||
|
||||
|
||||
def test_unreachable_server(config_dir: Path, capsys: pytest.CaptureFixture[str]) -> None:
|
||||
path = write_config(
|
||||
config_dir,
|
||||
'[server]\naddress = "http://127.0.0.1:1"\ntoken = "t"\ntimeout = 1\n'
|
||||
'[[query]]\nmount = "s"\npath = "p"\n',
|
||||
)
|
||||
assert main(["--config", str(path)]) == EXIT_UNAVAILABLE
|
||||
assert capsys.readouterr().out == ""
|
||||
|
||||
|
||||
def test_missing_config(config_dir: Path, capsys: pytest.CaptureFixture[str]) -> None:
|
||||
assert main(["--config", str(config_dir / "config.toml")]) == EXIT_CONFIG
|
||||
assert capsys.readouterr().out == ""
|
||||
|
||||
|
||||
def test_invalid_query_options(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
path = write_config(config_dir, conf(fake_bao, extra="kv_version = 9"))
|
||||
assert main(["--config", str(path)]) == EXIT_CONFIG
|
||||
assert "query #1" in capsys.readouterr().err
|
||||
|
||||
|
||||
def test_fatal_query_error_prints_nothing(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1"})
|
||||
path = write_config(
|
||||
config_dir,
|
||||
conf(fake_bao)
|
||||
+ '[[query]]\nmount = "secret"\npath = "gone"\non_missing = "error"\nkv_version = 2\n',
|
||||
)
|
||||
assert main(["--config", str(path)]) == EXIT_UNAVAILABLE
|
||||
assert capsys.readouterr().out == ""
|
||||
|
||||
|
||||
def test_check_mode(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
assert main(["--config", str(path), "--check"]) == EXIT_OK
|
||||
out = capsys.readouterr()
|
||||
assert out.out == ""
|
||||
assert "OK" in out.err and "ttl 3600" in out.err
|
||||
|
||||
|
||||
def test_log_file_created_private(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1"})
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
assert main(["--config", str(path)]) == EXIT_OK
|
||||
log = config_dir / "envbao.log"
|
||||
assert stat.S_IMODE(log.stat().st_mode) == 0o600
|
||||
text = log.read_text()
|
||||
assert "exported 1 variable" in text and TOKEN not in text
|
||||
# The log file itself must not trip the permission policy on the next run.
|
||||
assert main(["--config", str(path)]) == EXIT_OK
|
||||
|
||||
|
||||
def test_unexpected_exception_hides_details(
|
||||
fake_bao: FakeBao,
|
||||
config_dir: Path,
|
||||
capsys: pytest.CaptureFixture[str],
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
|
||||
def boom(*a: object, **k: object) -> None:
|
||||
raise RuntimeError(f"leaks {TOKEN}")
|
||||
|
||||
monkeypatch.setattr("envbao.cli.resolve", boom)
|
||||
assert main(["--config", str(path)]) == EXIT_FAILURE
|
||||
out = capsys.readouterr()
|
||||
assert out.out == "" and TOKEN not in out.err and "RuntimeError" in out.err
|
||||
|
||||
|
||||
def test_verbose_flag(
|
||||
fake_bao: FakeBao, config_dir: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1"})
|
||||
path = write_config(config_dir, conf(fake_bao))
|
||||
assert main(["--config", str(path), "-vv"]) == EXIT_OK
|
||||
assert "KV v2" in capsys.readouterr().err
|
||||
|
||||
|
||||
def test_version(capsys: pytest.CaptureFixture[str]) -> None:
|
||||
with pytest.raises(SystemExit) as exc:
|
||||
main(["--version"])
|
||||
assert exc.value.code == 0
|
||||
assert __version__ in capsys.readouterr().out
|
||||
|
||||
|
||||
# ---- init -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_init_creates_private_files(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:
|
||||
path = tmp_path / ".envbao" / "config.toml"
|
||||
assert main(["--config", str(path), "--init"]) == EXIT_OK
|
||||
assert stat.S_IMODE(path.parent.stat().st_mode) == 0o700
|
||||
assert stat.S_IMODE(path.stat().st_mode) == 0o600
|
||||
assert "[server]" in path.read_text()
|
||||
|
||||
|
||||
def test_init_refuses_to_overwrite(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:
|
||||
path = tmp_path / ".envbao" / "config.toml"
|
||||
init_config(path)
|
||||
path.write_text("mine")
|
||||
assert main(["--config", str(path), "--init"]) == EXIT_FAILURE
|
||||
assert path.read_text() == "mine"
|
||||
|
||||
|
||||
def test_init_tightens_existing_directory(tmp_path: Path) -> None:
|
||||
d = tmp_path / ".envbao"
|
||||
d.mkdir(mode=0o755)
|
||||
init_config(d / "config.toml")
|
||||
assert stat.S_IMODE(d.stat().st_mode) == 0o700
|
||||
|
||||
|
||||
def test_template_passes_permission_policy_but_needs_token(
|
||||
tmp_path: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
path = tmp_path / ".envbao" / "config.toml"
|
||||
main(["--config", str(path), "--init"])
|
||||
capsys.readouterr()
|
||||
assert main(["--config", str(path)]) == EXIT_CONFIG
|
||||
assert "token is required" in capsys.readouterr().err
|
||||
|
||||
|
||||
# ---- module entry point ---------------------------------------------------------------
|
||||
|
||||
|
||||
def test_python_dash_m(tmp_path: Path) -> None:
|
||||
result = subprocess.run( # noqa: S603
|
||||
[sys.executable, "-m", "envbao", "--version"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=True,
|
||||
env={**os.environ},
|
||||
)
|
||||
assert __version__ in result.stdout
|
||||
@@ -0,0 +1,272 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from envbao.client import BaoClient, validate_address
|
||||
from envbao.config import Config, Query, ServerConfig
|
||||
from envbao.engines import ENGINES, get_engine
|
||||
from envbao.errors import AuthError, ConfigError, NotFoundError, ServerError
|
||||
from envbao.resolve import resolve, run_query, stringify, validate_queries
|
||||
|
||||
from .conftest import TOKEN, FakeBao
|
||||
|
||||
|
||||
def server(fake: FakeBao, token: str = TOKEN, **kw: object) -> ServerConfig:
|
||||
return ServerConfig(address=fake.url, token=token, **kw) # type: ignore[arg-type]
|
||||
|
||||
|
||||
def query(**kw: object) -> Query:
|
||||
opts = {"mount": "secret", "path": "app"}
|
||||
opts.update(kw.pop("options", {})) # type: ignore[arg-type]
|
||||
return Query(engine="kv", options=opts, **kw) # type: ignore[arg-type]
|
||||
|
||||
|
||||
def cfg(fake: FakeBao, *queries: Query, **kw: object) -> Config:
|
||||
return Config(server=server(fake), queries=queries, **kw) # type: ignore[arg-type]
|
||||
|
||||
|
||||
# ---- address policy -------------------------------------------------------------------
|
||||
|
||||
|
||||
@pytest.mark.parametrize("addr", ["http://127.0.0.1:8200", "http://localhost", "http://[::1]:8200"])
|
||||
def test_http_loopback_allowed(addr: str) -> None:
|
||||
assert validate_address(addr, allow_insecure_http=False).startswith("http://")
|
||||
|
||||
|
||||
def test_http_remote_refused() -> None:
|
||||
with pytest.raises(ConfigError, match="plain http"):
|
||||
validate_address("http://bao.example.com", allow_insecure_http=False)
|
||||
|
||||
|
||||
def test_http_remote_allowed_with_flag_warns(caplog: pytest.LogCaptureFixture) -> None:
|
||||
validate_address("http://bao.example.com", allow_insecure_http=True)
|
||||
assert "insecure" in caplog.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize("addr", ["ftp://x", "bao", "https://", "https://u:p@bao"])
|
||||
def test_bad_addresses(addr: str) -> None:
|
||||
with pytest.raises(ConfigError):
|
||||
validate_address(addr, allow_insecure_http=True)
|
||||
|
||||
|
||||
def test_bad_ca_cert(tmp_path: Path) -> None:
|
||||
with pytest.raises(ConfigError, match="ca_cert"):
|
||||
BaoClient(ServerConfig("https://bao", "t", ca_cert=tmp_path / "missing.pem"))
|
||||
|
||||
|
||||
def test_https_client_builds() -> None:
|
||||
BaoClient(ServerConfig("https://bao.example.com", "t"))
|
||||
|
||||
|
||||
# ---- client ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_get_sends_token_and_namespace(fake_bao: FakeBao) -> None:
|
||||
client = BaoClient(server(fake_bao, namespace="team"))
|
||||
client.get("auth/token/lookup-self")
|
||||
_, headers = fake_bao.requests[-1]
|
||||
assert headers["x-vault-token"] == TOKEN
|
||||
assert headers["x-vault-namespace"] == "team"
|
||||
|
||||
|
||||
def test_get_with_params(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/x?a=1"] = (200, {"ok": True})
|
||||
assert BaoClient(server(fake_bao)).get("x", {"a": "1"}) == {"ok": True}
|
||||
|
||||
|
||||
def test_bad_token_is_auth_error_without_leak(fake_bao: FakeBao) -> None:
|
||||
with pytest.raises(AuthError) as exc:
|
||||
BaoClient(server(fake_bao, token="s.wrong")).get("auth/token/lookup-self")
|
||||
assert "s.wrong" not in str(exc.value)
|
||||
|
||||
|
||||
def test_404(fake_bao: FakeBao) -> None:
|
||||
with pytest.raises(NotFoundError):
|
||||
BaoClient(server(fake_bao)).get("nothing")
|
||||
|
||||
|
||||
def test_500(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/boom"] = (500, {})
|
||||
with pytest.raises(ServerError, match="HTTP 500"):
|
||||
BaoClient(server(fake_bao)).get("boom")
|
||||
|
||||
|
||||
def test_unreachable() -> None:
|
||||
with pytest.raises(ServerError, match="cannot reach"):
|
||||
BaoClient(ServerConfig("http://127.0.0.1:1", "t", timeout=1)).get("x")
|
||||
|
||||
|
||||
def test_invalid_json(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/bad"] = (200, b"not json")
|
||||
with pytest.raises(ServerError, match="not valid JSON"):
|
||||
BaoClient(server(fake_bao)).get("bad")
|
||||
|
||||
|
||||
def test_non_object_json(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/list"] = (200, [1, 2])
|
||||
with pytest.raises(ServerError, match="shape"):
|
||||
BaoClient(server(fake_bao)).get("list")
|
||||
|
||||
|
||||
def test_oversized_response(fake_bao: FakeBao, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setattr("envbao.client._MAX_RESPONSE_BYTES", 5)
|
||||
fake_bao.routes["/v1/big"] = (200, {"a": "long enough"})
|
||||
with pytest.raises(ServerError, match="size limit"):
|
||||
BaoClient(server(fake_bao)).get("big")
|
||||
|
||||
|
||||
def test_redirects_not_followed(fake_bao: FakeBao) -> None:
|
||||
with pytest.raises(ServerError, match="HTTP 302"):
|
||||
BaoClient(server(fake_bao)).get("redirect")
|
||||
|
||||
|
||||
# ---- kv engine ------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_kv2_autodetect(fake_bao: FakeBao) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1", "B": "two"})
|
||||
env = run_query(BaoClient(server(fake_bao)), query(), cfg(fake_bao))
|
||||
assert env == {"A": "1", "B": "two"}
|
||||
|
||||
|
||||
def test_kv1_autodetect(fake_bao: FakeBao) -> None:
|
||||
fake_bao.kv1("kv", "app", {"A": "1"})
|
||||
q = query(options={"mount": "kv"})
|
||||
assert run_query(BaoClient(server(fake_bao)), q, cfg(fake_bao)) == {"A": "1"}
|
||||
|
||||
|
||||
def test_explicit_version_skips_detection(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/secret/data/app"] = (200, {"data": {"data": {"A": "1"}}})
|
||||
q = query(options={"kv_version": 2})
|
||||
assert run_query(BaoClient(server(fake_bao)), q, cfg(fake_bao)) == {"A": "1"}
|
||||
assert all("sys/internal" not in p for p, _ in fake_bao.requests)
|
||||
|
||||
|
||||
def test_detection_failure_message(fake_bao: FakeBao) -> None:
|
||||
with pytest.raises(NotFoundError, match="kv_version"):
|
||||
run_query(BaoClient(server(fake_bao)), query(on_missing="error"), cfg(fake_bao))
|
||||
|
||||
|
||||
def test_keys_prefix_rename(fake_bao: FakeBao) -> None:
|
||||
fake_bao.kv2("secret", "app", {"DB": "x", "SKIP": "y"})
|
||||
q = query(keys=("DB",), prefix="APP_", rename={"DB": "DATABASE"})
|
||||
assert run_query(BaoClient(server(fake_bao)), q, cfg(fake_bao)) == {"APP_DATABASE": "x"}
|
||||
|
||||
|
||||
def test_missing_key_warn_and_error(fake_bao: FakeBao, caplog: pytest.LogCaptureFixture) -> None:
|
||||
fake_bao.kv2("secret", "app", {"A": "1"})
|
||||
client = BaoClient(server(fake_bao))
|
||||
assert run_query(client, query(keys=("A", "Z")), cfg(fake_bao)) == {"A": "1"}
|
||||
assert "'Z'" in caplog.text
|
||||
with pytest.raises(NotFoundError):
|
||||
run_query(client, query(keys=("Z",), on_missing="error"), cfg(fake_bao))
|
||||
|
||||
|
||||
def test_missing_secret_warn_and_error(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/sys/internal/ui/mounts/secret"] = (
|
||||
200,
|
||||
{"data": {"options": {"version": "2"}}},
|
||||
)
|
||||
client = BaoClient(server(fake_bao))
|
||||
assert run_query(client, query(), cfg(fake_bao)) == {}
|
||||
with pytest.raises(NotFoundError):
|
||||
run_query(client, query(on_missing="error"), cfg(fake_bao))
|
||||
|
||||
|
||||
def test_deleted_kv2_version_is_missing(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/sys/internal/ui/mounts/secret"] = (
|
||||
200,
|
||||
{"data": {"options": {"version": "2"}}},
|
||||
)
|
||||
fake_bao.routes["/v1/secret/data/app"] = (200, {"data": {"data": None}})
|
||||
assert run_query(BaoClient(server(fake_bao)), query(), cfg(fake_bao)) == {}
|
||||
|
||||
|
||||
def test_bad_data_shape(fake_bao: FakeBao) -> None:
|
||||
fake_bao.routes["/v1/secret/app"] = (200, {"data": ["x"]})
|
||||
q = query(options={"kv_version": 1})
|
||||
with pytest.raises(ServerError, match="shape"):
|
||||
run_query(BaoClient(server(fake_bao)), q, cfg(fake_bao))
|
||||
|
||||
|
||||
def test_invalid_and_protected_names_skipped(
|
||||
fake_bao: FakeBao, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
fake_bao.kv2("secret", "app", {"OK": "1", "bad-name": "2", "PATH": "/evil", "LD_PRELOAD": "x"})
|
||||
env = run_query(BaoClient(server(fake_bao)), query(), cfg(fake_bao))
|
||||
assert env == {"OK": "1"}
|
||||
assert "protected variable PATH" in caplog.text
|
||||
assert "/evil" not in caplog.text
|
||||
|
||||
|
||||
def test_protected_can_be_allowed(fake_bao: FakeBao) -> None:
|
||||
fake_bao.kv2("secret", "app", {"PATH": "/opt/bin"})
|
||||
c = cfg(fake_bao, allow_protected=frozenset({"PATH"}))
|
||||
assert run_query(BaoClient(server(fake_bao)), query(), c) == {"PATH": "/opt/bin"}
|
||||
|
||||
|
||||
def test_secret_values_never_logged(fake_bao: FakeBao, caplog: pytest.LogCaptureFixture) -> None:
|
||||
caplog.set_level("DEBUG")
|
||||
fake_bao.kv2("secret", "app", {"A": "hunter2-super-secret"})
|
||||
resolve(BaoClient(server(fake_bao)), cfg(fake_bao, query()))
|
||||
assert "hunter2" not in caplog.text
|
||||
assert TOKEN not in caplog.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"value, expected",
|
||||
[("s", "s"), (5, "5"), (1.5, "1.5"), (True, "true"), (None, "null"), ({"a": [1]}, '{"a":[1]}')],
|
||||
)
|
||||
def test_stringify(value: object, expected: str) -> None:
|
||||
assert stringify(value) == expected
|
||||
|
||||
|
||||
# ---- resolve --------------------------------------------------------------------------
|
||||
|
||||
|
||||
def test_later_queries_override(fake_bao: FakeBao, caplog: pytest.LogCaptureFixture) -> None:
|
||||
fake_bao.kv2("secret", "one", {"A": "1", "B": "1"})
|
||||
fake_bao.kv2("secret", "two", {"A": "2"})
|
||||
c = cfg(fake_bao, query(options={"path": "one"}), query(options={"path": "two"}))
|
||||
assert resolve(BaoClient(c.server), c) == {"A": "2", "B": "1"}
|
||||
assert "overridden" in caplog.text
|
||||
|
||||
|
||||
def test_resolve_aborts_on_auth_error(fake_bao: FakeBao, caplog: pytest.LogCaptureFixture) -> None:
|
||||
c = Config(server=server(fake_bao, token="bad"), queries=(query(options={"kv_version": 2}),))
|
||||
with pytest.raises(AuthError):
|
||||
resolve(BaoClient(c.server), c)
|
||||
assert "failed" in caplog.text
|
||||
|
||||
|
||||
# ---- engine registry / validation -----------------------------------------------------
|
||||
|
||||
|
||||
def test_unknown_engine() -> None:
|
||||
with pytest.raises(ConfigError, match="unknown engine"):
|
||||
get_engine("approle")
|
||||
|
||||
|
||||
def test_registry_contains_kv() -> None:
|
||||
assert "kv" in ENGINES
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"options, message",
|
||||
[
|
||||
({"mount": "s"}, "'path'"),
|
||||
({"path": "p"}, "'mount'"),
|
||||
({"mount": "/", "path": "p"}, "'mount'"),
|
||||
({"mount": "s", "path": "p", "kv_version": 3}, "kv_version"),
|
||||
({"mount": "s", "path": "p", "bogus": 1}, "unknown option"),
|
||||
],
|
||||
)
|
||||
def test_kv_validation(options: dict, message: str) -> None:
|
||||
c = Config(ServerConfig("https://b", "t"), (Query("kv", options),))
|
||||
with pytest.raises(ConfigError, match=message):
|
||||
validate_queries(c)
|
||||
|
||||
|
||||
def test_validate_queries_ok() -> None:
|
||||
c = Config(ServerConfig("https://b", "t"), (query(),))
|
||||
validate_queries(c)
|
||||
@@ -0,0 +1,126 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from envbao.config import load_config, parse_config, resolve_config_path
|
||||
from envbao.errors import ConfigError, PermissionPolicyError
|
||||
|
||||
BASE = {"server": {"address": "https://bao:8200", "token": "t"}}
|
||||
|
||||
|
||||
def test_minimal_config() -> None:
|
||||
cfg = parse_config(BASE)
|
||||
assert cfg.server.address == "https://bao:8200"
|
||||
assert cfg.server.timeout == 5.0
|
||||
assert cfg.queries == ()
|
||||
|
||||
|
||||
def test_token_not_in_repr() -> None:
|
||||
assert "t'" not in repr(parse_config(BASE).server).replace("token", "")
|
||||
assert "token='t'" not in repr(parse_config(BASE).server)
|
||||
|
||||
|
||||
def test_full_query() -> None:
|
||||
cfg = parse_config(
|
||||
{
|
||||
**BASE,
|
||||
"security": {"allow_protected": ["PATH"]},
|
||||
"query": [
|
||||
{
|
||||
"mount": "secret",
|
||||
"path": "a",
|
||||
"keys": ["X"],
|
||||
"prefix": "P_",
|
||||
"rename": {"X": "Y"},
|
||||
"on_missing": "error",
|
||||
}
|
||||
],
|
||||
}
|
||||
)
|
||||
q = cfg.queries[0]
|
||||
assert q.engine == "kv"
|
||||
assert q.options == {"mount": "secret", "path": "a"}
|
||||
assert q.keys == ("X",)
|
||||
assert q.prefix == "P_"
|
||||
assert q.rename == {"X": "Y"}
|
||||
assert q.on_missing == "error"
|
||||
assert cfg.allow_protected == {"PATH"}
|
||||
assert "mount=secret" in q.describe()
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"data, message",
|
||||
[
|
||||
({}, "missing \\[server\\]"),
|
||||
({"bogus": 1, **BASE}, "unknown key"),
|
||||
({"server": {"token": "t"}}, "address is required"),
|
||||
({"server": {"address": "https://x"}}, "token is required"),
|
||||
({"server": {"address": "x", "token": "t", "extra": 1}}, "unknown key"),
|
||||
({"server": {"address": "x", "token": "t", "token_file": "f"}}, "only one"),
|
||||
({"server": {"address": 5, "token": "t"}}, "must be a string"),
|
||||
({"server": {"address": "x", "token": "t", "timeout": -1}}, "timeout"),
|
||||
({"server": {"address": "x", "token": "t", "timeout": True}}, "timeout"),
|
||||
({"server": {"address": "x", "token": "t", "allow_insecure_http": "yes"}}, "boolean"),
|
||||
({"server": "nope"}, "must be a table"),
|
||||
({**BASE, "query": {"a": 1}}, "\\[\\[query\\]\\]"),
|
||||
({**BASE, "query": ["x"]}, "must be a table"),
|
||||
({**BASE, "query": [{"keys": "A"}]}, "list of strings"),
|
||||
({**BASE, "query": [{"rename": {"a": 1}}]}, "rename"),
|
||||
({**BASE, "query": [{"on_missing": "ignore"}]}, "on_missing"),
|
||||
({**BASE, "security": {"x": 1}}, "unknown key"),
|
||||
],
|
||||
)
|
||||
def test_invalid_configs(data: dict, message: str) -> None:
|
||||
with pytest.raises(ConfigError, match=message):
|
||||
parse_config(data)
|
||||
|
||||
|
||||
def test_token_file(tmp_path: Path) -> None:
|
||||
tf = tmp_path / "tok"
|
||||
tf.write_text(" s.abc\n")
|
||||
tf.chmod(0o600)
|
||||
cfg = parse_config({"server": {"address": "https://b", "token_file": str(tf)}})
|
||||
assert cfg.server.token == "s.abc"
|
||||
|
||||
|
||||
def test_token_file_permissions_enforced(tmp_path: Path) -> None:
|
||||
tf = tmp_path / "tok"
|
||||
tf.write_text("s.abc")
|
||||
tf.chmod(0o644)
|
||||
with pytest.raises(PermissionPolicyError):
|
||||
parse_config({"server": {"address": "https://b", "token_file": str(tf)}})
|
||||
|
||||
|
||||
def test_token_file_missing(tmp_path: Path) -> None:
|
||||
with pytest.raises(PermissionPolicyError):
|
||||
parse_config({"server": {"address": "https://b", "token_file": str(tmp_path / "x")}})
|
||||
|
||||
|
||||
def test_load_config_roundtrip(tmp_path: Path) -> None:
|
||||
p = tmp_path / "c.toml"
|
||||
p.write_text('[server]\naddress = "https://b"\ntoken = "t"\nca_cert = "~/ca.pem"\n')
|
||||
cfg = load_config(p)
|
||||
assert cfg.server.ca_cert == Path("~/ca.pem").expanduser()
|
||||
|
||||
|
||||
def test_load_missing_file(tmp_path: Path) -> None:
|
||||
with pytest.raises(ConfigError, match="not found"):
|
||||
load_config(tmp_path / "nope.toml")
|
||||
|
||||
|
||||
def test_load_bad_toml(tmp_path: Path) -> None:
|
||||
p = tmp_path / "c.toml"
|
||||
p.write_text("[server\n")
|
||||
with pytest.raises(ConfigError, match="invalid TOML"):
|
||||
load_config(p)
|
||||
|
||||
|
||||
def test_load_unreadable(tmp_path: Path) -> None:
|
||||
with pytest.raises(ConfigError, match="cannot read"):
|
||||
load_config(tmp_path) # a directory
|
||||
|
||||
|
||||
def test_resolve_config_path(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
||||
monkeypatch.setenv("HOME", str(tmp_path))
|
||||
assert resolve_config_path(None) == tmp_path / ".envbao" / "config.toml"
|
||||
assert resolve_config_path("~/x.toml") == tmp_path / "x.toml"
|
||||
@@ -0,0 +1,103 @@
|
||||
import shlex
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
from envbao.errors import ConfigError
|
||||
from envbao.render import detect_shell, is_protected, is_valid_name, render
|
||||
|
||||
|
||||
@pytest.mark.parametrize("name", ["A", "_a", "FOO_BAR1", "a"])
|
||||
def test_valid_names(name: str) -> None:
|
||||
assert is_valid_name(name)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("name", ["", "1A", "A-B", "A B", "A=B", "A\n", "A;rm", "é"])
|
||||
def test_invalid_names(name: str) -> None:
|
||||
assert not is_valid_name(name)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("name", ["PATH", "LD_PRELOAD", "DYLD_INSERT_LIBRARIES", "BASH_FUNC_x%%"])
|
||||
def test_protected(name: str) -> None:
|
||||
assert is_protected(name)
|
||||
|
||||
|
||||
def test_not_protected() -> None:
|
||||
assert not is_protected("MY_API_KEY")
|
||||
|
||||
|
||||
def test_posix_render() -> None:
|
||||
assert render({"A": "b c", "D": "it's"}) == "export A='b c'\nexport D='it'\"'\"'s'\n"
|
||||
|
||||
|
||||
def test_empty_render() -> None:
|
||||
assert render({}) == ""
|
||||
|
||||
|
||||
def test_fish_render() -> None:
|
||||
assert render({"A": "it's \\ ok"}, "fish") == "set -gx A 'it\\'s \\\\ ok'\n"
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"value",
|
||||
[
|
||||
"$(touch /tmp/pwned)",
|
||||
"`id`",
|
||||
"a; b",
|
||||
"a\nb",
|
||||
"'\"'",
|
||||
"$HOME",
|
||||
"\\",
|
||||
"*",
|
||||
"!!",
|
||||
"a b\tc",
|
||||
"é",
|
||||
],
|
||||
)
|
||||
def test_roundtrip_through_real_shell(value: str) -> None:
|
||||
script = render({"V": value}) + 'printf %s "$V"'
|
||||
out = subprocess.run( # noqa: S603
|
||||
["/bin/sh", "-c", script],
|
||||
capture_output=True,
|
||||
check=True,
|
||||
text=True, # noqa: S607
|
||||
)
|
||||
assert out.stdout == value
|
||||
|
||||
|
||||
def test_values_are_single_argument() -> None:
|
||||
assert shlex.split(render({"V": "a; b"}).split("=", 1)[1]) == ["a; b"]
|
||||
|
||||
|
||||
def test_invalid_name_raises() -> None:
|
||||
with pytest.raises(ConfigError, match="invalid environment"):
|
||||
render({"BAD NAME": "x"})
|
||||
|
||||
|
||||
def test_nul_raises() -> None:
|
||||
with pytest.raises(ConfigError, match="NUL"):
|
||||
render({"A": "x\x00y"})
|
||||
|
||||
|
||||
def test_unknown_shell() -> None:
|
||||
with pytest.raises(ConfigError, match="unsupported"):
|
||||
render({"A": "x"}, "powershell")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"shell, expected",
|
||||
[
|
||||
("/bin/zsh", "zsh"),
|
||||
("/usr/bin/fish", "fish"),
|
||||
("/bin/bash", "bash"),
|
||||
("/bin/tcsh", "sh"),
|
||||
("", "sh"),
|
||||
],
|
||||
)
|
||||
def test_detect_shell(shell: str, expected: str) -> None:
|
||||
assert detect_shell({"SHELL": shell}) == expected
|
||||
|
||||
|
||||
def test_detect_shell_from_os_environ(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setenv("SHELL", "/bin/zsh")
|
||||
assert detect_shell() == "zsh"
|
||||
@@ -0,0 +1,93 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from envbao.errors import EXIT_CONFIG, PermissionPolicyError
|
||||
from envbao.security import check_config_dir, check_path
|
||||
|
||||
|
||||
def test_safe_directory_passes(config_dir: Path) -> None:
|
||||
(config_dir / "config.toml").write_text("x")
|
||||
(config_dir / "config.toml").chmod(0o600)
|
||||
check_config_dir(config_dir)
|
||||
|
||||
|
||||
def test_missing_directory(tmp_path: Path) -> None:
|
||||
with pytest.raises(PermissionPolicyError, match="does not exist"):
|
||||
check_config_dir(tmp_path / "nope")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("mode", [0o755, 0o770, 0o701, 0o750])
|
||||
def test_directory_too_open(config_dir: Path, mode: int) -> None:
|
||||
config_dir.chmod(mode)
|
||||
with pytest.raises(PermissionPolicyError, match="chmod 0700"):
|
||||
check_config_dir(config_dir)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("mode", [0o644, 0o640, 0o602, 0o660])
|
||||
def test_file_too_open(config_dir: Path, mode: int) -> None:
|
||||
f = config_dir / "config.toml"
|
||||
f.write_text("x")
|
||||
f.chmod(mode)
|
||||
with pytest.raises(PermissionPolicyError, match="chmod 0600"):
|
||||
check_config_dir(config_dir)
|
||||
|
||||
|
||||
def test_nested_file_checked(config_dir: Path) -> None:
|
||||
sub = config_dir / "sub"
|
||||
sub.mkdir(mode=0o700)
|
||||
bad = sub / "token"
|
||||
bad.write_text("x")
|
||||
bad.chmod(0o666)
|
||||
with pytest.raises(PermissionPolicyError):
|
||||
check_config_dir(config_dir)
|
||||
|
||||
|
||||
def test_symlink_rejected(config_dir: Path, tmp_path: Path) -> None:
|
||||
target = tmp_path / "real"
|
||||
target.write_text("x")
|
||||
target.chmod(0o600)
|
||||
(config_dir / "link").symlink_to(target)
|
||||
with pytest.raises(PermissionPolicyError, match="symbolic link"):
|
||||
check_config_dir(config_dir)
|
||||
|
||||
|
||||
def test_symlinked_directory_rejected(tmp_path: Path, config_dir: Path) -> None:
|
||||
link = tmp_path / "linkdir"
|
||||
link.symlink_to(config_dir)
|
||||
with pytest.raises(PermissionPolicyError, match="symbolic link"):
|
||||
check_config_dir(link)
|
||||
|
||||
|
||||
def test_directory_given_as_file(tmp_path: Path) -> None:
|
||||
f = tmp_path / "f"
|
||||
f.write_text("x")
|
||||
f.chmod(0o600)
|
||||
with pytest.raises(PermissionPolicyError, match="not a directory"):
|
||||
check_path(f, expect_dir=True)
|
||||
|
||||
|
||||
def test_other_owner_rejected(config_dir: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
real = os.geteuid()
|
||||
monkeypatch.setattr(os, "geteuid", lambda: real + 1)
|
||||
with pytest.raises(PermissionPolicyError, match="not owned"):
|
||||
check_path(config_dir, expect_dir=True)
|
||||
|
||||
|
||||
def test_special_file_rejected(config_dir: Path) -> None:
|
||||
fifo = config_dir / "pipe"
|
||||
os.mkfifo(fifo, 0o600)
|
||||
with pytest.raises(PermissionPolicyError, match="not a regular"):
|
||||
check_config_dir(config_dir)
|
||||
|
||||
|
||||
def test_violation_is_logged_critical(config_dir: Path, caplog: pytest.LogCaptureFixture) -> None:
|
||||
config_dir.chmod(0o755)
|
||||
with pytest.raises(PermissionPolicyError):
|
||||
check_config_dir(config_dir)
|
||||
assert any(r.levelname == "CRITICAL" for r in caplog.records)
|
||||
|
||||
|
||||
def test_exit_code() -> None:
|
||||
assert PermissionPolicyError.exit_code == EXIT_CONFIG
|
||||
@@ -0,0 +1,71 @@
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
_spec = importlib.util.spec_from_file_location(
|
||||
"version_from_tag", Path(__file__).parent.parent / "scripts" / "version_from_tag.py"
|
||||
)
|
||||
assert _spec and _spec.loader
|
||||
vft = importlib.util.module_from_spec(_spec)
|
||||
_spec.loader.exec_module(vft)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"tag, version",
|
||||
[
|
||||
("v0.0.1", "0.0.1"),
|
||||
("v1.2.3", "1.2.3"),
|
||||
("v10.20.30", "10.20.30"),
|
||||
("v1.0.0-rc.1", "1.0.0-rc.1"),
|
||||
("v1.0.0-alpha+001", "1.0.0-alpha+001"),
|
||||
("v1.0.0+20130313144700", "1.0.0+20130313144700"),
|
||||
],
|
||||
)
|
||||
def test_valid_tags(tag: str, version: str) -> None:
|
||||
assert vft.parse_tag(tag) == version
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"tag",
|
||||
[
|
||||
"1.2.3",
|
||||
"v1.2",
|
||||
"v01.2.3",
|
||||
"v1.2.3.4",
|
||||
"v1.2.3-",
|
||||
"v1.2.3-01",
|
||||
"latest",
|
||||
"",
|
||||
"v1.2.3 ",
|
||||
"V1.2.3",
|
||||
],
|
||||
)
|
||||
def test_invalid_tags(tag: str) -> None:
|
||||
with pytest.raises(ValueError, match="not a valid semver"):
|
||||
vft.parse_tag(tag)
|
||||
|
||||
|
||||
def test_main_writes_version(
|
||||
tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
target = tmp_path / "_version.py"
|
||||
monkeypatch.setattr(vft, "VERSION_FILE", target)
|
||||
assert vft.main(["x", "v2.0.1"]) == 0
|
||||
assert '__version__ = "2.0.1"' in target.read_text()
|
||||
assert capsys.readouterr().out == "2.0.1\n"
|
||||
|
||||
|
||||
def test_write_version_real(tmp_path: Path) -> None:
|
||||
target = tmp_path / "v.py"
|
||||
vft.write_version("3.1.4", target)
|
||||
assert "Overwritten" in target.read_text() and '"3.1.4"' in target.read_text()
|
||||
|
||||
|
||||
def test_main_rejects_bad_tag(capsys: pytest.CaptureFixture[str]) -> None:
|
||||
assert vft.main(["x", "nope"]) == 1
|
||||
assert "not a valid semver" in capsys.readouterr().err
|
||||
|
||||
|
||||
def test_main_usage() -> None:
|
||||
assert vft.main(["x"]) == 2
|
||||
@@ -0,0 +1,528 @@
|
||||
version = 1
|
||||
revision = 5
|
||||
requires-python = ">=3.13"
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.15'",
|
||||
"python_full_version < '3.15'",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "altgraph"
|
||||
version = "0.17.5"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/7e/f8/97fdf103f38fed6792a1601dbc16cc8aac56e7459a9fff08c812d8ae177a/altgraph-0.17.5.tar.gz", hash = "sha256:c87b395dd12fabde9c99573a9749d67da8d29ef9de0125c7f536699b4a9bc9e7", size = 48428, upload-time = "2025-11-21T20:35:50.583Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/ba/000a1996d4308bc65120167c21241a3b205464a2e0b58deda26ae8ac21d1/altgraph-0.17.5-py2.py3-none-any.whl", hash = "sha256:f3a22400bce1b0c701683820ac4f3b159cd301acab067c51c653e06961600597", size = 21228, upload-time = "2025-11-21T20:35:49.444Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ast-serialize"
|
||||
version = "0.13.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/d2/7c/dcde7ac261e0bfbb0360c207a1e3f9fd467f9bfaeaff7b62d01625bc86d2/ast_serialize-0.13.0.tar.gz", hash = "sha256:a0bdcef01e643e0810d2dedfb64d924bcfe079a15dc20d1c067870cc01d5c5e6", size = 954999, upload-time = "2026-10-12T17:06:22.222Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/25/86/6d1e047a41fc360ca4c7f8d1d3d0727302d7e0b0af4933a462c18390a00a/ast_serialize-0.13.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:4d1e15da4b6afc6fe80b87704be452aa0639df93d019a516e9ac9540357fc9b2", size = 897213, upload-time = "2026-10-12T17:04:48.544Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e2/1e/4a55b8d219616dcb9523c062dd4110ca7dd9d3c99a0ea169ce1de049e8dc/ast_serialize-0.13.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:619050b18705310e19e254cdb7554289fe14da374cbfbb1362cd84635896fb7f", size = 1236396, upload-time = "2026-10-12T17:04:50.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/ad/93ec0502d21691152a26103f76064c4a5bef6945866cadd8288485907306/ast_serialize-0.13.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7ce1b50c5a68233e890926405afc308a5f10f6f49ec3a094d3dfa8b6733e4496", size = 1217965, upload-time = "2026-10-12T17:04:52.692Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/37/12412da699bdfde52233836c98a30abc6086dbe17bdf0ad3497788e719c3/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6bab08a6f287cd620578084f9974cfaf3bef71959105f62af85fa70298b24851", size = 1282094, upload-time = "2026-10-12T17:04:54.128Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/a4/42ba2ca24865442c6aea14bc648a0800181f76dde7e6e3f4036887cf7ce6/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4e0bc018a457052d4638b469f90674e6ec0e32d86ac4a7bfa1f7d1c71a961426", size = 1287429, upload-time = "2026-10-12T17:04:55.546Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/ec/3a5923554ea5f7148ea5742ffbef2f65deed68a8a5cbad6ca5f744adfcf2/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:452fdaf5ff0b791870bb332254e083107d7abe29ef43251411c265c5b138f9a2", size = 1531892, upload-time = "2026-10-12T17:04:57.147Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/b4/e61038bf0dfb42c208e96e3ef953855e3bdb435f015f9dbf14e721c98066/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:12441bc7e41e495db5634c98adc8f8886b619ce2f1e68effe3f792a2adca9f47", size = 1309544, upload-time = "2026-10-12T17:04:59.026Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/46/a2/5fc3e341f00711931bae32af6937122e205173d8521d1f7282b6cc2cc0f1/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:84cd9efdd3cd780b1f5361049becd91e0bcb0f16c2c216f41ee82e728a98390b", size = 1301823, upload-time = "2026-10-12T17:05:00.671Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/51/592a4640cb7a88cd27c457a0448c5a635cf5c01c78b693dd6ef4dfe4d3bf/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:4dc7a24c734aded0557ef90bfabd2278b37502aacde84f49b53b4cb6a0711ea9", size = 1298520, upload-time = "2026-10-12T17:05:02.229Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/f6/7d938404c3b94e3a18b2b53a4250abf3f28f38caf46b6e381020e83977ab/ast_serialize-0.13.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6c95c04f1781cbefe89d512ce30e051d10823827ae542d9f18d5c2e7ba0fad08", size = 1355363, upload-time = "2026-10-12T17:05:03.631Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/2e/88d437318054d5ce5c6c2be477258ae8d756620463221276fb0ae267fe93/ast_serialize-0.13.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fadba24386498ed745c848b0d45e4939a506694bd2b474c57576e9640f3defe2", size = 1459864, upload-time = "2026-10-12T17:05:05.255Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e3/6c/6e502e9d9e8296d621bcb9173ec4eda6498b80757c91974be3d6e89058d2/ast_serialize-0.13.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:771cf5ee8329ee8472dd7a3d8bea7dbc480032ed8ddb4d37d40b57b95ee19ef2", size = 1563855, upload-time = "2026-10-12T17:05:07.017Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/0b/f162a027c5f0c7f3f782803ee58f10ba355e49ba3e7931649635bacf2c07/ast_serialize-0.13.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:a1714ee591a8e19833c0530a89e5a9faa7f62a11fc88f62fc5b722c7425dcc1f", size = 1557563, upload-time = "2026-10-12T17:05:08.709Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/13/0e/71b81259135a68122486ce1522ddb1d8acdd3c11df260a3e7a337d428d90/ast_serialize-0.13.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:220a993dfc8b173e7062f690f9e00f4ebefe56718171bf35dccd73a9f8cea100", size = 1664708, upload-time = "2026-10-12T17:05:10.505Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/dc/9851e6b6c4771fa0d4b10fce536d427f184f85a0fb83ae19633f4c9337b9/ast_serialize-0.13.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:446de6067d853f61b4bde8741762c83d06b57ea81f96dd47977714d9f31837fa", size = 1472153, upload-time = "2026-10-12T17:05:12.575Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b5/5c/73bcf627607855408c500106baf849cd1cb24d2a95e480eda3c5245c908e/ast_serialize-0.13.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f0cc1f94fcd3b67005a32ee3e4c6b27cdc41659f697840d00fbb1e815ec27044", size = 1500997, upload-time = "2026-10-12T17:05:14.15Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/b4/ee6942656e725a1e5e15d8680425356a3c96c2fbfb519f476cd82261e93d/ast_serialize-0.13.0-cp314-cp314t-win32.whl", hash = "sha256:77efef815ecae1195ac9889f616bd518d53b2173e87157043253b864af1c81c5", size = 1122428, upload-time = "2026-10-12T17:05:15.569Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/9b/dacfec064d40c3be7051a95140bb4f343491aba0de06b612aec64a84a8bf/ast_serialize-0.13.0-cp314-cp314t-win_amd64.whl", hash = "sha256:c77e5b62dfbfdfc1b025105f5038114ae988a0e616d48a845e0e57173f3f37c8", size = 1158940, upload-time = "2026-10-12T17:05:17.497Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/75/f65e883e7cd0e804fdda0ee690aeebbf3a28b96eebc1588f99e9a24a9b3e/ast_serialize-0.13.0-cp314-cp314t-win_arm64.whl", hash = "sha256:8e7c6fec7fe03cb8f40c4af81d742aa0cf690cf0b7bded47508a8a392093f414", size = 1133534, upload-time = "2026-10-12T17:05:19.13Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/b4/a791bafbc7b9ecc3e727ab54651667372f3b33a6d1449c28783aeb1e3835/ast_serialize-0.13.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl", hash = "sha256:9eaa20714acf43ef0a0c82850a2ec8097f834648f527c38f1483e2fd9a52cd3e", size = 1236335, upload-time = "2026-10-12T17:05:20.89Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/c9/4a8d26f08d8053d4623fde6c83989b240120718cbea0b59727284fedd311/ast_serialize-0.13.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:3f5d4a7fcc916026010bae2a154e5be2c05040e67ef5c494c66a5cf315c41e30", size = 1217138, upload-time = "2026-10-12T17:05:22.586Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/53/68ef7ef55880e2087dc585f319847bc6670192987aad2e3a79ba4fb700f9/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:807875ed8c5de739c8c55a45944336fcb9b8601d77fcee384a743cd0497211d6", size = 1282493, upload-time = "2026-10-12T17:05:23.929Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/e7/ef9e47cd8b11cc3cfed2b37d64d3166197db2aa03e9707d04af440b58c82/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e611937e6e77448496489627ae2558b6f6143449b1fb33f8a495665212eee58a", size = 1287893, upload-time = "2026-10-12T17:05:25.5Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/58/3426be929c1888ef63e4defcb053e900ecee819c646db55c5a7f60de32ca/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3bb8dd779c0a25478fe1db1a8b06dd4dd5e66077d6d0afe354acadb6d9aee7d0", size = 1533846, upload-time = "2026-10-12T17:05:26.924Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/3d/1eab7d9974578c2d1c514934ed88d174bdd680780857958a72aad5b8c9d3/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6a49f2a01a6df3150e022087cec0bf0ad580fec8f38a17f124d07dbb115106d1", size = 1308580, upload-time = "2026-10-12T17:05:28.466Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/a2/6164467e272527c107dd2209c6c4963c48a1b40c914a560c0ce77027566d/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f30f0e59be30c0c9540e8908b14874bc8d3c1d52a4562a4cfb426b003bd6c28b", size = 1302242, upload-time = "2026-10-12T17:05:29.999Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/bd/9024bdeead34b560f8278fb5ac96098be9a3d65ba74c6d7accd9cab21e0e/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_31_riscv64.whl", hash = "sha256:be6b1a4ee49866c77eb8a50e9cbc845370e6c15230a126d0a71aeab35f31c78c", size = 1299515, upload-time = "2026-10-12T17:05:31.981Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ef/d5/d1f5b9c0990fd0455d054c52bf461baa2b3ec4a93f6d8c633dbf895dd7fe/ast_serialize-0.13.0-cp315-abi3.abi3t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f8da1a31e941adbea886a85fb25efc6f09353d58c665fdbc523a914e3d2e49fe", size = 1355301, upload-time = "2026-10-12T17:05:33.384Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c7/0d/7c05f233ca26f1837a44880c2167de440191bc5d44c0f3c880162952d702/ast_serialize-0.13.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:3a9469e4b93d87e4ee8f5c7e9462f973032793a24b9ae37ffee860220f17586a", size = 1459499, upload-time = "2026-10-12T17:05:34.977Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/06/72/04bf634442d7dc3246d77ac1738be7ee9524869e78097332c497178640a4/ast_serialize-0.13.0-cp315-abi3.abi3t-musllinux_1_2_armv7l.whl", hash = "sha256:192aed400b2b92ebe41da17e856b9b6e17dbcebe0011ce4c6370d4a8a0486233", size = 1564419, upload-time = "2026-10-12T17:05:37.641Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/01/4d/0c693c6b60c2abd9e03450e37c88ec86e2ac57d7734f06c296f336a2f0cb/ast_serialize-0.13.0-cp315-abi3.abi3t-musllinux_1_2_i686.whl", hash = "sha256:ee58f0db40f121ff0820242b286702700bc0ec58a53b6ac43ce4f43714d42e0d", size = 1557221, upload-time = "2026-10-12T17:05:39.108Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/35/f35b73694cf0daf539bfd74ab51502428b403d1ccc42358730b7e93ccd3f/ast_serialize-0.13.0-cp315-abi3.abi3t-musllinux_1_2_ppc64le.whl", hash = "sha256:e241f68cf5060bff9b161b202b60d6d52161ff3777fe56eb6a9a6764fdb7fdd9", size = 1665471, upload-time = "2026-10-12T17:05:40.654Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/fa/fd6ec20c4cc6063ca67671df8ce59ea9e1512deb149289e50f36b7d413a2/ast_serialize-0.13.0-cp315-abi3.abi3t-musllinux_1_2_riscv64.whl", hash = "sha256:bd89da715b857a27c33fad713ea0561912c56f773ebd0fed2760cedd99724dc6", size = 1473045, upload-time = "2026-10-12T17:05:42.243Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/da/53/8fc26dac873859e5b9fc3117cae2ed6b4afb6dc6f9e2d6fb62ee9fcade72/ast_serialize-0.13.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:6cbfa6dae34d5686056ef7c40ce1d3e7e1de48555e3a2fed985aef2d1f869d9a", size = 1501600, upload-time = "2026-10-12T17:05:44.089Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/35/363f4c3428b382d981d64fa871e468ddd9d48c9f0b969babbd462150ec98/ast_serialize-0.13.0-cp315-abi3.abi3t-win32.whl", hash = "sha256:6a406251363eeb5c7b85a405eddd123e627a531bd150dc673a7f5dd087743b5c", size = 1120541, upload-time = "2026-10-12T17:05:45.595Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8b/07/df7ecee097d62214d042216fd2945207a10b681bb933daa64f238765cdb5/ast_serialize-0.13.0-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:cdd8fd066858b57ea2761b3d3989c90ea23913825bbb5453cc684c28bba3fb19", size = 1157906, upload-time = "2026-10-12T17:05:47.326Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/4f/7781e45103d530f9fc963416e0a0beef6a2608a04d18290902ae6b074073/ast_serialize-0.13.0-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:841262622499585f0610a927434db526578553d8dae270b90d4c419a385e46b7", size = 1133990, upload-time = "2026-10-12T17:05:49.17Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/15/7284905fbd1600016f014ac3edc82199cc0f108f31d42221faa6067fe847/ast_serialize-0.13.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:efaab6400de8ee2d0e38695feccb0758acf11c1d0f8bc58a7090c566dd3ae88e", size = 897415, upload-time = "2026-10-12T17:05:50.722Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/d1/2bbd7fe3ea2381410d0efb529e8af64027ea78bb58afad3c7ff641b33934/ast_serialize-0.13.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c51c855d8b7d5403925599acd3c6fc91b321eba3bf46dcc9fe88fd2d6619dac7", size = 1243056, upload-time = "2026-10-12T17:05:52.154Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/b8/a7c8d5ccc0a31589750e476f629bd8681f9bd08421112c71a9c388bf8d7e/ast_serialize-0.13.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:d47c8f0eedf0a41681c10a7c497fef3691c4a6b4af4de6c93a4916bb29712554", size = 1227662, upload-time = "2026-10-12T17:05:53.996Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/54/4d64557c43abbd425b49c8e0c5b27093ee915c27e22bd46ea84c07d94908/ast_serialize-0.13.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7d7376c611055f5ee44e5e13a2620dbc6846f47c583952c1704c8805154c2d2f", size = 1292779, upload-time = "2026-10-12T17:05:55.629Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/6f/93ab5d55402ede8444d01848cf35546c5e7ae24e9bedced6b17f530e2ef5/ast_serialize-0.13.0-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fe2a3c8480e8e5eb41eaa958279b8c530b77b45065423f4ebd5223e118293055", size = 1295902, upload-time = "2026-10-12T17:05:57.191Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f6/5f/7292ef873948a99d26c6648fe92f4911b10c0396216388adfdbfc79a70dc/ast_serialize-0.13.0-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:98edcd24240fa217d903c8f221bc05575baf38a87a207264ee7c800d21eef5a4", size = 1542236, upload-time = "2026-10-12T17:05:59.002Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/bf/4028224723d2038392ca176cfa1f982b15f12f4606d62a7f681550600c80/ast_serialize-0.13.0-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:19b1e8f4c088ce91053df310b444fceeddb39f728ca7d04272c983646e36314b", size = 1319397, upload-time = "2026-10-12T17:06:00.527Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/ef/8d710fb1a5cc0e1985d023bfdee62c77cccaec6be1dee2ed841074a1ee0b/ast_serialize-0.13.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f55668338bcb871e83ee21ba865fb08b7b4b13af9312742f9878c39f9d84ee3", size = 1312759, upload-time = "2026-10-12T17:06:02.096Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/a3/d0cff408a37f253c1ce5fd061389217d4e2b19645fb3a4bd8f9582f5ed56/ast_serialize-0.13.0-cp39-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:a918572608ceb20fba8c2b83560f3d20be90effa4614589477b46d81672f0c3d", size = 1308696, upload-time = "2026-10-12T17:06:03.985Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/41/c5/0a84554655da9c235e4f80a4799c6a3d7ee5d8c1ea16009077a5d0e6f289/ast_serialize-0.13.0-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b004c3bdab0beb45194cd66c0b8feea40d676e461d26296f9c791c8e3e1b7061", size = 1362306, upload-time = "2026-10-12T17:06:05.939Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/12/d85d300fb0a628b8183bd9301df624a819160b9fb7a3db3745c097ea2672/ast_serialize-0.13.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5e88733df5ffff9062b5ff2779cf402e0aa1a61ca3f7f84b577a1af2b7e09676", size = 1470459, upload-time = "2026-10-12T17:06:07.699Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c6/96/5201ebd0eaa758de11e9b4802e094d995c8d7306ce07bf62cc54ba396122/ast_serialize-0.13.0-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:017ddd4f22e727ef93e66df2d53340a6ff809b7e34cc2218f67918ae6239aad0", size = 1572881, upload-time = "2026-10-12T17:06:09.132Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/62/05e0447e112ebaabcfc5cbf86b6f2ea455e3e08b2aebbf1f957546fd6991/ast_serialize-0.13.0-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:4b2ee61692de03009e6a8f372f24fbc2d4b768a2f51ecd426bb84acdfd6da3d1", size = 1568287, upload-time = "2026-10-12T17:06:10.744Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/69/04/eaa3aa0543a747375d2a6e0b58efbf20cf149d9c3014898c63b13aef70da/ast_serialize-0.13.0-cp39-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:dffcffa543c8fcfb1ca941038eeae23e7f97ad8994e4d6f81fbd658cfa8cb440", size = 1674375, upload-time = "2026-10-12T17:06:12.407Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/25/cf850c03635876e6c6e53cf853d18aaed1fecc8b4e9b8f8a9300c269dc90/ast_serialize-0.13.0-cp39-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:3e20e9ca3952196b91798f77ef267c36c7b3470021f950aa361d9be003fb655f", size = 1482386, upload-time = "2026-10-12T17:06:13.944Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/b3/305c5144eade6c39a871f6ab33d6cbb6fbf7367c89bd4860cdbfd3453c71/ast_serialize-0.13.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:359fcebc49f855bd189cf568235dc84eabf521e00d03fce43135cad6484906bc", size = 1512130, upload-time = "2026-10-12T17:06:15.849Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/a8/0b26e4e4b16e3ddc9b77b6b42a29b0d6cf11a9342523ed7f0eaf4f1e1c45/ast_serialize-0.13.0-cp39-abi3-win32.whl", hash = "sha256:684e191dd41b08b0b92692a181380a70cd76e3b6469606a40aae1ca6dab39e7d", size = 1130669, upload-time = "2026-10-12T17:06:17.293Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/09/862169d471439eb11961692f867b09f34f0560977cafa042305705d2d0a4/ast_serialize-0.13.0-cp39-abi3-win_amd64.whl", hash = "sha256:8f672c8e6d3b9ef6e365a5543aee2012247d1d58d948ceddb75b33a6679609ca", size = 1167803, upload-time = "2026-10-12T17:06:18.918Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d6/85/c1c583ec96be412c4119a0ba4354c1e3519464036dd8d2909536661bed6a/ast_serialize-0.13.0-cp39-abi3-win_arm64.whl", hash = "sha256:8aff1682f9fa3e119a1cf8ef47504d38f7019b22b79e0f2b5c2135b9532d14db", size = 1138203, upload-time = "2026-10-12T17:06:20.466Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "colorama"
|
||||
version = "0.4.6"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
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" }
|
||||
wheels = [
|
||||
{ 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" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "coverage"
|
||||
version = "7.16.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/2f/55/d1eaf3e73781174340a00dc1ba2aee8a65f82fadb18e2797b192b6b3925b/coverage-7.16.2.tar.gz", hash = "sha256:ca64d9f1f384f151b9511bec01126072acd2f313439f8ed015a22d8790aab6fa", size = 971999, upload-time = "2026-09-27T12:29:01.118Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/f6/8eb4f220ef24f84fb27d852d4f9bf83e0c73ec1a4a08dd9a87e3f4529739/coverage-7.16.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1a37c6e478cf687e1aa30a593d19c92c02fad9d122b51ab73f51b8dc7a0c0fc9", size = 223993, upload-time = "2026-09-27T12:26:40.164Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/23/d4bbaf0c154e0b0c2b5264890dbf6ef098dcb50ec8f2469be9490d191660/coverage-7.16.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0993d0e90858c03943d3cb152e068a20dd4707924deec84dd2230261baae3b1b", size = 224368, upload-time = "2026-09-27T12:26:41.762Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/48/fc1e88fd571ec5cb38150b7f89f7696ca1bdf9920e01432febb69774cc85/coverage-7.16.2-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bb2fc905bbf4e6b7f40806ea79e31515abf6349594cdf0adf27c4215f0463204", size = 255358, upload-time = "2026-09-27T12:26:43.442Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/56/6785397d07c29c8e70fbb9a07e97d062b43c21ffc5f12385917847f09f63/coverage-7.16.2-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4358b9c8c0125b460407f3017c6cce8156e904b32772c5630d27112f52bdbfe5", size = 257955, upload-time = "2026-09-27T12:26:45.725Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/27/3b/c8cdd07721e5f99abd81cea970d971997f99bf158c0b85f51bd284179c8b/coverage-7.16.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1f15254427c9b33eedac4f198eaf9e356eb4f6214551afb43da6194a2c088ad7", size = 259183, upload-time = "2026-09-27T12:26:47.208Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/11/606b192fe43d32574ec6238549d48de588fdcc18485682a5ec0a8ac357f2/coverage-7.16.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9a75a4704ff640e46170042eec1f984385a121227c505d5a16ad8e495f452541", size = 261325, upload-time = "2026-09-27T12:26:49.084Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/90/eea481f8b0305ceeb33f081a5f47e298391dbd1b589de0c4b3b3aa50d3f2/coverage-7.16.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:14253fc7bb15749b849795a06f5d3b6d8bc3fb8a4b5ddc341faf7a89dce205fc", size = 255531, upload-time = "2026-09-27T12:26:50.509Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/be/dedbf9aea1457b120c27ac10b8fc2a357f37fa2b54c3e7286d42980a0a2a/coverage-7.16.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:921415102a90637fcc2e3f169f61dad7699ecf690e8639fc21b813acbedc0967", size = 257329, upload-time = "2026-09-27T12:26:52.005Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fa/cb/b25c19d5bb2bd0f2e4e27fe8e2ffcae80c7a91ae181c0dc749ed60e9b1a4/coverage-7.16.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cce2bc991293f15cc4084ca116827b5900c5f34e1a54dfe83f10ab5c43162eb7", size = 255294, upload-time = "2026-09-27T12:26:53.634Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5f/a2/892c5c5f4ad44b7b2ca009aee705191f3f268f15052244f2f9e3539b2e35/coverage-7.16.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:e1fa594c887365b69745f25a416806e61085dd07b94c9eae68a6e20730629b23", size = 259444, upload-time = "2026-09-27T12:26:55.243Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/99/a562537deba0a3e370182ae71c149be796c39d8087365f17a09188f27145/coverage-7.16.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:11e597173af1dc33d5f8a7332ada544199269a223af1ee1770ddd5e245ad0fe8", size = 255111, upload-time = "2026-09-27T12:26:56.851Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/20/854ec68641a9b3362ff068a32dfa41637299761617ef253791dbade6fc76/coverage-7.16.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3e7f99698ba3a7d13988bdd984b7ebf13af4dbe2166dc8502eef90d77603b0a4", size = 256882, upload-time = "2026-09-27T12:26:58.41Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/0d/748e4518b0ac0f9ff2687c248a6e5f8c0737306e709372632a2556f84443/coverage-7.16.2-cp313-cp313-win32.whl", hash = "sha256:f80bd9f9633eafc73d0a913ba2645c96ba58bba1befc30590f7c0fbfde59d865", size = 226045, upload-time = "2026-09-27T12:26:59.983Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/fa/6e46edba66a183fe4d99d4bb52c173287e9b8dddabe0888d24cb8210e580/coverage-7.16.2-cp313-cp313-win_amd64.whl", hash = "sha256:8be099e979fc42559328a21828281b4578304191ae46ed4e80a407048a82eee6", size = 226581, upload-time = "2026-09-27T12:27:01.494Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/d9/9ef6845367600b336ff75d000444a0d32497d6972c833141bd39356abf68/coverage-7.16.2-cp313-cp313-win_arm64.whl", hash = "sha256:28ff850182a67d117990fa2ce5ea1032836d8c9630dae867e8bdd3bff4533b79", size = 226409, upload-time = "2026-09-27T12:27:03.116Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/59/4c/577fc0803dab4155dcf808faffbdd7b159256781c0874a8586e17b81b149/coverage-7.16.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4ee546b9e4872ffa194bf07ac87bfa1202ebb824d0795dc1ef22f175545ca90a", size = 224138, upload-time = "2026-09-27T12:27:05.141Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/9e/e3785ba3ecba2bd11efc74bfe2801ca4b78c4480b15a375648d809a59da3/coverage-7.16.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a2fac6895eb299a2e52d7bbb8fb3903502b9da8d3f5309ceb16ec40c646b58ee", size = 224445, upload-time = "2026-09-27T12:27:06.805Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/d0/963ff22d3fd27117da3b8cc442f5bdc91196f783321e1a8ff0ec43476772/coverage-7.16.2-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:57ff3783f99d75a1e81dd56a9737eb5665e6736a5d93258ba596b6dcad8fd05b", size = 256112, upload-time = "2026-09-27T12:27:08.43Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/d4/a306940c81c6ae759e82fff27d20b7fdc6896e422b821f51313cce212b6c/coverage-7.16.2-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:35f37886699cb9abd29958247d718628d5bc6f39e623dff66a09e546c42a7e03", size = 258727, upload-time = "2026-09-27T12:27:09.927Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/a3/d3d99d93b02517087aa05bc0cf2d04d372956b849e5443e059079901429b/coverage-7.16.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0fd7a86fdda7cb6d616d178654bd0ad6bc0f3f33c2e478aa598500a1a9e34eda", size = 259909, upload-time = "2026-09-27T12:27:11.55Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/44/39dd599181726758dd185ae4dc0c0ab3aeabf7ca70e68e145060feeaaa16/coverage-7.16.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ac0f3b379c94acc2f7dce5f5f0b24d44fa1cc6a509717ef83dfee07450c2117c", size = 262481, upload-time = "2026-09-27T12:27:13.17Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/99/e8/91ee43f6ded411460c359d7e1aebde4d6fd8f00a2e5394182d9d212eb23c/coverage-7.16.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7d0732c83746bc24123c581a85d9dd96b70ddb538c9076020aa1a041790361e9", size = 256012, upload-time = "2026-09-27T12:27:14.91Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/8c/e9499ddc33197bd7eabcb1118ca81756fc874457b324e2b479a4804b2ad2/coverage-7.16.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7b451c68218c150f616bc9649783ec8de76a59792c759b43aa0c9c0466a465e4", size = 257898, upload-time = "2026-09-27T12:27:16.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5f/6e/c081cb5991a0afba99f9c4ad6c74a5fce9513a38ddc64e3e6680c6fed9af/coverage-7.16.2-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a56ac4fa5a75c7e182e8f62600cfb4aff43c5ed7356a034f3557659c3bec1d90", size = 255938, upload-time = "2026-09-27T12:27:18.19Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/42/1c3d819e8f9b6eb01c2fe90874d67a8882adb9507e0bbb09361ed131ea89/coverage-7.16.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4cc4f73aa3fabc36e32046d6cd2971405948d8a903636508a3d3b2f9128b3a95", size = 260368, upload-time = "2026-09-27T12:27:19.903Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/4f/d70eac07901fd587b6ab05e659b52afe13959992aa5113bf6cce059cc572/coverage-7.16.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:723dcdab91357159b722935b500ee8abc0a66c8c432e1e9fabf4cc7598952de8", size = 255620, upload-time = "2026-09-27T12:27:21.621Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/34/5e/6d87af88317d3d9a9b18a9ca1bc1673eb516917f296e579d0d4a55cb3490/coverage-7.16.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5397e21a90dde0e9c6896b77ded8f0be26b66f8b22b33aed41f6043ed95d55e6", size = 257521, upload-time = "2026-09-27T12:27:23.358Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/bb/90c2641170d2fa1a6757b3f8450ba2740197317b0ddd749e9604b914e886/coverage-7.16.2-cp314-cp314-win32.whl", hash = "sha256:848893e1d361448c113dc2f0913503522a6f7be231d0e38333d2a22d9698a011", size = 226248, upload-time = "2026-09-27T12:27:25.153Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/08/d8d0478bb02c8eb0ae20a496fc80c40fcf4d3450bd184300d682ba2d28a6/coverage-7.16.2-cp314-cp314-win_amd64.whl", hash = "sha256:5a27b731c171e43dc8b5f32b76a5051dde2ec9b9366c87028f08a7088ebc2c7b", size = 226732, upload-time = "2026-09-27T12:27:26.907Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/32/3f/0001da22155b0a8ce063ec0f7e64ecbe17b373f306e7a74435f6d6accb72/coverage-7.16.2-cp314-cp314-win_arm64.whl", hash = "sha256:1c569a9fd25505f1cd6bea90588818f90373ce90e2632e2cacf19ddbd6e14fdb", size = 226645, upload-time = "2026-09-27T12:27:28.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d7/85/6d8813aff9b8b8586691a9d33c43c5604f7227622574da7cdc3d91a86861/coverage-7.16.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d93db87adb6b1c1b408dce4763314b55d76a9f589e96783a84ac9e7689e48bdf", size = 224871, upload-time = "2026-09-27T12:27:30.32Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/70/444f3a4981ac2cda40fdcf4cc9b56a4e1a33c222abeb33e51ed3e3eb2a6b/coverage-7.16.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:aa62c85046473959c13ba9edca9dc90a77d5c1095b1ba313556314d77fe5b036", size = 225123, upload-time = "2026-09-27T12:27:32.33Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/c1/980681cd7b33eb66ac835044116ef0a92e11fcc7bdd866cc89d10b1130b9/coverage-7.16.2-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:db76506aa5416081f3e8974ae0f7965c58ada0bb0ef7339ac86099588dbb20d3", size = 265049, upload-time = "2026-09-27T12:27:34.085Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/e3/87679875c33bb2191f0f05544a1cc9adcc940fe0c35443a10f2df753dde5/coverage-7.16.2-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a0f2285329dac10ab08f79cb11f5692c497018e6c7c511f95e6fd63a70b8f831", size = 267717, upload-time = "2026-09-27T12:27:36.025Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/64/5d372776d6eb523d4e93bafba2253f96984e3b18261c4cc56a50863c6d0d/coverage-7.16.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:382d3346d56b0eec1b793d53a4c88799c8053f516aa3a8d7c44315696954bacf", size = 270047, upload-time = "2026-09-27T12:27:37.96Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/c1/44082ff0cbf9f97d0043f57970a71204097ec7ba606361a9fd2065393669/coverage-7.16.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:648352b94507179d82637292e7ae8802508d95f78e2f00a705a50b6c48011681", size = 271360, upload-time = "2026-09-27T12:27:39.766Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/17/9a215efe25b5e0ecc87c89dbe525c4a87d14d87c8c0c7316ef140a5f6f3e/coverage-7.16.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fb2bde05838fffae1a1bf75e5d411a6cac3e4e9bb97e6640fed8cd47888b33f0", size = 264736, upload-time = "2026-09-27T12:27:42.072Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/da/7f0a31af8e448107d4d32844bd684757f51ea907bc0c68c8fd537b2123ff/coverage-7.16.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6a75180829efb8ae62b4aded25be6ddca1c888d138d2d82e21d93bfbd88f41cb", size = 267600, upload-time = "2026-09-27T12:27:43.85Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dd/a4/3bfecbd3366b775bacdcb3330394d356cf384b5d8f5b2146ac4b14b252b5/coverage-7.16.2-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:99704f73721e23859112072d522076e11c31744fc96b5652e5dd2018aa4359f7", size = 264767, upload-time = "2026-09-27T12:27:45.768Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/3f/5d62163732d87e4a0c4710a0eab30f0fd6a2d480112abe2029f014fe8c9d/coverage-7.16.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:29309ccc86b7f33df7db12813c299f215bbbc470ed6292d0bedd63ffae1ebf64", size = 269026, upload-time = "2026-09-27T12:27:47.787Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/4d/8e4579f225426535085a9be371cc75e3b026d058d679b80affbdfb4c3ef0/coverage-7.16.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:30c1b65d529e46569899fadca59e4a87c1faf2886923f1307ba61e654d4f3c20", size = 264147, upload-time = "2026-09-27T12:27:49.681Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/36/ef1f77e2c3f7bb03c2b13b9a2006f88700fdd75535ef158d70049f425c1c/coverage-7.16.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dcf4bc2aab4e16b1c4c0c2005918f23a7dd5d7821ddae82caed9e3342dc2fcce", size = 266376, upload-time = "2026-09-27T12:27:51.551Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/79/0cb2bf4428830dec971c718c2c841a039c084415c99e67281f5a72841aab/coverage-7.16.2-cp314-cp314t-win32.whl", hash = "sha256:a9cd3de0a5bfe7b0e21ee10e1a14e3d61bf52efc88217ab1d95d6ace6970bd46", size = 226585, upload-time = "2026-09-27T12:27:53.945Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/f9/da17121c16667fd84998e972200ae226a41540f6ea4795776c6d99e8976f/coverage-7.16.2-cp314-cp314t-win_amd64.whl", hash = "sha256:611a44e5229a59d7483ce830160e1a0e85f700562c7a5651c7c63fb8f4eb528c", size = 227378, upload-time = "2026-09-27T12:27:55.778Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/89/01179c62d1b7e6e33bd5001566b02d7f778cf33d3ec1e81e94ca170c517f/coverage-7.16.2-cp314-cp314t-win_arm64.whl", hash = "sha256:22957cef43ce038641de78ba995de7568d2d6a37c6ddbf7fa0fd7d1ae2344d91", size = 227064, upload-time = "2026-09-27T12:27:57.496Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/57/52935003c3f627ba6e5203d7179aad32448c10899663a30336aba8e81a2c/coverage-7.16.2-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:414c26dfdb96aac2d570a54e03008f001e32eb2d413705365503648c6bd361d8", size = 224140, upload-time = "2026-09-27T12:27:59.343Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/38/df472520f3e626524d7e2fc9d6da0afe7895a2f1489d36b48af8ca40bb41/coverage-7.16.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:00d3eb96e9988c45f50cccd1f1496571ac5c1f91386ac02c4d55516eeda19a24", size = 224449, upload-time = "2026-09-27T12:28:01.299Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/aa/3be084d5b82e63ccdad4ed751e4acbae294673573e30481d29f8b7402eec/coverage-7.16.2-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4dbbd1155ca46e6e0b6b89d204428c56ef6a459af21333f365d135a2820e5a09", size = 256060, upload-time = "2026-09-27T12:28:03.185Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/de/29/48fca82a7ebf7ff7b2e35019cc9537e7f65e4d2aa1215cc5a8792c989251/coverage-7.16.2-cp315-cp315-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8fc15cc8d0d06e873c00ef18e1372d605f9aaf3de27d8c24e50782e75bc8b843", size = 259106, upload-time = "2026-09-27T12:28:05.15Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/06/3d/b2d5986f2dd53fe201aa1be2e4ab204fa1aed5101e67c0dbbb419b850aee/coverage-7.16.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c6afdd69218202bc1758c9a14b86b8cf1084f37ed2ca143e567a103772b16d1", size = 260674, upload-time = "2026-09-27T12:28:06.868Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/7e/b50160be3506ead12e6480d14279af7f0f17627694300a2d1fd2c42d2ff5/coverage-7.16.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:aba5c63b7afdc749cc9eae943d5b868cba2b261a176378fa1c5a30bc8bc89982", size = 263139, upload-time = "2026-09-27T12:28:08.771Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/5e/7c805ac9a32606de1399bd7e9bd375aa2f973dc61b12680d9e6403c2e891/coverage-7.16.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9174f0af24e5eff248b9dbfe76ec5275a3d19d37edbc2810543f12cf97347a34", size = 256591, upload-time = "2026-09-27T12:28:10.842Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/9e/76f1ed129a2daf658a3ea17122824cf2e3b91fea0460d8d3664fc5a61018/coverage-7.16.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:80e9fdb4c3d926b6ba721d4bf7435bdb869c3527ae7803290361d0ab73db13b6", size = 258708, upload-time = "2026-09-27T12:28:12.962Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5a/b7/8d62e75f48b527619239a65294f842d4b7fd02a0839d43ae1de80184e2df/coverage-7.16.2-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:7b3bce4a0d05401d70b7d0d5ca783e686bc9d30e81dbd7d980d532609bf809e4", size = 256562, upload-time = "2026-09-27T12:28:14.934Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/8d/0a15f95c3afb78e947c52644786ba4bc9de259905687dd720d5e6fae2e76/coverage-7.16.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:44f21e407b278efdfc1ee5e481e00518bd1d500310a30a5fbf2bcbedfef4aaf0", size = 261077, upload-time = "2026-09-27T12:28:17.215Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/25/00/88389987305a47d732866c07c8a500000ab574df9505e3114ac69c8d027f/coverage-7.16.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:59c3926585e1cd1f2190f4b2ac9014de1bbeaf0d5d0587b0dc6b0aa90d17896a", size = 256034, upload-time = "2026-09-27T12:28:19.08Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/02/34d079d4952ad461bde037d353f9a6e037a7edc45fe0f9ee8781ff73f028/coverage-7.16.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:066429634299e14dd2d511e1e85f8f9cecc500781f6b41907c0dd6f1baea7e63", size = 258034, upload-time = "2026-09-27T12:28:21.242Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f6/d8/3e59a62879285b464ec1b10fd824fbc1af9ce66e842cd39974f80a0becc4/coverage-7.16.2-cp315-cp315-win32.whl", hash = "sha256:893ea9cf86cb8d2546812ac93d973aaf2ee1fb45110a873b014214fd23e3725e", size = 226252, upload-time = "2026-09-27T12:28:23.102Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/e1/128026e1b2836e9ad6b219207ba9edf1c5e0088a7869e23088aee7fbbe7a/coverage-7.16.2-cp315-cp315-win_amd64.whl", hash = "sha256:01c6908bc613b420c26c818fe948e1b97dfd041a53c98b01c63bd8321f5c9aae", size = 226728, upload-time = "2026-09-27T12:28:25.21Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/f4/c9fa8e7cf525ca7748ac52b0ee89331d13fe09808e45c679830708782e90/coverage-7.16.2-cp315-cp315-win_arm64.whl", hash = "sha256:967d72c835d7a8cf0af99ec813a2d06e3db6df706402f1fe85b31b437645f495", size = 226648, upload-time = "2026-09-27T12:28:27.136Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/13/e96b045447a856666f36f9c653e2a80bdaa732aaaf72412b19aa2c26a473/coverage-7.16.2-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:98d9c97f51b334b0adce7b964442a9af33c1a00c6ac856984cc5dc8d18f81c75", size = 224858, upload-time = "2026-09-27T12:28:29.169Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/90/087f6ad1bd3df059632ca3407a4e6552ed1053ee35354de0a771acf35423/coverage-7.16.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3e861f1071dcc2fec1e88bef0920f6b1eaa66a143555b4f8ab79ba2b0f30ef55", size = 225139, upload-time = "2026-09-27T12:28:31.131Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/8e/285dcef0184358044e7cbcd810a1bdc9566bc620f54702d605477155df4a/coverage-7.16.2-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:fb9d92ecfe2d5b494367c67f7446f8b75b68d8d0c8cf3bc3e6997478be25d9e2", size = 265090, upload-time = "2026-09-27T12:28:33.04Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/06/b2/cc83f3a6e5789a4e89059c69555bc641c2efcde568405a1c06fc702951ab/coverage-7.16.2-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:eb57acff4a74246ae513c142d4b36e18c389c3aed8661914a53f7cd0071031b2", size = 268254, upload-time = "2026-09-27T12:28:35.135Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/41/f548c19530f5d66ac6e3c92bbcbc49da7261de3a458b9f3e54a3efb1a0b2/coverage-7.16.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:444889f7f66b74e4455c0a97e0e166dd41177f1dca8c0239a47cff25e05ba7e1", size = 270695, upload-time = "2026-09-27T12:28:36.959Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/61/4dc27cf82ef96434d2874110ad0cc10ea4621025705dc5049862bd3bd181/coverage-7.16.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a740ea6f083c6db7b926534d159508f80ba275ab35e722522de0d18d0f56e55f", size = 271853, upload-time = "2026-09-27T12:28:38.821Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/29/bf8072b1b8bd5f2de8b21460a404460b1a2b97e80a9464c78ec0271f6199/coverage-7.16.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8e209591f7c41ae4a9171335cf6156afda0b21de73b02f73f5aa95b2d5fbb08d", size = 265644, upload-time = "2026-09-27T12:28:40.815Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/2f/0aecb8721be5cdeb8afd9d6d9f6b463f074e4d8d37f00f4c42442522709f/coverage-7.16.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:396bb16e04ce04efbb3df91456ae4e3da918e69ecdf67fb711b0a0fdf35ccce0", size = 268530, upload-time = "2026-09-27T12:28:42.725Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/0b/92b4b7628268ee711249958e68fc0328779bd3d9a7ab4715379465aedb84/coverage-7.16.2-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9cdf19874e0d247f32f03609200370343c3c7aa260b191d8c2bb251d36198283", size = 265154, upload-time = "2026-09-27T12:28:44.684Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/d9/41c95c1ab29b3dcd357cd1227181d1c98185632aca41ce670ce671b23a43/coverage-7.16.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:fd3d72233eb8b48acc94fa57d44e2d32ce8e7abed02882ccb6d855ccc4ed33ec", size = 269799, upload-time = "2026-09-27T12:28:46.672Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/07/ebeb259aa5362b033a137b86d7274ff4b109d59be8cc9913889b783bf75a/coverage-7.16.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:bb4ffe96aa663cee727659db5a2afeb38c95f8677b747d447b90d6d4874ea2c5", size = 265196, upload-time = "2026-09-27T12:28:48.996Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/18/8437620f90d023680a072eee02f968055f3658bbfb7d386d0ea34cfb7f30/coverage-7.16.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dba2edfb054f6d4a08df9d1637c39a5aa3865bca6617c13c86be21e45658a59c", size = 267266, upload-time = "2026-09-27T12:28:51.361Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/6c/f08e8ee4293e6434035424180bef4d45e028e8ecc006c61bf9453e74405e/coverage-7.16.2-cp315-cp315t-win32.whl", hash = "sha256:251aed777c47c77aba047096d4542889db089227655711dfc2b9c54ef0e15e35", size = 226583, upload-time = "2026-09-27T12:28:53.33Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/fd/3f939c2847f4a72c20cff8b1ac33da78ea91a2d38d9b43336e60db719103/coverage-7.16.2-cp315-cp315t-win_amd64.whl", hash = "sha256:2aca0bdfa9e91621d5b09d815357bf63def4fc0e9cb66da67bf2cf93f3b1a6f5", size = 227374, upload-time = "2026-09-27T12:28:55.158Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5a/35/b98cdc354c952402132e675a87f2cc3227fb68f959c84aaa491fbe15933d/coverage-7.16.2-cp315-cp315t-win_arm64.whl", hash = "sha256:b88841e654f09732804809e435b3e005a929ffd9998b872b7b213957b8759cb8", size = 227064, upload-time = "2026-09-27T12:28:57.075Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3f/0c/7a64e1ac90541a8edf50daef0914848011fb057a5bf55284a4811e21939a/coverage-7.16.2-py3-none-any.whl", hash = "sha256:11d28e9123a9156cb405d8d27b44256c9a58fb5decc2073a8f17862057e3aa0f", size = 215754, upload-time = "2026-09-27T12:28:59.075Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "envbao"
|
||||
source = { editable = "." }
|
||||
|
||||
[package.dev-dependencies]
|
||||
dev = [
|
||||
{ name = "mypy" },
|
||||
{ name = "pyinstaller" },
|
||||
{ name = "pytest" },
|
||||
{ name = "pytest-cov" },
|
||||
{ name = "ruff" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [
|
||||
{ name = "mypy", specifier = ">=1.11" },
|
||||
{ name = "pyinstaller", specifier = ">=6.10" },
|
||||
{ name = "pytest", specifier = ">=8" },
|
||||
{ name = "pytest-cov", specifier = ">=5" },
|
||||
{ name = "ruff", specifier = ">=0.6" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "iniconfig"
|
||||
version = "2.3.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "librt"
|
||||
version = "0.16.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/04/f5/9dc696772d241814bacac7880bac32f2930b5a6ebc1f85317b83161a011c/librt-0.16.0.tar.gz", hash = "sha256:ac38d6d8d66bf3d744148dbbc0b8e193e195a51e364ed55e224631f5721891fc", size = 219839, upload-time = "2026-09-29T00:55:32.891Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/46/cd/ae5e0e9dba45d1399aa04a5395bcc0bead40d9fa06dc903634a7b4d7473d/librt-0.16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c5e6144e68b577f157519f2ba88ca20e3ed61c29b00e5cdfa76cd2d45acf059a", size = 151036, upload-time = "2026-09-29T00:53:06.284Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/41/5a/48a16e323c5f9447a94cce7b59babf60fa04e62c3365ecf060c77ed8b320/librt-0.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:33f41443a1f4e1f099331b3d8120e409fbff84b9760bc1cc9ea496f37ddaa5cc", size = 155211, upload-time = "2026-09-29T00:53:07.72Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3f/29/0f59299eb4251a409b2e690ad4b7d9f8a676db829d7817ec961f32b44f7e/librt-0.16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7e510b7770bee609617a3374a96548eb114cae048023e3f049ee449e7ff2db32", size = 502587, upload-time = "2026-09-29T00:53:09.191Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/de/ba/d6fb4ef8d1537c396079d72289f16be7cd35a366e5065c51253fea2760b6/librt-0.16.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:efc49c462d4516b8a58b00b490078fa64689fd1fe66970cc190131d7afb8027e", size = 496146, upload-time = "2026-09-29T00:53:11.016Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/fc/8c50dd4d7cc97c0ee8f252c8a3104980f234391cf1519b554e8b9de08b60/librt-0.16.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:92caf82ebef5e12d21c72242b70d1e92536f1711cf2a727a4c276de4b4469087", size = 513336, upload-time = "2026-09-29T00:53:12.655Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/59/16c409c56f708eda2db9a0553662845d45e3871c77d70a240dae3f3bdc56/librt-0.16.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:17bac7f7a16b328fff77e440287693eb017abde913595b5827ebccbc21ecd8a6", size = 531689, upload-time = "2026-09-29T00:53:14.39Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/88/82/d34772a6c29d1446dcca6e64d74062efd508523ab351aa16625a4689d5cc/librt-0.16.0-cp313-cp313-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5b976054553670829985ed767feb78fb6bcede0175327c4844dd5c281c1be659", size = 524537, upload-time = "2026-09-29T00:53:16.064Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/8f/24c5631313746131ccee53bc91fdc8374f9cf25e0082a1fee9c93bb98acc/librt-0.16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0058f9d68721094105917254c72ac0569117bb7b13b9769cf45d26d89f9d21cd", size = 543231, upload-time = "2026-09-29T00:53:17.939Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/cb/5f8e0d41dbd8b499c2265e939c31acc9ba59845565bf99539ad1c06aebcf/librt-0.16.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:30b7beaf3f4487b7d8adef1f158b49067cb4d5a19fa7a3bf31a4e7a820e435c5", size = 546499, upload-time = "2026-09-29T00:53:19.666Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/61/063052de441d1385f59cea4223f184bf9e5d125de1ae3239b490aa1e486e/librt-0.16.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:468df902df016a06eb0e40b0747dc8d14e47d7a38b18b63b1fb167d85cb94d63", size = 555261, upload-time = "2026-09-29T00:53:21.292Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/11/a2ada0529372268d6401afa9d457a095b68cd7753532b6f7f33049a19b43/librt-0.16.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:aea7b1f2b125dad5de85f049136651bff256c883c65e6b9209b2da0a1ac3cdef", size = 536029, upload-time = "2026-09-29T00:53:23.07Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/9d/5bb6d38853382986dca702fc7e06c8256d30f5fa0676d882773b744610dc/librt-0.16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a8afb6557920860b7a3a596eb804cf37e09e7cf8a803db2478c202acc72d8c2e", size = 573748, upload-time = "2026-09-29T00:53:24.696Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/99/f6/0025cde35ff7f607684dc775a2b2d732cce2561cec050a6ee1fb2e1fc6fe/librt-0.16.0-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:77c7a2b4fe2c1369e0d5aa1cade26740a7b14be32fbc9a5535d617d20065c39d", size = 79861, upload-time = "2026-09-29T00:53:26.089Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/93/303b8592909bd583f83f02818ffbea3f7647ca1e22b1cd5465d04b8145fe/librt-0.16.0-cp313-cp313-win32.whl", hash = "sha256:02d89c813d5ff74b17df72d3a34819d132cd168e56b81bf755b809bd9e46b8c4", size = 106236, upload-time = "2026-09-29T00:53:27.43Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cf/24/80bbb463c60ed18e29cb26aba386ddb76609580e4e7160710e550587018c/librt-0.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:14ed6ebe3e4f85f326d7920011ad30ff49ed9334e62cf88caef9ba973d9e3a92", size = 126180, upload-time = "2026-09-29T00:53:28.7Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/80/b1a6fbdd7da825cdd55c71aa81eb6cfa82c513c360774152eacb50b4a771/librt-0.16.0-cp313-cp313-win_arm64.whl", hash = "sha256:83d4041a3d9b2fd053a8a4e1f22878b3e5833e2712956382d5c048d791454e91", size = 116557, upload-time = "2026-09-29T00:53:30.012Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/93/9e0cf7da129a93c3dc7f45bc3cd4a660f2aaa995aa8a6f95c2583ef41239/librt-0.16.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:931a0bb0fcac88f263e269e46eb30ba8e21402cd3c62ca40cb97034c0693fab1", size = 149844, upload-time = "2026-09-29T00:53:31.391Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8f/26/8a90d2a8f2b2e471bb486b7aec117b8ae622715ed6c39853aec48ea20073/librt-0.16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1bc17e54e5305f8d40b7ca203671ff5a9e59c1d0f8ea0f625dcca53a3984de11", size = 154111, upload-time = "2026-09-29T00:53:32.718Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/35/ce/67abb46258da4d3e42ff5b141db6f38c59357bef84c7979f183b22f924f1/librt-0.16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:877698bf6bca5721d8be345f2fe09778e40ecadea8b58c73075f2b1a53666bf2", size = 494234, upload-time = "2026-09-29T00:53:34.466Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/12/f9/ea7162414a16f8f1bbd3b493ad6d22b926c5471916e078350bdbca8c4e5f/librt-0.16.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:5981c011b306781ce561e18e14230a14524a3d8109b97553666c942c18f31a96", size = 491173, upload-time = "2026-09-29T00:53:36.124Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/09/9b3e869060dd33f9989b80ba4fea306f6db8cecefcdfe6d7346ef0603f65/librt-0.16.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:afced3dfc17cd805ecf7a3d77996a71cf5f2c75aa66eb0c21a9930f4fc992f86", size = 505547, upload-time = "2026-09-29T00:53:37.686Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/07/79007d2165f649ea93e08c0962d1d62c70af9cde77965255095bf9d96f9a/librt-0.16.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ca8052401c55d7511dda6760719fda7618067e83535d7d0010096d216c34b667", size = 523057, upload-time = "2026-09-29T00:53:39.301Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/61/0c/8fbaff66d0ba376d8864653f5acce1569bae27e89648671f26f7eca67ab8/librt-0.16.0-cp314-cp314-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1e511762a074005bb0aa569166779834e75e438370226930d0ce1866d4b6a33b", size = 515158, upload-time = "2026-09-29T00:53:41.012Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/2e/23ff0dece76f07a4124413a57682efa0bbeb5765ac0122bc0955513f82ca/librt-0.16.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f1e8591bd8a5a628cd7f07954c6a1592359a878bf032957a8e9057a41d644311", size = 534183, upload-time = "2026-09-29T00:53:42.451Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/c4/e11dea21d9a29486eba78887380374189d472734fa32cc50cb37ca44d3d0/librt-0.16.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a4aaefb4ba6c07e1aeebb2795c8958148f1d6f9af3b555b53d23d766edb6d67a", size = 540663, upload-time = "2026-09-29T00:53:44.272Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/75/e873ae158a8b7f5359be33e7fd6c1fbe02d9a78a3e89a77de6b0e837f476/librt-0.16.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:d92db7a0f6aee44f1baee94750457e8d2d1c6ccea41842de6268d34e8dc7eddd", size = 545908, upload-time = "2026-09-29T00:53:45.812Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ba/36/8939d3f6a93e11bd9592e6fe28d2b44f1c2dc4bed6e22e72359a91e18ffb/librt-0.16.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:378dfaffb38e59c24a87cde5713cd865d51ff7383fa12947f3907f306ea1ca55", size = 523302, upload-time = "2026-09-29T00:53:47.596Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/14/35309f44a077f0f42ade0e2e7cd88c0cea760c661af205c01ea90d3c0e1f/librt-0.16.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3e0c39bdc85370422e8b637be76eb1fd07d30967551b03e62267dd156f553152", size = 565911, upload-time = "2026-09-29T00:53:49.278Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/0c/df6255b94967f3159ebc46f08d8e783c12da6ee269ddb74b2efed63c640c/librt-0.16.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:1b384b90ab79a7bc30b566895809a636e0666f21f3cf12b54823d025b7e83839", size = 79119, upload-time = "2026-09-29T00:53:50.938Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/44/d30d5a5461378c9d33f36736c6791c3b4c4ba4b1ffe0da7350aedcb2c9a0/librt-0.16.0-cp314-cp314-win32.whl", hash = "sha256:52327da75a94012e7f932f913d20d3876bed3c102be00e6c3e8600ff7bdd58a7", size = 100140, upload-time = "2026-09-29T00:53:52.205Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/98/769712f356a1e897df3581bb0c3100375d054a000de26099360ea65b5111/librt-0.16.0-cp314-cp314-win_amd64.whl", hash = "sha256:3f0b8114c44b2ac06ff5dacd08e07e8e807ff4f46083f2a1602685122559be41", size = 120464, upload-time = "2026-09-29T00:53:53.495Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/d3/ae2abccc8bdc8b063c1613a77686e17b74e9d3d60cfe6f12c63fa2821b9f/librt-0.16.0-cp314-cp314-win_arm64.whl", hash = "sha256:8caf96a4ef8fb27d0ac0d1ad8337d26a240acd4a02fe4345d0a8f264753e8f99", size = 110889, upload-time = "2026-09-29T00:53:54.817Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/26/0737d4be058dd6376eade7dd8b380d4b869b6394cee929393a5a431c45bb/librt-0.16.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:953107e2f68d0f3512c48f898b0dbf0ce5cc52bba0f318d847c985dc555ee4cc", size = 159838, upload-time = "2026-09-29T00:53:56.22Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/01/96/9bc96531d7c620e9949af904470f02e3fa8f35129ab8e8f281c51eaa3788/librt-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ad37d5b9abd49c9a655dcda7ea52a8a752884062ef1ee71ae17c2f2a0f81fe6a", size = 162018, upload-time = "2026-09-29T00:53:57.532Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0e/fa/b0289dcb186eb3f97221ba00da5f4bd3ba7fa5e99752d48aa8d336615334/librt-0.16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2c4aa329c17bd1aaea4f6e89335d8ccd494b3a5830b6654462273e50e11023f0", size = 703983, upload-time = "2026-09-29T00:53:59.024Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/ab/05ebbbde7530fc5eeb58fbd1581522a9f64f132fa703c4c595eed6e14760/librt-0.16.0-cp314-cp314t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:0ead24d2562a49473dddd9efef8581f020007eb0054389c3ee3ffad38b1ca4c9", size = 683847, upload-time = "2026-09-29T00:54:00.671Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/75/f52aeecd4dbadbddf80725ba7de126d8bd5d0eb66247eae17a81ed90dd4d/librt-0.16.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02118f56a9c36ddd07dfd9b919d9ecc117ba20a90987d56aa4c429fa34509188", size = 698045, upload-time = "2026-09-29T00:54:02.247Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e6/55/fa277a835cd6eb42380591ceb85f48c5b4d2b2d7e2cb9869e1e17d24d237/librt-0.16.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4e29522c62e28595ff7e324c6834ade51127707f0e255b18d1c1cf03d39c1048", size = 724640, upload-time = "2026-09-29T00:54:04.078Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/25/e4/2cf64354f3fde8ebd591b3b48f96510bee24ac5f7d1e567adbbe210abdbd/librt-0.16.0-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3ff4b2367926b69c6215635902cccb04048e73094e9862900d27cb2c6bbff143", size = 731748, upload-time = "2026-09-29T00:54:05.741Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/c9/c180af3e94e01aa529fa93d7733fec2abc47f222345400cf21d5481d5f8a/librt-0.16.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c6f1b27bf1632a7e016af9f145f82be95e1edd7721a646505c21059257cb5a04", size = 754960, upload-time = "2026-09-29T00:54:07.38Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/d6/01073aa78c58f356b10d9c57b3fe9abb143df338142bcd316df417b89db0/librt-0.16.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:5696d7f52e7b37217cb3a8f92c744fe835942602fdd4c1a8bc4741d3bfdce15e", size = 747000, upload-time = "2026-09-29T00:54:09.06Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/d8/1de3783908658d697a8cfc00582f61299ffba7796d7260c112e4700b1109/librt-0.16.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:6072e92dd876ff6ceeb6cf371e35e51f479349837391341f479b08df4564242b", size = 749569, upload-time = "2026-09-29T00:54:10.702Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b7/32/e817f66c96d6caa8bb8435ff93c4c220624d59efc506be59ab98fcd01d0c/librt-0.16.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:39ca4f2f2fe05de8e63493da592d84311adabe5bef52b193851981da9816b302", size = 729483, upload-time = "2026-09-29T00:54:12.25Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/c9/23992ccd2b9d22798fdd0f61353183a47414e651da782ad83eb680f50833/librt-0.16.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9807485a908f00355820f18e91e045ffdcdc5adb68aaec40a1e2b88c5f7bba1", size = 776584, upload-time = "2026-09-29T00:54:13.837Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/3b/e8af957f08e6e2e8e566b099e43d2748418aa565df6ee1d9d3331209fdfe/librt-0.16.0-cp314-cp314t-win32.whl", hash = "sha256:94be5cb7bca4df6201f4183e9e4fa2086c655283d20b38cd84500a69057575a7", size = 104402, upload-time = "2026-09-29T00:54:15.568Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/1c/946e6443d7cd32347a086043395e421e52fd603c9163d2ec970ceab8eed6/librt-0.16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d46ca272b251d033dd4527b0dec5f261a28a52bd5fa0f99c117b0a1f8588cc2d", size = 126227, upload-time = "2026-09-29T00:54:17.165Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/a3/bc4f9959d3c62bcbf9e5fd3470a8bbd8bf33224ed4c25d7fba173201b8ac/librt-0.16.0-cp314-cp314t-win_arm64.whl", hash = "sha256:b9d6d4b14e92d876f8026b54c20c445f36425214c1081dc76f74e40db386b82b", size = 116493, upload-time = "2026-09-29T00:54:18.567Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b6/4b/10fdb42dfab4c1533e1570e686b18e86ff4328b406361b39fb3016667638/librt-0.16.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:6fe436af2eaf630474f491af5d032cbe45f93fcff5c3b9fe4ab194a7255b20ff", size = 149829, upload-time = "2026-09-29T00:54:19.933Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/30/a90ca13f1d3d91af1680000a4038536907018fbd51764767287a05d28b8b/librt-0.16.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:8ff5d26c529336be9bd7ae04483235d77778ee7d6444a95353102b542601ce81", size = 154522, upload-time = "2026-09-29T00:54:21.306Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5c/dd/bcf364eacfa070bb1fc88d503111ae7177914197ba1fa717c748926e7930/librt-0.16.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:909d8e3c1faee44cb762b1c519ff8613dcc5ceae5c99987a00917b5a31fd1d6a", size = 497593, upload-time = "2026-09-29T00:54:22.798Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/18/c1/2c4e81e347bdabfe8346bfc6dc37ae5e154d61c88e30848ec0606025a5e0/librt-0.16.0-cp315-cp315-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:6d4a64283ee61824b5790de882bc68e2d9d7a5143537cb7a966f7354f71646d4", size = 480459, upload-time = "2026-09-29T00:54:24.364Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/d7/fef2a3cb8400701be496f6e459876f650b3451f407e30cb243de571ae615/librt-0.16.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5810ba811297fdf37a1531a57667cb8ace0842013ca8606bf9eb7c24cf4be154", size = 507814, upload-time = "2026-09-29T00:54:25.997Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e1/6f/53762927a32e9dc9eb1d1c1f3528da281290c86d96929a8af652f671266e/librt-0.16.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e56aaf8c167548dc8e5d6f3bd0f48dcdd299a23c73be3f744aab79d99e9c7f5d", size = 525114, upload-time = "2026-09-29T00:54:27.747Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/67/0b9d031f303c4e8c691a9a8ef9d272f13b530c11cc563b819df621b6a348/librt-0.16.0-cp315-cp315-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8f36c58e33b304b525c6c9c5076399c6ebf1109e17b9051a05a407b091b9215b", size = 520465, upload-time = "2026-09-29T00:54:29.331Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/d5/2056a3a85864e882eb17a203a10ddb26fa748bc9718ec67e79059ab46cae/librt-0.16.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:242e00b3d4fa37c3d3c1ca5f5c9adb7d909ddb1eac9c41f2787320d00caa0af2", size = 537257, upload-time = "2026-09-29T00:54:30.915Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/57/e0d79790c163cbc0909e209a6f62e30bb713b647f905a176cdc64848fd4d/librt-0.16.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:0253721561787b8df8443eb347b7a6461015354e5bdd37ee38a41fef220d2bb0", size = 527442, upload-time = "2026-09-29T00:54:32.478Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/50/1c0c95aba7af51f4752ea34fbf2eb79b36e7cae3a72536248e8c735de735/librt-0.16.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:3e483a8d69ede8067db70c0e83007423b6925de6fd53afed01d66160f2e9398c", size = 548139, upload-time = "2026-09-29T00:54:34.183Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/91/a8a43dd5138d4f55f88846b8f0c85454a4fad69952cebfcff9948f831290/librt-0.16.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:69ba927445cfaaffb4081003ef5224c55a5c2ab67ef956f416ef744916e44121", size = 529708, upload-time = "2026-09-29T00:54:35.761Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/41/d5226881ab2b7c20d9d587b37bdd4a0ec8775a96d00ca87ac9f385587db4/librt-0.16.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:d6a365f2ab45a984d0e00eee0dd17f599ceab8cadab6ea07b6111c8132fc0e42", size = 567781, upload-time = "2026-09-29T00:54:37.409Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/bf/2345ba57a626e8c78c4ddcc724636a8df5a593fe46c1ee76bbf477e32b0d/librt-0.16.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:f01f3805f2dae4781c0c34b440e31740d082950bdaf89a6f601ad589a28af57a", size = 79177, upload-time = "2026-09-29T00:54:38.792Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/40/99e77936cc9207f629b077bf7cbc5e2f0827cddd7c29792f04ef881bd2c3/librt-0.16.0-cp315-cp315-win32.whl", hash = "sha256:b0e3e721c75d2e79a76d4422c79d7ba705fe1bbafec907037fe7a657a480a0e3", size = 100127, upload-time = "2026-09-29T00:54:40.251Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/1e/801fe26bc622061b9dfd010e166d94142cb774b733217e6d98d1c0cf2638/librt-0.16.0-cp315-cp315-win_amd64.whl", hash = "sha256:bc02954b1295de798bbdb0b4e2d8a28c2117de8b5c73dcbeb27dc32572dfb971", size = 120480, upload-time = "2026-09-29T00:54:41.722Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/a9/d533983055bd36e112627384c2c038845d1df882540b8bcefb566475640b/librt-0.16.0-cp315-cp315-win_arm64.whl", hash = "sha256:c5db585d43449a5f54303d4b2774e45e1babd975cfe1630a3d708c0b80c3e560", size = 110915, upload-time = "2026-09-29T00:54:43.052Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/55/fe/d62238fa9c653b0e0613290349467cb65711b5800e8e474f45e942a0ad95/librt-0.16.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f06c689cb14afd9b612727553a5ec5a40febf113ca41c4413a2b0b334285884b", size = 159714, upload-time = "2026-09-29T00:54:44.497Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/ac/f31efe7818700be72ba4f9af8a80fa67c39808c8d26dacc55dc1f6f35172/librt-0.16.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:13b4e8aba90b0b1c82474e9844aa9ffe7ad3faa484350e1da64cb8188d903134", size = 162086, upload-time = "2026-09-29T00:54:45.968Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/16/4d7487bf86a9d7e8e18f37ba5538789233ea693637379b75701bd35ec9de/librt-0.16.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5a269c46ae327d8e6f8c1f85f7516cb52c0fa48127565a1105a4f4a05ff2a0b4", size = 712727, upload-time = "2026-09-29T00:54:47.486Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/74/50cd550ccc1a517b9ed62347625c01ddf8c4afad66490312677c011458f6/librt-0.16.0-cp315-cp315t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:a33e0dae1f8592146a4764d54ce842b278732d21a84e17c3bbe6b1bc158a2248", size = 681106, upload-time = "2026-09-29T00:54:49.126Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/5d/7293f712975ee6fdd2251411fd9ef1c62bc99c7b83ecbe62dbc999b1fab7/librt-0.16.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:47ada6ea32636492c61aa8ad27ae3b9404bfe7a97e3ba946d1984236cc741da0", size = 705921, upload-time = "2026-09-29T00:54:50.905Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/f7/8aab946f11d59d1bece9ffc65d994b200c789a8ca5a95c17e17e609f912a/librt-0.16.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43bd6e642d8a248c114327f98dd25ac5a7cb5aa168ef02f0559b91874df16b8", size = 731786, upload-time = "2026-09-29T00:54:52.584Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/76/1c42ab31e7cb8384ebf6d3af607213c495222474f4940443ae7639ab7685/librt-0.16.0-cp315-cp315t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c3d1bb7841a816ace6449bb26d3f9560dbfa20e71c568d23f0f62bf1e68f50b1", size = 744964, upload-time = "2026-09-29T00:54:54.217Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/2e/4b19982d933d2dfced671e840b219e4c1cd3f507df6e6dabb51bbd4e3850/librt-0.16.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3931f7a3db322e7f44e02a280e3949326ce9579ad388ee8d691dc7c76da9fb70", size = 765305, upload-time = "2026-09-29T00:54:55.815Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/1b/e872583de2dcb3ac7746e7a2321aeeb168274f3952a87dc66e05ddb29faf/librt-0.16.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f4462528b6000afe8f16907b5c7c2553abf1df005ba5140e6eb394541c3624c3", size = 744959, upload-time = "2026-09-29T00:54:57.532Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/10/de/a18c6bcfb297af2674233e90b3c3661c3a0af0f1434a0c966d2ef708a835/librt-0.16.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:80039ba9b6a7d5f1a0175a4cca6bbefead87bd854c80abad1cb30afe47a830db", size = 758138, upload-time = "2026-09-29T00:54:59.484Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/22/1c/0df1d732539c297bb1a093e1fe3204d2faf76a9022cf4e1d1c2fce059790/librt-0.16.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7a1d272724b581bb6bc769dfdafed6da2ecc9886ba2450311de55a4ac2e1e9cd", size = 744268, upload-time = "2026-09-29T00:55:01.179Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/f7/ccaf31331f20c91a5bd9bd48ffc3f743f9c81bb5720cc7b2a720ca204f0a/librt-0.16.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:fbe4fb8c5445f7496d7f7f6bb0807875d09d47e6771ffa175fb2df2895fb86ba", size = 785783, upload-time = "2026-09-29T00:55:02.938Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/ea/7421d9e6db894cd6cd788b604b3394a163ded6b942052b6f96c23ccf08e1/librt-0.16.0-cp315-cp315t-win32.whl", hash = "sha256:375bfe6b572a8f6cfc398709356046173bf27e64c4c5edaf5f7062f051fb4bf9", size = 104355, upload-time = "2026-09-29T00:55:04.533Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/85/6d/7c31a506eb847bc58aeb2402d58e17605e821f68ab5df5e66fe274a6df41/librt-0.16.0-cp315-cp315t-win_amd64.whl", hash = "sha256:bd3150023d3dc2bc70f3784e59ffa1140d56ddba3d8125b3d6f9f85221279bfc", size = 126134, upload-time = "2026-09-29T00:55:06.017Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/69/7a5d10ac409c4da0355e054a14371871da9b5557fcc42772cd00181c6cce/librt-0.16.0-cp315-cp315t-win_arm64.whl", hash = "sha256:8ceafb70f2a4f0826f11031942e59c0728fd98da112dc346d4352bde1e486866", size = 116391, upload-time = "2026-09-29T00:55:07.484Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "macholib"
|
||||
version = "1.16.4"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "altgraph" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/10/2f/97589876ea967487978071c9042518d28b958d87b17dceb7cdc1d881f963/macholib-1.16.4.tar.gz", hash = "sha256:f408c93ab2e995cd2c46e34fe328b130404be143469e41bc366c807448979362", size = 59427, upload-time = "2025-11-22T08:28:38.373Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/c7/d1/a9f36f8ecdf0fb7c9b1e78c8d7af12b8c8754e74851ac7b94a8305540fc7/macholib-1.16.4-py2.py3-none-any.whl", hash = "sha256:da1a3fa8266e30f0ce7e97c6a54eefaae8edd1e5f86f3eb8b95457cae90265ea", size = 38117, upload-time = "2025-11-22T08:28:36.939Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mypy"
|
||||
version = "2.4.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "ast-serialize" },
|
||||
{ name = "librt", marker = "platform_python_implementation != 'PyPy'" },
|
||||
{ name = "mypy-extensions" },
|
||||
{ name = "pathspec" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/34/4e/64300736cf0a0373a27b94a91b664ee7382e36f77b0621bae6381da3e180/mypy-2.4.0.tar.gz", hash = "sha256:77bdaebd452f43fcfc4cc3ba94352a3ea537cd01e3f2d0879f48673d2ec00d6e", size = 4064425, upload-time = "2026-10-01T20:40:39.229Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/44/f2/eb15183c97c69d7cbfac990a6efd33a19ecfd97dab9e714c742fa78a784f/mypy-2.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7da85fbcff6dac1abcc636707bed38b45598131fb7a605d9719c70b5cc733af8", size = 14213395, upload-time = "2026-10-01T20:40:21.178Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/b5/ba91b6ff65e4d6b6ff53b2b3b3ac5f1babf0c7c27d0b43a0196b1c967926/mypy-2.4.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4209da39d85cf240f762af622d8180fcdfcb4727d021f44ade62d613a1a43324", size = 14373009, upload-time = "2026-10-01T20:39:58.86Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/c4/484275efc935c0003e55e4e8a33e4b8e99528ee956c12256ece4708f903f/mypy-2.4.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6be721bd4bd57576193653b75b4af3461c9d0bf7dd8b528f782e9be210dc75bb", size = 15465557, upload-time = "2026-10-01T20:39:01.794Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/30/66eb6fdd0875e3c9025a02f0bb0ea2e524b74274b658c37fde0068c4939d/mypy-2.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e1fde197ae65be856a034a91b70ed747a16562ca69577785f06c661548424bf1", size = 15728673, upload-time = "2026-10-01T20:38:43.724Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/bc/2aa98fd7f49c42dba8e9c065886fadffdd00f3c654cff3f2a7103a797ac8/mypy-2.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:295ecf2e57542cd836ca537486951289678c8c7d1ee6ad74ebe29b2168a003cf", size = 11389803, upload-time = "2026-10-01T20:39:37.547Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/41/17b60df2d946792ef6af43b89351f5c9ddabc69053206b2304945572a744/mypy-2.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:bc378bdad4e9f12b5bd96466083d1e71acf00594ec9c7b2bdb5e02816f77f303", size = 10951060, upload-time = "2026-10-01T20:39:04.015Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/66/924be0b653372ed31ad5c48e26044cc00840e591943a56e61621cf05b60e/mypy-2.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:058165f564ccf559c68c70fec2091fca5891110480210c22594635e3f6683437", size = 14234230, upload-time = "2026-10-01T20:39:44.535Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/39/c4f176880a4177123576de6cec6309feea8f42fca2bf2f6584e88054f656/mypy-2.4.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9fa247e02b505a45a2775f69df38d360d197e3790bc60f717595db9eda358b6e", size = 14392944, upload-time = "2026-10-01T20:40:05.78Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/1c/26e16977e25ef2494a74f8ffc872a76ec2c3aa43c3156057cbdf88f352c5/mypy-2.4.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20e9a5cd875837520c43db98dea0b6d0c2197833d95c30127d8f570fb9b1f00b", size = 15441463, upload-time = "2026-10-01T20:40:32.412Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/9c/9e4b049f0ecefbfd6817ca2a16eea55dd74a07950268edc6cffd29ccfe98/mypy-2.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9f03a7828cca2b0adcd6662aee8f2711ff8830e1027641fdea3ab0b787483566", size = 15705406, upload-time = "2026-10-01T20:40:34.844Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4a/5e/e861b5f6c5ef9ee6cd24683aed1edecf82a26dbd536049f9b7850b586267/mypy-2.4.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:9279488933040b638c0ab739084c0ca100efeea6db581bf5d7628d8e89de53fe", size = 7897523, upload-time = "2026-10-01T20:39:39.861Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3a/87/61ffee58b25a956532a6006fae84918a2de849ed25f397492b2e815fe7b3/mypy-2.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:2106b55105ba5ea9be4f53a24517fc5fa927ff1585edc9bc1a975abb72caef89", size = 11576345, upload-time = "2026-10-01T20:39:41.553Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a1/88/a331c20698971c2ce8d1c30f317fd61b5be13a85b1f053e12dfa22ac6568/mypy-2.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:528c8744b8b5e3ecb8774f86af38d2376216816e9908317ad055f3c9c2d74799", size = 11172062, upload-time = "2026-10-01T20:38:59.534Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/c0/4f7daa73270dced8e86c6f4a911c68082d03a84e6c1ec9bd916028d66131/mypy-2.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0bb95cf34899e4619c61ab0a8667804e139e580b30d5df12af2102dfe44d0c97", size = 15711208, upload-time = "2026-10-01T20:39:30.597Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/05/f1afa303c678be24cf7a266d38fb24b3de4599a024c2f9ba0d5905a3efa3/mypy-2.4.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86d616fe84c6eab8026f8c50ab5bcb90db780d2ccd233d971e34e92bede9b359", size = 15935442, upload-time = "2026-10-01T20:39:22.781Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/d6/6a1a45459b63716e0d035f4892a926d3054f0a8cbfa02551d228a9946083/mypy-2.4.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a3f86fd1313dd69d013e265f1fdcd12ea7a9d606f9875b2a3db946cd334555f3", size = 17240044, upload-time = "2026-10-01T20:39:32.95Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/85/ae33bee66c13f98d421964d87bf0888be941063bc75c1204a4cf142cf1cc/mypy-2.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:720434d48542ecfe84d32d287b727569d3fc8f5769acd39051130e490a5c295c", size = 17545856, upload-time = "2026-10-01T20:39:08.827Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/de/eeff209b65c3e267818d79333bb9f058da6e4e73761461bd94748a2eb628/mypy-2.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:a6e851b82c0661f69f1630fc16172c68787a6a9cf0991e7c6437d60976cdcd76", size = 12369342, upload-time = "2026-10-01T20:40:10.516Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/43/e62d8d5c1dd737aa248968302ff7d6eabf997c3301773ed8bcb64932ca77/mypy-2.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:3bd0e340f0ebe65c548210f53be3fd8192e83964760caf0c28bef368e68b0d37", size = 11849099, upload-time = "2026-10-01T20:39:51.834Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/5f/335b8980055118dc131355155883fb676bb2161a0d97e08658e479c776fb/mypy-2.4.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:afa89837d9be67e0cadfa33bca3bb7efdda98c3b07e74dc3b635ebfb1c8a926a", size = 14241302, upload-time = "2026-10-01T20:39:13.227Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/18/37/1482fdc49332b145828912b15f16eee0c4ca70a8bce0f6514ece79b14680/mypy-2.4.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fb443e81057896132d3642d6be219e6efd158691ac7883e3ba8fcb469865f05d", size = 14408200, upload-time = "2026-10-01T20:38:52.576Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/09/dce2e8f6c1b31053c430ef6963f6f7a38ccb49b90c5e01e37ed0129b7d5a/mypy-2.4.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7f38f57d344f8b6accb40e01c3d83cfc590498231724d16c07ffb7940f157818", size = 15444409, upload-time = "2026-10-01T20:39:18.1Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/c5/91b68306da4cd280cb15be35dbb5ffc343cabd67c4b121b6625bf2d13177/mypy-2.4.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e76172710bd4e5eeae061abfd68347e5264632e02778be61784671ae3a2132f5", size = 15731186, upload-time = "2026-10-01T20:40:23.426Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/71/2d0340182a8f27352fb1e25531355951108b506097c433937e9eec452ffd/mypy-2.4.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:f83353e47ab520bf6fd4df8f5897d9fe081211f2fbc4b7d37736a3e3c166cbcf", size = 7897838, upload-time = "2026-10-01T20:38:50.779Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3e/08/32703c117e134c02efa2a82705bb40cee91eaedea10b6530e20eba651b1f/mypy-2.4.0-cp315-cp315-win_amd64.whl", hash = "sha256:970b221ed5842213d98e3c480c08f795ace4b1f81fb21e1b126bd0476bce1c34", size = 11575700, upload-time = "2026-10-01T20:39:53.982Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/08/08bb269feafdaad031046ee2d771528a64467e6a180f962afc28c4a3ccd8/mypy-2.4.0-cp315-cp315-win_arm64.whl", hash = "sha256:502b94b0b331f7dafe32fd6b151797ddbb4f32385b362e722c783a025e5954a3", size = 11172908, upload-time = "2026-10-01T20:40:12.91Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fb/3f/c5c92626006ca92c7686adfbece47fc6a0daa0e54753952a9ad13ce0561c/mypy-2.4.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:c9de622fd397495695d0598ddc789222bfcfec9d7c9ec3a1e385c855e3bc5e01", size = 15705970, upload-time = "2026-10-01T20:40:17.79Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/10/f3/863365f7997a76a5a1dd42d7902ab05afa4124e8419089cbca1ce2554db1/mypy-2.4.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9f459f0b4f0596d9d51fe7716b404b35287b99e77da98a7af90a65dd5fd61141", size = 15942234, upload-time = "2026-10-01T20:40:37.243Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f6/30/2f45b1f425a2c95dbe1a3f4d076bfd42b76e9615dba5906230703b14e4eb/mypy-2.4.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f9b028548b3af480e2b1ed8df14ccaac86f99c9f600d1580770ab7ba3dcd40f0", size = 17218364, upload-time = "2026-10-01T20:39:06.497Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/8b/5b2bbfc69e84800b78fa2dba16d995b003f93b573558e412c5490d6e6c37/mypy-2.4.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:cb734b2668c1f40d07ce093bbeb4407e9527c67901627b0e1679825be3f09975", size = 17557934, upload-time = "2026-10-01T20:38:46.077Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/c0/1a5dc601c22041a7bbfe1ff71cf097fbbd4fb49930867c6789baf5102106/mypy-2.4.0-cp315-cp315t-win_amd64.whl", hash = "sha256:172e30b8fea631fe310f0c665477f52d9ea40bb4e99e0c81dc30118563b13710", size = 12350955, upload-time = "2026-10-01T20:40:01.52Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1c/bc/697e9e26fc2a86c094ad67ee1e419971b7f01ded66ee66231b09e9f3e12e/mypy-2.4.0-cp315-cp315t-win_arm64.whl", hash = "sha256:5786ef987b3767e51aaa53f20aec104c0252b42ecda7aef8e8b4cbae279b05c5", size = 11842738, upload-time = "2026-10-01T20:40:30.026Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/12/46ae8670c98a3cd0286ca5645c2f918f8f6be65edfed81b916010619f668/mypy-2.4.0-py3-none-any.whl", hash = "sha256:d01c5d26a352acc6d5cf3128225477e1e8465e8d3029d4c345807fbf7f3cf093", size = 2800734, upload-time = "2026-10-01T20:39:26.837Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mypy-extensions"
|
||||
version = "1.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload-time = "2025-04-22T14:54:24.164Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
version = "26.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
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" }
|
||||
wheels = [
|
||||
{ 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" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pathspec"
|
||||
version = "1.1.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/5a/82/42f767fc1c1143d6fd36efb827202a2d997a375e160a71eb2888a925aac1/pathspec-1.1.1.tar.gz", hash = "sha256:17db5ecd524104a120e173814c90367a96a98d07c45b2e10c2f3919fff91bf5a", size = 135180, upload-time = "2026-04-27T01:46:08.907Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/d9/7fb5aa316bc299258e68c73ba3bddbc499654a07f151cba08f6153988714/pathspec-1.1.1-py3-none-any.whl", hash = "sha256:a00ce642f577bf7f473932318056212bc4f8bfdf53128c78bbd5af0b9b20b189", size = 57328, upload-time = "2026-04-27T01:46:07.06Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pefile"
|
||||
version = "2024.8.26"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/03/4f/2750f7f6f025a1507cd3b7218691671eecfd0bbebebe8b39aa0fe1d360b8/pefile-2024.8.26.tar.gz", hash = "sha256:3ff6c5d8b43e8c37bb6e6dd5085658d658a7a0bdcd20b6a07b1fcfc1c4e9d632", size = 76008, upload-time = "2024-08-26T20:58:38.155Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/54/16/12b82f791c7f50ddec566873d5bdd245baa1491bac11d15ffb98aecc8f8b/pefile-2024.8.26-py3-none-any.whl", hash = "sha256:76f8b485dcd3b1bb8166f1128d395fa3d87af26360c2358fb75b80019b957c6f", size = 74766, upload-time = "2024-08-26T21:01:02.632Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pluggy"
|
||||
version = "1.7.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pygments"
|
||||
version = "2.21.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyinstaller"
|
||||
version = "6.22.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "altgraph" },
|
||||
{ name = "macholib", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "packaging" },
|
||||
{ name = "pefile", marker = "sys_platform == 'win32'" },
|
||||
{ name = "pyinstaller-hooks-contrib" },
|
||||
{ name = "pywin32-ctypes", marker = "sys_platform == 'win32'" },
|
||||
{ name = "setuptools" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/63/41/f90302845945abd4ed647933ff5ee7c6ac93983187be67f897b6cb613331/pyinstaller-6.22.3.tar.gz", hash = "sha256:05eb2f5615503e72939a7224d68b4aff572c6b0438ee4a17d0a4b481f399362d", size = 4437180, upload-time = "2026-09-12T21:54:09.669Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/af/898f70947e27f8e65d55183c780e77112e023c0b4a6fba6255d4d563a27d/pyinstaller-6.22.3-py3-none-macosx_10_13_universal2.whl", hash = "sha256:052f4a1cd4f81092ccb7a18fe8ebc9ecf832a5917317e39fb3775af4e959b253", size = 1071847, upload-time = "2026-09-12T21:53:01.711Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/96/99f5184985141c2b024bfa61335e9142ae444555224f303186e59b7bb438/pyinstaller-6.22.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:312da84b4b31ab9750066a823734c11b7c68757fdd67c9f038bf19c330a954e4", size = 758172, upload-time = "2026-09-12T21:53:06.171Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/69/9f/9ccb12cc1e6617042cb028fe79f0a756f5f03305bd14b584a4e043fe3844/pyinstaller-6.22.3-py3-none-manylinux2014_i686.whl", hash = "sha256:020d4fe0627f5c73dfbcfad1a6578ef354d5fe4bdccd9d8e5a615528f5a45d2b", size = 772135, upload-time = "2026-09-12T21:53:10.291Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/43/4b1d5193a88628c052db89f064433681076959a9f41d0d9f660001b49079/pyinstaller-6.22.3-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:9e4f7bd64b2103f14b4a6240fb9155e9fe7bc61391b4043bbddb7d3ebc8ab0fa", size = 770461, upload-time = "2026-09-12T21:53:14.592Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/83/f173f8757c618d83e116fa2b8e57c5cd796e5ad09792e664eabd6ac5edae/pyinstaller-6.22.3-py3-none-manylinux2014_s390x.whl", hash = "sha256:f82d0fb89f21c3ed6f482ee16f341bc59e8a31dbabb9bae9ef04e53ade4dc0d9", size = 764997, upload-time = "2026-09-12T21:53:19.079Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/b6/dd21d61fc5e25377be24eabf13e99e4e46548a5abe2bf7b15d8b3d9cc74a/pyinstaller-6.22.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:451a4ae14b719365bf1a2f0a99dae7b3463060061c3a394c70d5264cfb439528", size = 764974, upload-time = "2026-09-12T21:53:23.176Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/fd/d9590942972b1fc205519f7ccffb0d5cd8eb1d6fa61edad319c71d25baed/pyinstaller-6.22.3-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:ea240b5dfa831ff673c97505eee0ec24670bccf71396c83109440348944c83d0", size = 764450, upload-time = "2026-09-12T21:53:27.419Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/d6/f22c55d1768433b65c460b19a3136dd9769b6c74b786149b829344654c7d/pyinstaller-6.22.3-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:a2b6fc26601e8c2596c3d54981566934a3382e85d05d0fe91b55b6a8dcc6b282", size = 763863, upload-time = "2026-09-12T21:53:31.609Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/87/cf28cfd42ceca889171e6dd5e7f1553d4372db83d047049ffb7cf95fcbd4/pyinstaller-6.22.3-py3-none-win32.whl", hash = "sha256:46a3e30a118341a1ec20667a5a95aa7e0aa8c4fa129893c0151b3eb3f801a722", size = 1390905, upload-time = "2026-09-12T21:53:38.133Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/83/c5422204772a27aef643280fdc887b7ef55679989096b21dceb1b9625fc4/pyinstaller-6.22.3-py3-none-win_amd64.whl", hash = "sha256:500bd58c7bf7e584a8435adccbd763a0b918d5c12b08d74ff50fd79b2915458b", size = 1454907, upload-time = "2026-09-12T21:53:44.812Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/2e/ebc93968bf63f81b122e205da116b16036b653b7ce2cc8ad86e3ddd19586/pyinstaller-6.22.3-py3-none-win_arm64.whl", hash = "sha256:31df3cc4261e804a53d358b7897c293ec8b88b167a7cca06c78018085c855f97", size = 1402956, upload-time = "2026-09-12T21:53:51.369Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyinstaller-hooks-contrib"
|
||||
version = "2026.8"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "packaging" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/c9/3b/fab1a12a21bf9223af012e5dd002b7d4265683d21d9fabbd0ccb347316e4/pyinstaller_hooks_contrib-2026.8.tar.gz", hash = "sha256:4d825786ad7a9b7dbcc52d612748a34562fe273461bcfd88f4d549c594bbf8f9", size = 176955, upload-time = "2026-09-30T07:53:52.56Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/8f/f1/3eee0263b487e571aed9204257b45bc2a0b6fec34d0a1adade4d8d8a968c/pyinstaller_hooks_contrib-2026.8-py3-none-any.whl", hash = "sha256:6d21d65323ea4467753afc21f52d7d0e69416ae8101dd88269bf273ad48db084", size = 462145, upload-time = "2026-09-30T07:53:51.167Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest"
|
||||
version = "9.1.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
||||
{ name = "iniconfig" },
|
||||
{ name = "packaging" },
|
||||
{ name = "pluggy" },
|
||||
{ name = "pygments" },
|
||||
]
|
||||
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" }
|
||||
wheels = [
|
||||
{ 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" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest-cov"
|
||||
version = "7.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "coverage" },
|
||||
{ name = "pluggy" },
|
||||
{ name = "pytest" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/b1/51/a849f96e117386044471c8ec2bd6cfebacda285da9525c9106aeb28da671/pytest_cov-7.1.0.tar.gz", hash = "sha256:30674f2b5f6351aa09702a9c8c364f6a01c27aae0c1366ae8016160d1efc56b2", size = 55592, upload-time = "2026-03-21T20:11:16.284Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl", hash = "sha256:a0461110b7865f9a271aa1b51e516c9a95de9d696734a2f71e3e78f46e1d4678", size = 22876, upload-time = "2026-03-21T20:11:14.438Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pywin32-ctypes"
|
||||
version = "0.2.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ruff"
|
||||
version = "0.17.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f9/e7/e6d5749983b020e6cb1055abec0a6f361a8e94f0184cdcf56d4760995f02/ruff-0.17.1.tar.gz", hash = "sha256:5bb796c5112e9fb9527f2ef2faa0a130d6312d19de92bcfaddd70dbb2d41020f", size = 5323349, upload-time = "2026-10-15T15:23:18.64Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/78/90c46ca6250709f7c37e397b60d06061adee8d0f7d13959ed6a8e49b14fd/ruff-0.17.1-py3-none-linux_armv6l.whl", hash = "sha256:1796c41eafec66f4635125dd1e074a7aa27b8d20c187d484360acf11d247fc4a", size = 10147528, upload-time = "2026-10-15T15:22:33.667Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/d2/a2e28bc35b083ae51fa07dfba5280a667c8b01ecaee7802fc8849dcd5c46/ruff-0.17.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:8eadb09a788010be29c895418bdfa513e4e1c65e64b94e5b19e4cd381f6cc7fb", size = 10225974, upload-time = "2026-10-15T15:22:36.328Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/71/7a9029a81c8206ee01a98f6cfeeb56e6c095af86857581a37045c46d7e94/ruff-0.17.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:29b454f18ca3eeaf37fbf140841dcf27d36109e29dee9aae8acecb68c26c6f74", size = 9270361, upload-time = "2026-10-15T15:22:38.651Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/8c/e075e9c917cb0575297880c96768304e881240171c870cbd8d9b7b54bec2/ruff-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:872e03dd231744d6c5ec5c8af6be52b71323fc6ee096e4c8b34d9f844ee3b978", size = 9938300, upload-time = "2026-10-15T15:22:41.284Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/27/0b4bb926a49de2383f161272b4d863571a4c7ecdbf595a6bc58813a13367/ruff-0.17.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4c0d6cb5f8fbac77eec9af49f4fc0eaf856b05545e372b0694d24b4e76b1c640", size = 9948464, upload-time = "2026-10-15T15:22:43.681Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/27/518d57e0e02aecb8ea4acac6b57b51a53173d25fa734952bfdd7d531e88e/ruff-0.17.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78beced4a3c94dfedbee4b999b95b6a27b35820fdc0afbacc6d37a8da26c1cd1", size = 10638639, upload-time = "2026-10-15T15:22:46.081Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/01/82/d89a4e498ade59e6cee52d67f8da569019372212b87468c1fdeae884601c/ruff-0.17.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7feefc63921202894f0e158b0e32f45a5950d70a7fb693ccb9264816c25b1c05", size = 11337238, upload-time = "2026-10-15T15:22:48.894Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/7c/3b0fdef9352656317c977086fe1d802902406e4f2a0d8578da90c0e6d1c5/ruff-0.17.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:684154861a819bf1f433669d2a0ce9c3e54677c65b8ebb866cc2a7ec86345785", size = 10896327, upload-time = "2026-10-15T15:22:51.45Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/62/86/5566290219708ce2928f3a29c4f843a1185b341ec6111c4631a33c5ceced/ruff-0.17.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6ef98e51de8ef38082f90653ceeb84944bd7673783eea13e1647c5b9b064189", size = 10350811, upload-time = "2026-10-15T15:22:54.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/d2/ca8462dabb3c413990d49703ba306c30c862195a75448d080fa8fcce9775/ruff-0.17.1-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:8f9aa5b5bd5fa1937803ea609c8f153b8de39bf3e0e149897ae34b0c5b52f467", size = 10569994, upload-time = "2026-10-15T15:22:57.142Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e3/ad/dd1864c1f1db17c8cfb297ce70b352388e6977620f66f7182c52855407df/ruff-0.17.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:80e53b0e5faa3c5667f035daaa032893ae42b7cfe708c886d39ed131e54688ab", size = 10059672, upload-time = "2026-10-15T15:23:00.084Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/45/3f56cf1d2168c2165cdd5ac6f9668aee66a4cfdd4caf2b2cc5ccb2b1d568/ruff-0.17.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:056c5d5fa0ac790051ae165d7035c7bf956d02de2db557f2e9b31d877a505fca", size = 9947803, upload-time = "2026-10-15T15:23:03.132Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/4b/5457cb2be4c1d1ea5e919558131a0f197a4a454a0530d9e30820e8206e4c/ruff-0.17.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:bd8f5a55b10f371642eacd0e8665a42a8b97da15c9a7187c79e697b77b5e0ce4", size = 10351807, upload-time = "2026-10-15T15:23:05.628Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/fb/db15b4f8fa24a1e36b99e1401f42ef6df16ee299a48670d5d262b771e7d7/ruff-0.17.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:ce05e6f3973611d9550a600e04bb531061e368baba31610eb57c1509a8f21a0a", size = 10765716, upload-time = "2026-10-15T15:23:08.092Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/e8/1e186578076aff7a80735f625005fde678412ab609cd323ed182eb7d6b87/ruff-0.17.1-py3-none-win32.whl", hash = "sha256:1de0030a8aa78c65c5fecb84b2e5c390ac684c0452875a02afc7c083d49a496a", size = 9895093, upload-time = "2026-10-15T15:23:10.582Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/2e/da3d9589bae8e8b58f3a48bd5bc0b980232fb14a83bf02c3be7660f87c1b/ruff-0.17.1-py3-none-win_amd64.whl", hash = "sha256:5df76f16580fab58d0f6c98a3ac254a4abceb7b2489b8b678335869cff77b3d7", size = 10097955, upload-time = "2026-10-15T15:23:13.309Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/c9/0f2a4dea06a5e12c1191ee3d96b1e1233797d0d5e18f97a2b909a95a9836/ruff-0.17.1-py3-none-win_arm64.whl", hash = "sha256:42400b9a6ff8515ff27796f07f92e0195be011c86e81e381606f58ea5502fef4", size = 9853542, upload-time = "2026-10-15T15:23:16.05Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "setuptools"
|
||||
version = "84.0.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/6d/44/f5da03a8ef95d369145c5bb53050e7877c9f3d312e128605fd9504829143/setuptools-84.0.0.tar.gz", hash = "sha256:f4695c21257f0d9b537ec2692c941d02ee143b7cc1276941349a546573b2ef73", size = 1168449, upload-time = "2026-08-08T18:27:58.365Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/95/9c/c510029fc6ef33a6275cd2c5d3cecd6613dfd6aa401d57c54f1c18852ccf/setuptools-84.0.0-py3-none-any.whl", hash = "sha256:51a52592b3b99e102b609654876bd65f19f999935166d1352678931132b0c670", size = 818216, upload-time = "2026-08-08T18:27:56.719Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.16.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
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" }
|
||||
wheels = [
|
||||
{ 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" },
|
||||
]
|
||||
Reference in new issue
Block a user