diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 1ecea9d..080b2f2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,66 +1,62 @@ -# .github/workflows/python-app.yml -# CI pipeline for NetShow: -# * installs dependencies via pip (extras: dev) -# * checks formatting (Black), linting (Ruff), typing (mypy) -# * runs unit tests (pytest) on all supported Python versions - -name: Python application +name: Checks on: push: - branches: ["main"] + branches: [main] pull_request: - branches: ["main"] + branches: [main] permissions: contents: read +concurrency: + group: checks-${{ github.ref }} + cancel-in-progress: true + jobs: - build: - name: Test on Python ${{ matrix.python-version }} + quality: runs-on: ubuntu-latest - + steps: + - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 + with: + enable-cache: true + python-version: '3.14' + - run: uv sync --locked + - run: uv run --locked ruff format --check . + - run: uv run --locked ruff check . + - run: uv run --locked mypy src + + test: + name: ${{ matrix.os }} / Python ${{ matrix.python }} + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] - + os: [ubuntu-latest] + python: ['3.11', '3.12', '3.13', '3.14'] + include: + - os: macos-latest + python: '3.14' steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 + - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 with: - python-version: "${{ matrix.python-version }}" + enable-cache: true + python-version: ${{ matrix.python }} + - run: uv sync --locked + - run: uv run --locked pytest -q - - name: Cache pip - uses: actions/cache@v4 + package: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 with: - path: ~/.cache/pip - key: >- - ${{ runner.os }}-py${{ matrix.python-version }}- - ${{ hashFiles('pyproject.toml') }} - restore-keys: | - ${{ runner.os }}-py${{ matrix.python-version }}- - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ".[dev]" - - # ---------- QUALITY GATES ---------- - - name: Check formatting with Black - run: | - black --check . - - - name: Lint with Ruff - run: | - ruff check . - - - name: Type-check with mypy - run: | - mypy src/ - - # ---------- TEST SUITE ---------- - - name: Run tests with pytest + python-version: '3.11' + - run: uv build --out-dir dist/check + - name: Test installation from wheel and sdist run: | - pytest -q + for artifact in dist/check/*.whl dist/check/*.tar.gz; do + uv run --no-project --isolated --with "$artifact" python scripts/smoke_install.py + done diff --git a/.gitignore b/.gitignore index c18dd8d..df1a2ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,11 @@ __pycache__/ +.venv/ +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +build/ +dist/ +*.egg-info/ +.coverage +htmlcov/ +.DS_Store diff --git a/README.md b/README.md index 13729fc..5f7c0c0 100644 --- a/README.md +++ b/README.md @@ -1,185 +1,126 @@
- +netshow -### netshow · interactive, process-aware network monitoring for your terminal +**Interactive, process-aware network monitoring for your terminal.** -
- -![Python versions](https://img.shields.io/badge/python-3.9%2B-blue?logo=python&logoColor=white) ![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey) ![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-black?logo=ruff) ![Built with Textual](https://img.shields.io/badge/UI-Textual-purple) ![uv](https://img.shields.io/badge/dependencies-uv-orange?logo=uv) - -
+Python 3.11+ · macOS & Linux · Built with Textual
---- +![Netshow connection monitor showing example connections](docs/assets/connections.svg) -
- -
+> This checkout contains the UI refresh in development. Screenshots use example data. +> `uvx netshow` runs the published release; use the source instructions below to try this version. ---- - -### A quick plug for AI-Enhanced Docs -
-But why? - -**This README was written with AI assistance, and here's why that matters** -> -> As a solo dev building open source tools that many never see outside use, comprehensive documentation often wouldn't happen without AI help. Using agentic dev tools like **Roo** & **Claude Code** that understand the entire codebase, AI doesn't just regurgitate generic content - it extracts real implementation details and creates accurate, specific documentation. -> -> In this case, Sonnet 4 took a pass & a human (me) verified them 7/10/25. -
- -## ✨ **Features** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
🔍 Live TCP monitorRefreshes every 3 s (configurable) while preserving scroll position
👤 Human-friendly service namesShows Docker, Plex, VS Code, etc. instead of cryptic binaries
🔬 Deep process drill-downPath, PID, cmdline, cwd, threads, CPU %, memory %, open files, active connections
🖱️ Clickable / keyboard navigationPress ↵ or click a row for a dedicated detail screen; refresh pauses automatically
🔐 Runs privileged
or unprivileged
Uses psutil (root) for full fidelity, falls back to lsof if run as a regular user
📊 Real-time metricsLive connection counts, bandwidth monitoring with per-interface selection
🔍 Advanced filteringRegex-powered search with live filtering across all connection fields
🔄 Smart sortingSort by status or process name with optimized rendering for large datasets
🎨 Modern Textual UISmooth scrolling, dark theme, status bar with connection count & data source
⚡ Zero-pain installPowered by uv for lightning-fast dependency resolution
- ---- - -## 🚀 **Quickstart** - -```bash -# uvx (easiest) -uvx netshow - -# Local Builds -git clone git@github.com:taylorwilsdon/netshow.git -uv run netshow +## Install and run +```sh +uvx netshow ``` -> 💡 **Tip:** Without root/sudo, NetShow silently switches to `lsof` and still gives you most connections. - ---- +For this development version: -## 🛠️ **Usage** - -```bash -netshow [--interval 1.0] [--no-colors] -``` - -### **Options** -| Option | Description | Default | -|--------|-------------|---------| -| `--interval ` | Refresh rate (float) | `3.0` | -| `--no-colors` | Disable ANSI colors | Off | - -### **Keybindings** -| Key / Mouse | Action | -|-------------|--------| -| **↑ / ↓** | Move cursor | -| **↵ / Click** | Open detail view | -| **Esc / ←** | Back to list | -| **q** | Quit NetShow | -| **Ctrl+C** | Force quit (hard quit) | -| **Ctrl+R** | Force refresh | -| **e** | Toggle emoji display on/off | -| **f** | Toggle filter input | -| **/** | Quick search (focus filter) | -| **s** | Sort by connection status | -| **p** | Sort by process name | -| **i** | Cycle network interface for bandwidth monitoring | - -### **Advanced Features** - -**🔍 Filtering & Search** -- Press `f` or `/` to open the filter input -- Supports regex patterns for advanced matching -- Filters across process names, addresses, and connection status -- Live updates as you type (with debouncing) - -**🎨 Emoji Toggle** -- Press `e` to toggle emoji display on/off for a cleaner interface -- When disabled, removes all emoji prefixes from UI elements -- Useful for terminals with limited emoji support or accessibility preferences -- Setting persists during the session - -**📊 Bandwidth Monitoring** -- Real-time bandwidth display in the metrics bar -- Press `i` to cycle through network interfaces (`all`, `eth0`, `wlan0`, etc.) -- Accurate per-interface monitoring for multi-NIC hosts -- Automatic fallback to global stats if interface unavailable - -**🔄 Smart Performance** -- Optimized table rendering for large connection sets (5k+ connections) -- In-place cell updates to prevent flicker during sorting -- Preserves scroll position and cursor during refreshes -- Debounced filter input to avoid excessive updates - ---- - -## 👩‍💻 **Development** - -```bash +```sh git clone https://github.com/taylorwilsdon/netshow.git cd netshow -uv sync --extra dev +uv sync --locked +uv run netshow ``` -### **Quality Gates** -```bash -pytest # tests -ruff format . # auto-format -ruff check . # lint -mypy src/ # type check -``` +Or install the published package with `pipx install netshow`. ---- +## What it shows -## 📋 **Requirements** +- Live TCP connections with PID, friendly service name, process, endpoints, and status. +- Process details including executable, owner, command, working directory, threads, and live CPU/memory usage. +- Host or interface bandwidth: separate receive/transmit rates and a 30-second sparkline. +- Regex search across PID, names, addresses, and status; invalid patterns fall back to literal matching. +- Process/status sorting that preserves your selection, plus full IPv6 details. +- Confirmed process termination with a separate force-kill option if the process stays alive. +- The original Selenized Dark palette and labeled metric chips, built-in light/dark/ANSI themes, and a compact layout for small terminals. -• Python **≥ 3.9** -• macOS or Linux -• `lsof` (usually pre-installed) +Netshow tries psutil first and falls back to `lsof` when access is denied, as is common +on macOS. Install `lsof` if your system doesn't include it. Without sufficient privileges, +results may be incomplete; the status line marks limited visibility. Collection failures +show an error and retain the last successful snapshot, marked stale. ---- +Bandwidth is measured for the entire host or chosen interface. It is **not per-process +or per-connection throughput**. Summing interfaces may count traffic at multiple layers +on hosts with bridges, tunnels, or virtual interfaces. -## 🤝 **Contributing** +## Usage + +```sh +netshow --interval 1.5 +netshow --no-colors +netshow --version +``` + +| Option | Behavior | Default | +| --- | --- | --- | +| `--interval SECONDS` | Positive, finite connection refresh interval | `3.0` | +| `--no-colors` | Monochrome rendering; also enabled by a nonempty `NO_COLOR` | Off | +| `--version` | Print installed version and exit | — | + +Bandwidth samples every 0.5 seconds while the connection screen is visible. +Connection collection pauses during details/dialogs and resumes immediately on return. +Process details refresh every second while visible. + +| Key | Action | +| --- | --- | +| ↑ / ↓ | Select a connection | +| Enter | Open selected connection details | +| Click | Highlight a row; click the highlighted row again to open details | +| Esc / ← | Return from details | +| Ctrl+R | Refresh the current connection/detail view | +| `/` / `f` | Open search / toggle search field | +| Enter in search | Return focus to the table | +| Esc in search | Hide the field; the active filter remains visible in the status line | +| `s` / `p` | Toggle status / process sorting; press again for default PID order | +| `i` | Cycle bandwidth interfaces | +| `e` | Toggle status symbols | +| `v` | Toggle full IPv6 addresses in the table | +| `k` | Confirm termination of the selected process | +| `?` | Toggle contextual keyboard help | +| Ctrl+P | Command palette, including theme selection | +| `q` / Ctrl+C | Quit | + +Clear the search text to remove the filter. Settings last for the current session. +Single-letter shortcuts leave typing in the search field uninterrupted. + +## Terminate a process + +Select a connection and press `k`, or use **Terminate process…** in its detail view. +The dialog identifies the process and defaults to **Cancel**. Confirming **Terminate** +sends SIGTERM and waits up to three seconds. If it remains alive, a second confirmation +offers **Force kill**, which sends SIGKILL. Netshow never escalates automatically. + +![Process termination confirmation using example data](docs/assets/terminate.svg) + +The action affects the whole process and all its connections, so unsaved work may be +lost. Netshow rechecks PID and creation time before each signal, blocks unknown identities, +PID 0/1, and itself, and reports permission failures or exited/replaced processes. +It does not terminate process trees or request elevated privileges. + +## Development + +```sh +uv sync --locked +uv run ruff format --check . +uv run ruff check . +uv run mypy src +uv run pytest -q +uv build +``` -Pull requests and ⭐ stars are welcome! Found a bug or have a feature request? Please [open an issue](https://github.com/taylorwilsdon/netshow/issues). +Run `uv run ruff format .` to format changes. CI tests Python 3.11–3.14 on Linux and +Python 3.14 on macOS, and verifies installations from both wheel and source artifacts. +Tests use synthetic connection data; process-control integration tests act only on +children they start themselves. ---- +See [architecture](docs/architecture.md) and [release instructions](docs/releasing.md). +The earlier published version remains available for Python 3.9/3.10 users. -## 📜 **License** +## License -MIT – see [`LICENSE`](LICENSE) for full text. +[MIT](LICENSE). Issues and contributions are welcome on +[GitHub](https://github.com/taylorwilsdon/netshow/issues). diff --git a/docs/architecture.md b/docs/architecture.md new file mode 100644 index 0000000..da3280e --- /dev/null +++ b/docs/architecture.md @@ -0,0 +1,29 @@ +# Architecture + +`NetshowApp` owns the theme, command palette, and screen stack. `ConnectionsScreen` +owns a complete immutable snapshot plus filter/sort state. One collection worker runs +at a time; refresh requests coalesce. Suspending the screen invalidates in-flight +results, and resuming triggers a fresh collection. Collection errors retain the last +successful snapshot and show its stale status. + +Collectors normalize psutil and NUL-delimited lsof output into `Connection` records. +Each refresh reuses process metadata for repeated PIDs. Docker discovery is bounded +and cached for 30 seconds. A non-root collector may see only part of the system; +netshow states this explicitly. lsof and Docker commands have timeouts. + +`ConnectionTable` maps row keys to records. Formatting never becomes the source of +process identity or addresses. Filtering/sorting operate locally; table updates preserve +selection by identity and update only changed cells. TCSS uses Textual theme variables. + +`BandwidthSampler` owns a separate counter baseline and 60-sample history. A single +worker samples every half-second while the connection screen is active. Rendering and +resizing never sample counters. RX/TX are host/interface totals, not process throughput. + +`ProcessInspector` retains its CPU baseline and reports unavailable fields individually. +Termination uses PID plus creation time, revalidated before every signal. The confirmation +screen submits at most one request at a time. A timeout offers a new explicit force-kill +confirmation with Cancel focused. Process trees and privilege escalation are unsupported. + +Tests use deterministic collection fixtures and Textual Pilot. Only the explicit child +integration tests signal real processes, and those processes are created by the tests. +`scripts/smoke_install.py` verifies metadata, packaged TCSS, and startup from built artifacts. diff --git a/docs/assets/connections.svg b/docs/assets/connections.svg new file mode 100644 index 0000000..5d3317d --- /dev/null +++ b/docs/assets/connections.svg @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Netshow + + + + + + + + + + ⭘Netshow17:42:25 +┌─────────────────────────┐┌────────────────┐┌────────────────────┐┌──────────── 🔥 Bandwidth · en0 ─────────────┐ +│📊 Connections: 7││⚡ Active: 2││👂 Listening: 3││RX 125.0 KiB/s   TX 16.0 KiB/s│ +└─────────────────────────┘└────────────────┘└────────────────────┘└─────────────────────────────────────────────┘ +▁▁▁▁▂▅█▄▂▂▂▁▄▆▄▂▅▄▄▂▁▃▅▂▂▁▁▁▂▄▅▃▂▄ +psutil · Updated 0s ago · Sort: default + PID      Service                 Process           Local address           Remote address          Status          + 1204     Development server      node              127.0.0.1:3000          ◉ LISTEN        + 1318     PostgreSQL              postgres          127.0.0.1:5432          ◉ LISTEN        + 2406     Firefox                 firefox           192.0.2.10:52148        198.51.100.20:443       ● ESTABLISHED   + 2406     Firefox                 firefox           192.0.2.10:52149        198.51.100.21:443       ◷ TIME_WAIT     + 3152     SSH                     ssh               192.0.2.10:53012        203.0.113.40:22         ● ESTABLISHED   + 4210     API server              python            127.0.0.1:8000          127.0.0.1:53820         ◷ CLOSE_WAIT    + 4210     API server              python            […]:8000                ◉ LISTEN        + + + + + + + + + + + + + + + + ^r Refresh  / Search  f Filter  s Sort status  p Sort process  i Interface  e Symbols  v IPv6  k Terminate ▏^p palette + + + diff --git a/docs/assets/terminate.svg b/docs/assets/terminate.svg new file mode 100644 index 0000000..32cd2f7 --- /dev/null +++ b/docs/assets/terminate.svg @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Netshow + + + + + + + + + + ⭘Netshow + + + +Development server + +█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +╭───────────────────────██───────────────────────╮ +│█Terminate process?█│ +│Connection██│ +│█Development server · PID 1204 Owner: demo Executable:█│ +│PID1204█/usr/local/bin/node█│ +│Processnode██│ +│Local127.0.0.1:30█This affects all connections owned by this process. Unsaved█│ +│Remote—█work may be lost.█│ +│StatusLISTEN██│ +│█Send a graceful termination request.█│ +╰───────────────────────██│ +█▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔█│ +█ Cancel  Terminate █│ +█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█│ +██───────────────────────╯ +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + + +▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ + Back to connections  Terminate process…  +▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ + + esc Back  k Terminate process  ^r Refresh  q Quit  ? Help ▏^p palette + + + diff --git a/docs/releasing.md b/docs/releasing.md new file mode 100644 index 0000000..9969044 --- /dev/null +++ b/docs/releasing.md @@ -0,0 +1,27 @@ +# Releasing netshow + +The package version lives only in `pyproject.toml`; the CLI reads installed metadata. +The UI refresh keeps the existing version during development. Assign the next release +version explicitly when preparing the release (a minor release is appropriate). + +1. Update the version and release notes. Run `uv lock` to update the local package entry. +2. Run `python release.py`. This checks formatting, lint, typing, tests, and builds artifacts. +3. Smoke-test **both** artifacts, substituting the chosen version: + + ```sh + uv run --no-project --isolated --with ./dist/netshow-VERSION-py3-none-any.whl python scripts/smoke_install.py + uv run --no-project --isolated --with ./dist/netshow-VERSION.tar.gz python scripts/smoke_install.py + ``` + +4. Exercise the app on Linux and macOS, unprivileged and privileged: collect TCP states, + open/close details, filter/sort, change interfaces, resize, and terminate a disposable + process you started for this check. Confirm force kill separately using a disposable + process that ignores SIGTERM. Check ASCII/monochrome and ANSI themes in real terminals. +5. Review and commit the release files, then create an annotated `vVERSION` tag and push + normally. Never rewrite remote history as part of a release. +6. Publish only the two reviewed versioned artifacts with `uv publish `. + Prefer trusted publishing or a token supplied through the environment; never store + credentials in the repository. Create the GitHub release from the matching tag. + +Old versions remain available to Python 3.9/3.10 users. The new release requires 3.11+. +There is no configuration migration, background service, or telemetry to deploy. diff --git a/github_netshow.png b/github_netshow.png new file mode 100644 index 0000000..66eb1da Binary files /dev/null and b/github_netshow.png differ diff --git a/netshow-logo.png b/netshow-logo.png new file mode 100644 index 0000000..b8fc896 Binary files /dev/null and b/netshow-logo.png differ diff --git a/pyproject.toml b/pyproject.toml index 9920b04..66df105 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,101 +1,69 @@ [build-system] -requires = ["hatchling"] +requires = ["hatchling>=1.27"] build-backend = "hatchling.build" [project] name = "netshow" version = "0.2.2" -description = "A real-time network connection monitor with friendly service names" +description = "An interactive, process-aware network monitor for your terminal" readme = "README.md" -requires-python = ">=3.9" -license = {text = "MIT"} -authors = [ - {name = "Taylor Wilsdon"}, -] +requires-python = ">=3.11" +license = "MIT" +license-files = ["LICENSE"] +authors = [{name = "Taylor Wilsdon"}] keywords = ["network", "monitoring", "tui", "connections"] classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", + "Operating System :: MacOS", + "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", - "Topic :: System :: Monitoring", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: System :: Networking :: Monitoring", ] +dependencies = ["textual>=8.2.8,<9", "psutil>=7.2.2,<8", "rich>=14.3,<15"] -dependencies = [ - "textual>=0.40.0", - "psutil>=5.9.0", -] +[project.urls] +Homepage = "https://github.com/taylorwilsdon/netshow" +Issues = "https://github.com/taylorwilsdon/netshow/issues" [project.scripts] netshow = "netshow.cli:main" -[project.optional-dependencies] +[dependency-groups] dev = [ - "pytest>=7.0.0", - "ruff>=0.1.0", - "mypy>=1.0.0", - "black>=23.0.0", - "types-psutil>=5.9.0", + "pytest>=8.4", + "pytest-asyncio>=1.0", + "ruff>=0.12", + "mypy>=1.16", + "types-psutil>=7.2", ] -[tool.uv] -python-preference = "system" +[tool.hatch.build.targets.wheel] +packages = ["src/netshow"] + +[tool.hatch.build.targets.sdist] +include = ["/src", "/tests", "/docs", "/README.md", "/LICENSE", "/pyproject.toml", "/uv.lock", "/scripts", "/release.py"] [tool.ruff] line-length = 100 -target-version = "py39" -extend-ignore = [ - "E203", # whitespace before ':' - "E501", # line too long -] - +target-version = "py311" +include = ["*.py", "*.pyi", "**/pyproject.toml"] [tool.ruff.lint] -select = [ - "E", # pycodestyle errors - "W", # pycodestyle warnings - "F", # pyflakes - "I", # isort - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "UP", # pyupgrade -] -ignore = [] - -[tool.ruff.format] -quote-style = "double" -indent-style = "space" +select = ["E", "W", "F", "I", "B", "C4", "UP"] +ignore = ["E501"] [tool.mypy] -python_version = "3.9" -warn_return_any = true -warn_unused_configs = true -disallow_untyped_defs = true -disallow_incomplete_defs = true -check_untyped_defs = true -disallow_untyped_decorators = true -no_implicit_optional = true -warn_redundant_casts = true -warn_unused_ignores = true -warn_no_return = true -warn_unreachable = true -strict_equality = true +python_version = "3.11" +strict = true +files = ["src"] [tool.pytest.ini_options] testpaths = ["tests"] -python_files = ["test_*.py"] -python_classes = ["Test*"] -python_functions = ["test_*"] - -[dependency-groups] -dev = [ - "types-psutil>=7.0.0.20250601", -] +asyncio_mode = "auto" diff --git a/scripts/smoke_install.py b/scripts/smoke_install.py new file mode 100644 index 0000000..457aa09 --- /dev/null +++ b/scripts/smoke_install.py @@ -0,0 +1,24 @@ +"""Run against an installed wheel or sdist, without development dependencies.""" + +import asyncio +from importlib.metadata import version +from importlib.resources import files + +from netshow import __version__ +from netshow.app import NetshowApp +from netshow.connection_table import ConnectionTable +from netshow.models import CollectionResult + + +async def main() -> None: + assert __version__ == version("netshow") + assert files("netshow").joinpath("netshow.tcss").is_file() + app = NetshowApp(collector=CollectionResult) + async with app.run_test() as pilot: + await pilot.pause() + assert app.connections.query_one(ConnectionTable).row_count == 0 + print(f"Installed netshow {__version__}: metadata, stylesheet, and UI OK") + + +if __name__ == "__main__": + asyncio.run(main()) diff --git a/src/netshow/__init__.py b/src/netshow/__init__.py index b316dca..95f8773 100644 --- a/src/netshow/__init__.py +++ b/src/netshow/__init__.py @@ -1,3 +1,5 @@ -"""NetShow - A real-time network connection monitor with friendly service names.""" +"""Netshow: interactive, process-aware network monitoring.""" -__version__ = "0.1.0" +from importlib.metadata import version + +__version__ = version("netshow") diff --git a/src/netshow/app.py b/src/netshow/app.py index 33a3839..aa7253b 100644 --- a/src/netshow/app.py +++ b/src/netshow/app.py @@ -1,570 +1,374 @@ -import os -import time -from typing import Any, Optional, Union, cast +"""Application shell and connection screen; workers own system I/O.""" -import psutil -from textual.app import App, ComposeResult -from textual.binding import Binding -from textual.containers import Container, Horizontal, Vertical -from textual.reactive import reactive +import logging +import time +from collections.abc import Callable, Iterable, Sequence + +from textual import work +from textual.app import App, ComposeResult, SystemCommand +from textual.containers import Grid, Vertical +from textual.filter import LineFilter, Monochrome +from textual.message import Message +from textual.screen import Screen from textual.timer import Timer -from textual.widgets import DataTable, Footer, Header, Input, Static +from textual.widgets import Footer, Header, Input, Sparkline, Static +from .bandwidth import BandwidthSampler +from .collectors import collect_connections +from .connection_table import ConnectionTable from .detail_screen import ConnectionDetailScreen -from .helpers import get_lsof_conns, get_psutil_conns -from .styles import CSS -from .types_and_constants import ( - BASIC_KEYBINDINGS, - REFRESH_INTERVAL, - ConnectionData, -) - - -class NetshowApp(App): - """Network connection monitoring application using Textual TUI.""" - - CSS = CSS - BINDINGS = cast( - list[Union[Binding, tuple[str, str], tuple[str, str, str]]], BASIC_KEYBINDINGS - ) - - total_connections = reactive(0) - active_connections = reactive(0) - listening_connections = reactive(0) - show_filter = reactive(False) - current_filter = reactive("") - sort_mode = reactive("default") - selected_interface = reactive("all") - show_emojis = reactive(True) - - def __init__(self, **kwargs: Any) -> None: - super().__init__(**kwargs) - self.last_network_stats: Optional[Any] = None - self.last_stats_time: Optional[float] = None - self.filtered_connections: list[dict[str, str]] = [] - self.sound_enabled: bool = True - self.title = "Netshow" # Will be updated with data source - self.debounce_timer: Optional[Timer] = None - self.available_interfaces = self._get_available_interfaces() - - def _get_available_interfaces(self) -> list: - """Get list of available network interfaces.""" - try: - interfaces = ["all"] + list(psutil.net_io_counters(pernic=True).keys()) - return interfaces - except Exception: - return ["all"] +from .models import BandwidthSample, CollectionResult, Connection +from .presentation import format_bytes, literal, select_connections +from .processes import control_unavailable +from .terminate_screen import TerminateScreen +from .theme import SELENIZED_DARK + +log = logging.getLogger(__name__) + + +class ConnectionsScreen(Screen[None]): + BINDINGS = [ + ("ctrl+r", "refresh", "Refresh"), + ("/", "search", "Search"), + ("f", "toggle_filter", "Filter"), + ("s", "sort_status", "Sort status"), + ("p", "sort_process", "Sort process"), + ("i", "interface", "Interface"), + ("e", "emojis", "Symbols"), + ("v", "ipv6", "IPv6"), + ("k", "terminate", "Terminate"), + ("escape", "close_filter", "Close filter"), + ] + + class Collected(Message): + def __init__(self, generation: int, result: CollectionResult) -> None: + super().__init__() + self.generation, self.result = generation, result + + class Sampled(Message): + def __init__( + self, sample: BandwidthSample, history: tuple[float, ...], interfaces: list[str] + ) -> None: + super().__init__() + self.sample, self.history, self.interfaces = sample, history, interfaces + + def __init__(self, interval: float, collector: Callable[[], CollectionResult]) -> None: + super().__init__() + self.interval, self.collector = interval, collector + self.snapshot: tuple[Connection, ...] = () + self.result = CollectionResult() + self.filtered_connections: list[Connection] = [] + self.sort_mode = "default" + self.show_emojis = True + self.expand_ipv6 = False + self.query_text = "" + self.invalid_regex = False + self.generation = 0 + self.collecting = False + self.pending = False + self.active = False + self.last_success: float | None = None + self.timer: Timer | None = None + self.bandwidth_timer: Timer | None = None + self.debounce: Timer | None = None + self.sampler = BandwidthSampler() + self.sampling = False + self.sample = BandwidthSample(available=False) + self.interfaces = ["all"] + self.selected_interface = "all" def compose(self) -> ComposeResult: yield Header(show_clock=True) - - with Vertical(): - with Container(id="stats_container"): - with Horizontal(id="metrics_row"): - yield Static( - "📊 Connections: 0", id="conn_metric", classes="metric" - ) - yield Static("⚡ Active: 0", id="active_metric", classes="metric") - yield Static( - "👂 Listening: 0", id="listen_metric", classes="metric" - ) - yield Static( - "🔥 Bandwidth: 0 B/s (all)", - id="bandwidth_metric", - classes="metric", - ) - - with Container(id="filter_container"): - yield Input( - placeholder="🔍 Filter connections (regex supported)...", - id="filter_input", - ) - - yield DataTable(id="connections_table") - + with Vertical(id="metrics"): + with Grid(id="counts"): + for widget_id in ("total", "active", "listening", "bandwidth"): + yield Static("—", id=widget_id, classes="metric", markup=False) + yield Sparkline([], id="bandwidth_spark") + yield Input(placeholder="Filter by PID, service, address, or status (regex)", id="filter") + yield Static("Collecting connections…", id="collection_status", markup=False) + yield Static("", id="empty_state", markup=False) + yield ConnectionTable() yield Footer() def on_mount(self) -> None: - self._update_table_columns() - self._update_filter_placeholder() - table = self.query_one("#connections_table", DataTable) - - # Enable cursor to allow row selection - table.cursor_type = "row" - table.can_focus = True - - # Hide filter initially - filter_container = self.query_one("#filter_container") - filter_container.display = False - - # Refresh at regular intervals - self.timer: Timer = self.set_interval( - REFRESH_INTERVAL, self.refresh_connections - ) - self.refresh_connections() - - # Focus the table for keyboard navigation - table.focus() - - def refresh_connections(self, sort_only: bool = False) -> None: - """Refresh connection data and update the display.""" - if not sort_only: - # Fetch fresh data from system - self._fetch_connection_data() - - # Always update the table display - self._update_table_display() - - def _fetch_connection_data(self) -> None: - """Fetch connection data from the system.""" - using_root = os.geteuid() == 0 - - try: - conns = get_psutil_conns() if using_root else get_lsof_conns() - except (psutil.AccessDenied, PermissionError): - conns = get_lsof_conns() - using_root = False - - # Apply filtering if active - if self.current_filter: - import re - - try: - pattern = re.compile(self.current_filter, re.IGNORECASE) - conns = [ - c - for c in conns - if any( - pattern.search(str(c.get(field, ""))) - for field in ["friendly", "proc", "laddr", "raddr", "status"] - ) - ] - except re.error: - # Invalid regex, filter by simple string matching - filter_lower = self.current_filter.lower() - conns = [ - c - for c in conns - if any( - filter_lower in str(c.get(field, "")).lower() - for field in ["friendly", "proc", "laddr", "raddr", "status"] - ) - ] - - # Apply sorting - if self.sort_mode == "status": - conns.sort(key=lambda x: x["status"]) - elif self.sort_mode == "process": - conns.sort(key=lambda x: x["friendly"].lower()) - - self.filtered_connections = conns - - # Update app title with data source - source_name = "psutil" if using_root else "lsof" - self.title = f"Netshow ({source_name})" - - def _update_table_display(self) -> None: - """Update the table display with current connection data.""" - table = self.query_one("#connections_table", DataTable) - conns = self.filtered_connections - - # Capture current scroll offset & cursor row for restoration - row_offset, col_offset = getattr(table, "scroll_offset", (0, 0)) - cursor_row = getattr(table, "cursor_row", 0) - - # Check if we can optimize by replacing rows instead of clearing - can_optimize = ( - table.row_count == len(conns) and table.row_count > 0 and len(conns) > 100 - ) # Only optimize for large datasets - - if can_optimize: - # Try to replace existing rows to avoid flicker - try: - for i, c in enumerate(conns): - if i >= table.row_count: - break - - status_icon = self._get_status_icon(c["status"]) - speed_indicator = self._get_speed_indicator(c) - status_text = ( - f"{status_icon} {c['status']}" if status_icon else c["status"] - ) - new_row = [ - c["pid"], - c["friendly"], - c["proc"], - c["laddr"], - c["raddr"], - status_text, - speed_indicator, - ] - - # Get the row key for the i-th row - row_keys = list(table.rows.keys()) - if i < len(row_keys): - row_key = row_keys[i] - # Verify the row key is valid before updating - if row_key in table.rows: - columns = list(table.columns.keys()) - if len(columns) >= 7: - table.update_cell(row_key, columns[0], new_row[0]) - table.update_cell(row_key, columns[1], new_row[1]) - table.update_cell(row_key, columns[2], new_row[2]) - table.update_cell(row_key, columns[3], new_row[3]) - table.update_cell(row_key, columns[4], new_row[4]) - table.update_cell(row_key, columns[5], new_row[5]) - table.update_cell(row_key, columns[6], new_row[6]) - else: - # Row key invalid, fall back to full rebuild - raise ValueError("Invalid row key, falling back to rebuild") - except Exception: - # If optimization fails, fall back to full rebuild - can_optimize = False - - if not can_optimize: - # Fall back to clear and rebuild for smaller datasets or size changes - table.clear() - for c in conns: - status_icon = self._get_status_icon(c["status"]) - speed_indicator = self._get_speed_indicator(c) - status_text = ( - f"{status_icon} {c['status']}" if status_icon else c["status"] - ) - table.add_row( - c["pid"], - c["friendly"], - c["proc"], - c["laddr"], - c["raddr"], - status_text, - speed_indicator, - ) - - # Count connection types for stats - established = listening = time_wait = 0 - for c in conns: - status = c["status"] - if status == "ESTABLISHED": - established += 1 - elif status == "LISTEN": - listening += 1 - elif status == "TIME_WAIT": - time_wait += 1 - - # Update reactive stats - self.total_connections = len(conns) - self.active_connections = established - self.listening_connections = listening - - # Update metrics display - self._update_metrics_display(len(conns), established, listening) - - # Restore scroll & cursor position - if hasattr(table, "scroll_to"): - table.scroll_to(row_offset, col_offset) - if cursor_row < table.row_count and hasattr(table, "cursor_coordinate"): - table.cursor_coordinate = (cursor_row, 0) # type: ignore - - def _get_status_icon(self, status: str) -> str: - """Get an appropriate icon for connection status.""" - if not self.show_emojis: - return "" - status_icons = { - "ESTABLISHED": "🚀", # More exciting! - "LISTEN": "👂", - "TIME_WAIT": "⏳", - "CLOSE_WAIT": "⏸️", - "SYN_SENT": "📤", - "SYN_RECV": "📥", - "FIN_WAIT1": "🔄", - "FIN_WAIT2": "🔁", - "CLOSING": "🔚", - "LAST_ACK": "🏁", - } - return status_icons.get(status, "❓") - - def _get_speed_indicator( - self, connection: Union[dict[str, str], ConnectionData] - ) -> str: - """Generate a speed indicator based on connection characteristics.""" - if not self.show_emojis: - status = connection.get("status", "") - if status == "LISTEN": - return "WAIT" - elif "WAIT" in status: - return "WAIT" - else: - return "ACTIVE" - # Placeholder until real throughput data is available - status = connection.get("status", "") - if status == "LISTEN": - return "💤" # Waiting - elif "WAIT" in status: - return "⏳" # Waiting states - else: - return "📊" # Default - - def _update_metrics_display(self, total: int, active: int, listening: int) -> None: - """Update the metrics display with current stats.""" + self.query_one(Input).display = False + self.active = True + self.timer = self.set_interval(self.interval, self.action_refresh) + self.bandwidth_timer = self.set_interval(0.5, self.sample_bandwidth) + self.set_interval(1, self.render_status) + self.action_refresh() + self.sample_bandwidth() + self.query_one(ConnectionTable).focus() + self.on_resize() + + def on_screen_suspend(self) -> None: + self.active = False + self.generation += 1 + self.pending = False + if self.timer: + self.timer.pause() + if self.bandwidth_timer: + self.bandwidth_timer.pause() + + def on_screen_resume(self) -> None: + self.active = True + if self.timer: + self.timer.resume() + self.action_refresh() + if self.bandwidth_timer: + self.bandwidth_timer.resume() + if self.is_mounted: + self.query_one(ConnectionTable).focus() + + def action_refresh(self) -> None: + if not self.active: + return + if self.collecting: + self.pending = True + return + self.collecting = True + self.collect(self.generation) + + @work(thread=True, exit_on_error=False) + def collect(self, generation: int) -> None: try: - conn_metric = self.query_one("#conn_metric", Static) - active_metric = self.query_one("#active_metric", Static) - listen_metric = self.query_one("#listen_metric", Static) - bandwidth_metric = self.query_one("#bandwidth_metric", Static) - - # Emoji prefixes based on toggle state - conn_prefix = "📊 " if self.show_emojis else "" - active_prefix = "⚡ " if self.show_emojis else "" - listen_prefix = "👂 " if self.show_emojis else "" - bandwidth_prefix = "🔥 " if self.show_emojis else "" - - # Get network I/O stats for bandwidth - try: - if self.selected_interface == "all": - net_io = psutil.net_io_counters() - interface_label = "all" - else: - net_io_per_nic = psutil.net_io_counters(pernic=True) - net_io_temp = net_io_per_nic.get(self.selected_interface) - interface_label = self.selected_interface - if not net_io_temp: - # Interface not found, fallback to all - interface_label = "all" - self.selected_interface = "all" - else: - net_io = net_io_temp - - current_time = time.time() - if ( - self.last_network_stats is not None - and self.last_stats_time is not None - ): - time_diff = max( - 0.1, current_time - self.last_stats_time - ) # Avoid division by zero - bytes_sent_diff = max( - 0, net_io.bytes_sent - self.last_network_stats.bytes_sent - ) - bytes_recv_diff = max( - 0, net_io.bytes_recv - self.last_network_stats.bytes_recv - ) - total_bandwidth = (bytes_sent_diff + bytes_recv_diff) / time_diff - bandwidth_text = f"{self._format_bytes(int(total_bandwidth))}/s ({interface_label})" - else: - bandwidth_text = f"0 B/s ({interface_label})" - self.last_network_stats = net_io - self.last_stats_time = current_time - except (AttributeError, OSError): - bandwidth_text = "N/A" - - conn_metric.update(f"{conn_prefix}Connections: {total}") - active_metric.update(f"{active_prefix}Active: {active}") - listen_metric.update(f"{listen_prefix}Listening: {listening}") - bandwidth_metric.update(f"{bandwidth_prefix}Bandwidth: {bandwidth_text}") + result = self.collector() except Exception: - pass # Gracefully handle missing widgets - - def _format_bytes(self, bytes_val: int) -> str: - """Format bytes into human readable format.""" - if bytes_val == 0: - return "0 B" - - for unit in ["B", "KB", "MB", "GB"]: - if bytes_val < 1024.0: - if unit == "B" or bytes_val < 10: - return f"{int(bytes_val)} {unit}" - else: - return f"{bytes_val:.1f} {unit}" - bytes_val = int(bytes_val / 1024.0) - return f"{bytes_val:.1f} TB" - - def _get_selected_connection_data(self, row_data: tuple) -> ConnectionData: - """Convert row data tuple to ConnectionData dict.""" - # Extract status without icon (remove first 2 characters: icon + space) - status_with_icon = row_data[5] - clean_status = ( - status_with_icon[2:] if len(status_with_icon) > 2 else status_with_icon + # One explicit worker boundary: preserve the UI and log unexpected failures. + log.exception("Unexpected connection collection failure") + result = CollectionResult(error="Unexpected collection failure; try refreshing.") + self.post_message(self.Collected(generation, result)) + + def on_connections_screen_collected(self, message: Collected) -> None: + self.collecting = False + if message.generation == self.generation and self.active: + self.result = message.result + if not message.result.error: + self.snapshot = message.result.connections + self.last_success = time.monotonic() + self.render_connections() + if self.active and (self.pending or message.generation != self.generation): + self.pending = False + self.action_refresh() + + def render_connections(self) -> None: + self.filtered_connections, self.invalid_regex = select_connections( + self.snapshot, self.query_text, self.sort_mode ) - - return ConnectionData( - pid=row_data[0], - friendly=row_data[1], - proc=row_data[2], - laddr=row_data[3], - raddr=row_data[4], - status=clean_status, + self.query_one(ConnectionTable).display_connections( + self.filtered_connections, self.show_emojis, self.expand_ipv6 ) - - def on_data_table_row_highlighted(self, event: DataTable.RowHighlighted) -> None: - """Handle row highlighting in the DataTable.""" - # This event fires when cursor moves over rows - pass - - async def on_data_table_row_selected(self, event: DataTable.RowSelected) -> None: - """Handle row selection in the DataTable.""" - # Pause refreshing while viewing details - self.timer.pause() - - # Get the selected row's data - table = self.query_one("#connections_table", DataTable) - row_data = table.get_row(event.row_key) - selected_data = self._get_selected_connection_data(tuple(row_data)) - - # Push the detail screen - await self.push_screen(ConnectionDetailScreen(selected_data)) - - async def on_screen_resume(self) -> None: - """Called when this screen is resumed (after popping another screen).""" - # Resume refreshing when returning from detail view - self.timer.resume() - self.refresh_connections() - - # Re-focus the table for keyboard navigation - table = self.query_one("#connections_table", DataTable) - table.focus() - - async def action_toggle_filter(self) -> None: - """Toggle the filter input visibility.""" - filter_container = self.query_one("#filter_container") - filter_input = self.query_one("#filter_input", Input) - - if filter_container.display: - filter_container.display = False - self.show_filter = False - # Return focus to the DataTable when filter is closed - table = self.query_one("#connections_table", DataTable) - table.focus() - else: - filter_container.display = True - self.show_filter = True - filter_input.focus() - - async def action_search(self) -> None: - """Focus the search input for quick access.""" - if not self.show_filter: - await self.action_toggle_filter() - else: - filter_input = self.query_one("#filter_input", Input) - filter_input.focus() - - def action_sort_by_status(self) -> None: - """Sort connections by status.""" - self.sort_mode = "status" if self.sort_mode != "status" else "default" - # Re-sort existing data and update display (no need to fetch fresh data) - if self.filtered_connections: - if self.sort_mode == "status": - self.filtered_connections.sort(key=lambda x: x["status"]) - else: - # Default sort - could add timestamp-based sorting here - pass - self._update_table_display() - else: - self.refresh_connections() - - def action_sort_by_process(self) -> None: - """Sort connections by process name.""" - self.sort_mode = "process" if self.sort_mode != "process" else "default" - # Re-sort existing data and update display (no need to fetch fresh data) - if self.filtered_connections: - if self.sort_mode == "process": - self.filtered_connections.sort(key=lambda x: x["friendly"].lower()) - else: - # Default sort - could add timestamp-based sorting here - pass - self._update_table_display() + self.render_metrics() + self.render_status() + self.refresh_bindings() + + def render_metrics(self) -> None: + total = len(self.snapshot) + count = f"{len(self.filtered_connections)} / {total}" if self.query_text else str(total) + for widget_id, symbol, label, value in ( + ("total", "📊", "Connections", count), + ("active", "⚡", "Active", sum(c.status == "ESTABLISHED" for c in self.snapshot)), + ("listening", "👂", "Listening", sum(c.status == "LISTEN" for c in self.snapshot)), + ): + prefix = f"{symbol} " if self.show_emojis else "" + self.query_one(f"#{widget_id}", Static).update(f"{prefix}{label}: {value}") + sample = self.sample + text = ( + f"RX {format_bytes(sample.received)}/s TX {format_bytes(sample.sent)}/s" + if sample.available + else "Bandwidth unavailable" + ) + bandwidth = self.query_one("#bandwidth", Static) + prefix = "🔥 " if self.show_emojis else "" + bandwidth.border_title = literal(f"{prefix}Bandwidth · {sample.interface}") + bandwidth.update(literal(text)) + + def render_status(self) -> None: + if not self.is_mounted: + return + status = "Collecting connections…" + if self.last_success is not None: + age = int(time.monotonic() - self.last_success) + status = f"{self.result.source} · Updated {age}s ago · Sort: {self.sort_mode}" + if self.result.limited: + status += " · Limited visibility" + if self.result.error: + status = ("Stale data · " if self.last_success is not None else "") + self.result.error + if self.query_text: + status += " · Filter active" + if self.invalid_regex: + status += " · Invalid regex: matching literal text" + self.query_one("#collection_status", Static).update(literal(status)) + empty = self.query_one("#empty_state", Static) + empty.display = not self.filtered_connections + if self.result.error and self.last_success is None: + empty.update("Connections unavailable. Press Ctrl+R to retry.") + elif self.last_success is None: + empty.update("Loading TCP connections…") + elif self.query_text: + empty.update("No connections match this filter.") else: - self.refresh_connections() - - def action_toggle_interface(self) -> None: - """Cycle through available network interfaces.""" - current_index = 0 - try: - current_index = self.available_interfaces.index(self.selected_interface) - except ValueError: - pass - - next_index = (current_index + 1) % len(self.available_interfaces) - self.selected_interface = self.available_interfaces[next_index] + empty.update("No visible TCP connections.") + + def sample_bandwidth(self) -> None: + if self.active and not self.sampling: + self.sampling = True + self.read_bandwidth(self.selected_interface) + + @work(thread=True, exit_on_error=False) + def read_bandwidth(self, interface: str) -> None: + sample = self.sampler.sample(interface) + self.post_message( + self.Sampled(sample, tuple(self.sampler.history), list(self.sampler.interfaces)) + ) - # Reset bandwidth stats when changing interface - self.last_network_stats = None - self.last_stats_time = None - self.refresh_connections() + def on_connections_screen_sampled(self, message: Sampled) -> None: + self.sampling = False + self.interfaces = message.interfaces + # A user may have switched interfaces while the worker was running. + if ( + message.sample.interface != self.selected_interface + and self.selected_interface in self.interfaces + ): + return + self.sample = message.sample + self.selected_interface = message.sample.interface + self.query_one(Sparkline).data = message.history + self.render_metrics() + + def on_resize(self) -> None: + if self.is_mounted: + self.set_class(self.size.width < 100, "compact") + self.query_one(Sparkline).display = self.size.width >= 80 + + def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | None: + if not self.is_mounted: + return False + if action == "close_filter": + return self.query_one(Input).display + if isinstance(self.focused, Input) and action not in ("search", "refresh"): + return False + if action == "terminate": + selected = self.query_one(ConnectionTable).selected + return selected is not None and control_unavailable(selected.identity) is None + return True + + def action_search(self) -> None: + field = self.query_one(Input) + field.display = True + field.focus() + + def action_close_filter(self) -> None: + self.query_one(Input).display = False + self.query_one(ConnectionTable).focus() + + def action_toggle_filter(self) -> None: + if self.query_one(Input).display: + self.action_close_filter() + else: + self.action_search() - # Update metrics display immediately - self._update_metrics_display( - self.total_connections, self.active_connections, self.listening_connections + def on_input_changed(self, event: Input.Changed) -> None: + self.query_text = event.value + if self.debounce: + self.debounce.stop() + self.debounce = self.set_timer(0.15, self.render_connections) + + def on_input_submitted(self) -> None: + self.query_one(ConnectionTable).focus() + + def action_sort_status(self) -> None: + self.sort_mode = "default" if self.sort_mode == "status" else "status" + self.render_connections() + + def action_sort_process(self) -> None: + self.sort_mode = "default" if self.sort_mode == "process" else "process" + self.render_connections() + + def action_interface(self) -> None: + index = ( + self.interfaces.index(self.selected_interface) + if self.selected_interface in self.interfaces + else 0 ) + self.selected_interface = self.interfaces[(index + 1) % len(self.interfaces)] + self.sample_bandwidth() - def action_toggle_emojis(self) -> None: - """Toggle emoji display on/off.""" + def action_emojis(self) -> None: self.show_emojis = not self.show_emojis + self.render_connections() + + def action_ipv6(self) -> None: + self.expand_ipv6 = not self.expand_ipv6 + self.render_connections() + + def on_data_table_row_highlighted(self) -> None: + self.refresh_bindings() + + def on_data_table_row_selected(self) -> None: + selected = self.query_one(ConnectionTable).selected + if selected: + self.app.push_screen(ConnectionDetailScreen(selected)) + + def action_terminate(self) -> None: + selected = self.query_one(ConnectionTable).selected + if selected and control_unavailable(selected.identity) is None: + self.app.push_screen(TerminateScreen(selected)) + + +class NetshowApp(App[None]): + CSS_PATH = "netshow.tcss" + TITLE = "Netshow" + BINDINGS = [("q", "quit", "Quit"), ("?", "help", "Help")] + + def __init__( + self, + interval: float = 3, + no_colors: bool = False, + collector: Callable[[], CollectionResult] = collect_connections, + ) -> None: + self.no_colors = no_colors + self.monochrome = Monochrome() + super().__init__() + self.register_theme(SELENIZED_DARK) + self.theme = SELENIZED_DARK.name + self.connections = ConnectionsScreen(interval, collector) - # Update table columns and refresh display - self._update_table_columns() - self._update_filter_placeholder() - - # Force a complete refresh to update all UI elements - self.refresh_connections() + def on_mount(self) -> None: + self.push_screen(self.connections) - # Update metrics display immediately - self._update_metrics_display( - self.total_connections, self.active_connections, self.listening_connections - ) + def get_line_filters(self) -> Sequence[LineFilter]: + filters = list(super().get_line_filters()) + return [*filters, self.monochrome] if self.no_colors else filters - def _update_table_columns(self) -> None: - """Update table column headers based on emoji setting.""" - table = self.query_one("#connections_table", DataTable) - - # Clear existing columns if any - table.clear(columns=True) - - if self.show_emojis: - table.add_columns( - "🆔 PID", - "🔖 Service", - "⚙️ Process", - "🏠 Local Address", - "🌐 Remote Address", - "📊 Status", - "⚡ Speed", - ) + def action_help(self) -> None: + if self.screen.query("HelpPanel"): + self.action_hide_help_panel() else: - table.add_columns( - "PID", - "Service", - "Process", - "Local Address", - "Remote Address", - "Status", - "Speed", + self.action_show_help_panel() + + def get_system_commands(self, screen: Screen[object]) -> Iterable[SystemCommand]: + yield from super().get_system_commands(screen) + if isinstance(screen, ConnectionsScreen): + for title, description, action in ( + ("Refresh connections", "Collect a fresh TCP snapshot", screen.action_refresh), + ( + "Filter connections", + "Search PID, service, address, or status", + screen.action_search, + ), + ("Sort by process", "Toggle process ordering", screen.action_sort_process), + ("Sort by status", "Toggle TCP status ordering", screen.action_sort_status), + ("Network interface", "Cycle the bandwidth interface", screen.action_interface), + ("Toggle symbols", "Show or hide status symbols", screen.action_emojis), + ("Expand IPv6", "Toggle full IPv6 addresses", screen.action_ipv6), + ): + yield SystemCommand(title, description, action) + if isinstance(screen, (ConnectionsScreen, ConnectionDetailScreen)) and screen.check_action( + "terminate", () + ): + yield SystemCommand( + "Terminate process", + "Confirm termination of the selected process", + screen.action_terminate, ) - - def _get_filter_placeholder(self) -> str: - """Get filter input placeholder text based on emoji setting.""" - if self.show_emojis: - return "🔍 Filter connections (regex supported)..." - else: - return "Filter connections (regex supported)..." - - def _update_filter_placeholder(self) -> None: - """Update filter input placeholder.""" - try: - filter_input = self.query_one("#filter_input", Input) - filter_input.placeholder = self._get_filter_placeholder() - except Exception: - pass - - def on_input_changed(self, event: Input.Changed) -> None: - """Handle filter input changes.""" - if event.input.id == "filter_input": - self.current_filter = event.value - # Cancel existing debounce timer if it exists - if self.debounce_timer is not None: - self.debounce_timer.stop() - # Create new debounce timer - self.debounce_timer = self.set_timer(0.5, self.refresh_connections) - - -if __name__ == "__main__": - NetshowApp().run() diff --git a/src/netshow/bandwidth.py b/src/netshow/bandwidth.py new file mode 100644 index 0000000..6ebd805 --- /dev/null +++ b/src/netshow/bandwidth.py @@ -0,0 +1,53 @@ +"""One owner for interface counters and their monotonic sampling baseline.""" + +import time +from collections import deque + +import psutil + +from .models import BandwidthSample + + +class BandwidthSampler: + def __init__(self) -> None: + self.interfaces = ["all"] + self.history: deque[float] = deque(maxlen=60) + self.previous: tuple[str, float, int, int] | None = None + + def sample(self, interface: str) -> BandwidthSample: + try: + counters = psutil.net_io_counters(pernic=True) + except (OSError, psutil.Error): + self.previous = None + self.history.clear() + return BandwidthSample(interface, available=False) + self.interfaces = ["all", *sorted(counters)] + if interface not in self.interfaces: + interface = "all" + if not counters: + self.previous = None + self.history.clear() + return BandwidthSample(interface, available=False) + selected = list(counters.values()) if interface == "all" else [counters[interface]] + return self.observe( + interface, + time.monotonic(), + sum(c.bytes_recv for c in selected), + sum(c.bytes_sent for c in selected), + ) + + def observe(self, interface: str, now: float, received: int, sent: int) -> BandwidthSample: + previous = self.previous + self.previous = (interface, now, received, sent) + if previous is None or previous[0] != interface: + self.history.clear() + return BandwidthSample(interface) + elapsed = now - previous[1] + if elapsed <= 0 or received < previous[2] or sent < previous[3]: + self.history.clear() + return BandwidthSample(interface) + sample = BandwidthSample( + interface, (received - previous[2]) / elapsed, (sent - previous[3]) / elapsed + ) + self.history.append(sample.received + sample.sent) + return sample diff --git a/src/netshow/cli.py b/src/netshow/cli.py index ae5dee5..94510f9 100644 --- a/src/netshow/cli.py +++ b/src/netshow/cli.py @@ -1,16 +1,35 @@ -"""CLI entry point for NetShow.""" +"""Command-line entry point.""" -import sys +import argparse +import math +import os +from . import __version__ from .app import NetshowApp +def positive_interval(value: str) -> float: + try: + interval = float(value) + except ValueError as error: + raise argparse.ArgumentTypeError("interval must be a positive number") from error + if not math.isfinite(interval) or interval <= 0: + raise argparse.ArgumentTypeError("interval must be finite and greater than zero") + return interval + + def main() -> None: - """Main CLI entry point.""" + parser = argparse.ArgumentParser(description="Interactive TCP connection and process monitor") + parser.add_argument("--interval", type=positive_interval, default=3.0, metavar="SECONDS") + parser.add_argument("--no-colors", action="store_true", help="use monochrome rendering") + parser.add_argument("--version", action="version", version=f"netshow {__version__}") + args = parser.parse_args() try: - NetshowApp().run() + NetshowApp( + interval=args.interval, no_colors=args.no_colors or bool(os.getenv("NO_COLOR")) + ).run() except KeyboardInterrupt: - sys.exit(0) + pass if __name__ == "__main__": diff --git a/src/netshow/collectors.py b/src/netshow/collectors.py new file mode 100644 index 0000000..6390d62 --- /dev/null +++ b/src/netshow/collectors.py @@ -0,0 +1,166 @@ +"""TCP collection with explicit source, visibility, and failure information.""" + +import os +import re +import subprocess + +import psutil + +from .helpers import get_friendly_name +from .models import CollectionResult, Connection, ProcessIdentity + + +def process_metadata( + pid: int | None, fallback: str = "-" +) -> tuple[str, str, ProcessIdentity | None]: + if pid is None: + return fallback, fallback, None + name, command, identity = fallback, "", None + try: + proc = psutil.Process(pid) + identity = ProcessIdentity(pid, proc.create_time()) + with proc.oneshot(): + try: + name = proc.name() + except psutil.AccessDenied: + pass + try: + command = " ".join(proc.cmdline()) + except psutil.AccessDenied: + pass + if not proc.is_running(): + identity = None + except (psutil.Error, OSError): + identity = None + return name, get_friendly_name(name, pid, command), identity + + +def endpoint(value: tuple[str, int] | tuple[()]) -> str: + if not value: + return "" + host, port = value + return f"[{host}]:{port}" if ":" in host else f"{host}:{port}" + + +def collect_psutil() -> tuple[Connection, ...]: + metadata: dict[int | None, tuple[str, str, ProcessIdentity | None]] = {} + connections = [] + for socket in psutil.net_connections(kind="tcp"): + pid = socket.pid + if pid not in metadata: + metadata[pid] = process_metadata(pid) + name, friendly, identity = metadata[pid] + connections.append( + Connection( + pid, + name, + friendly, + endpoint(socket.laddr), + endpoint(socket.raddr), + socket.status, + identity, + socket.fd, + ) + ) + return tuple(connections) + + +def parse_lsof(output: str) -> tuple[Connection, ...]: + """Parse NUL-delimited -F output. Newlines delimit process/file records.""" + pid: int | None = None + name = "-" + fields: dict[str, str] = {} + connections = [] + + def flush() -> None: + if pid is None or not fields.get("n"): + return + local, _, remote = fields["n"].partition("->") + descriptor = re.match(r"\d+", fields.get("f", "")) + connections.append( + Connection( + pid, + name, + name, + local, + remote, + fields.get("state", "UNKNOWN"), + fd=int(descriptor[0]) if descriptor else -1, + ) + ) + + for raw in output.split("\0"): + field = raw.lstrip("\n") + if not field: + continue + tag, value = field[0], field[1:] + if tag in ("p", "f"): + flush() + fields = {} + if tag == "p": + pid = int(value) if value.isdigit() else None + name = "-" + elif tag == "c": + name = value + elif tag == "T" and value.startswith("ST="): + fields["state"] = value[3:] + else: + fields[tag] = value + flush() + return tuple(connections) + + +def collect_lsof() -> CollectionResult: + try: + result = subprocess.run( + ["lsof", "-nP", "-iTCP", "-F0pcfnT"], + capture_output=True, + text=True, + timeout=5, + check=False, + ) + except FileNotFoundError: + return CollectionResult(source="lsof", error="lsof is not installed") + except subprocess.TimeoutExpired: + return CollectionResult(source="lsof", error="lsof timed out after 5 seconds") + except OSError as error: + return CollectionResult(source="lsof", error=f"lsof unavailable: {error}") + # lsof uses 1 for no matches; stderr distinguishes failures from an empty result. + if result.returncode not in (0, 1) or (result.stderr.strip() and not result.stdout): + return CollectionResult(source="lsof", error=result.stderr.strip() or "lsof failed") + parsed = parse_lsof(result.stdout) + if result.stdout.strip() and not parsed: + return CollectionResult(source="lsof", error="Unable to parse lsof TCP records") + metadata: dict[int | None, tuple[str, str, ProcessIdentity | None]] = {} + connections = [] + for connection in parsed: + if connection.pid not in metadata: + metadata[connection.pid] = process_metadata(connection.pid, connection.process) + name, friendly, identity = metadata[connection.pid] + connections.append( + Connection( + connection.pid, + name, + friendly, + connection.local, + connection.remote, + connection.status, + identity, + connection.fd, + ) + ) + return CollectionResult( + tuple(connections), "lsof", limited=os.geteuid() != 0 or bool(result.stderr) + ) + + +def collect_connections() -> CollectionResult: + try: + return CollectionResult(collect_psutil(), limited=os.geteuid() != 0) + except (psutil.AccessDenied, PermissionError): + result = collect_lsof() + if result.error: + return CollectionResult(source="lsof", error=f"psutil access denied; {result.error}") + return result + except (OSError, psutil.Error) as error: + return CollectionResult(error=f"Connection collection failed: {error}") diff --git a/src/netshow/connection_table.py b/src/netshow/connection_table.py new file mode 100644 index 0000000..9f10b87 --- /dev/null +++ b/src/netshow/connection_table.py @@ -0,0 +1,89 @@ +"""Incremental table updates with selection anchored to connection identity.""" + +from dataclasses import dataclass + +from rich.text import Text +from textual.widgets import DataTable + +from .models import Connection +from .presentation import STATUS_ICONS, address, literal + + +@dataclass(frozen=True) +class ProcessCell: + connection: Connection + + def __rich__(self) -> str: + return str(self.connection.pid) if self.connection.pid is not None else "—" + + +class ConnectionTable(DataTable[Text | ProcessCell]): + HELP = "Select a connection with the arrow keys. Enter opens details; k offers process termination." + + def __init__(self) -> None: + super().__init__(id="connections_table", cursor_type="row", zebra_stripes=True) + self.records: dict[str, Connection] = {} + self.rendered: dict[str, tuple[Text | ProcessCell, ...]] = {} + self.order: list[str] = [] + + def on_mount(self) -> None: + for key, label, width in ( + ("pid", "PID", 7), + ("friendly", "Service", 22), + ("process", "Process", 16), + ("local", "Local address", 22), + ("remote", "Remote address", 22), + ("status", "Status", 14), + ): + self.add_column(label, key=key, width=width) + + @property + def selected(self) -> Connection | None: + if not self.row_count: + return None + row_key, _ = self.coordinate_to_cell_key(self.cursor_coordinate) + return self.records.get(str(row_key.value)) + + def display_connections( + self, connections: list[Connection], emojis: bool, expanded: bool + ) -> None: + selected = self.selected + old_cursor = self.cursor_row + offset = self.scroll_offset + records = {c.key: c for c in connections} + order = list(records) + columns = ("pid", "friendly", "process", "local", "remote", "status") + with self.app.batch_update(): + for key in self.records.keys() - records.keys(): + self.remove_row(key) + self.rendered.pop(key, None) + for key, connection in records.items(): + icon = STATUS_ICONS.get(connection.status, "·") + " " if emojis else "" + row: tuple[Text | ProcessCell, ...] = ( + ProcessCell(connection), + Text(literal(connection.friendly)), + Text(literal(connection.process)), + Text(literal(address(connection.local, expanded))), + Text(literal(address(connection.remote, expanded))), + Text(icon + literal(connection.status)), + ) + if key not in self.records: + self.add_row(*row, key=key) + else: + for column, old, new in zip(columns, self.rendered[key], row, strict=True): + if old != new: + self.update_cell(key, column, new) + self.rendered[key] = row + if order != self.order: + ranks = {key: index for index, key in enumerate(order)} + self.sort("pid", key=lambda cell: ranks[cell.connection.key]) + self.records = records + self.order = order + if order: + index = ( + self.get_row_index(selected.key) + if selected and selected.key in records + else min(old_cursor, len(order) - 1) + ) + self.move_cursor(row=index, animate=False, scroll=False) + self.scroll_to(x=offset.x, y=offset.y, animate=False, force=True) diff --git a/src/netshow/detail_screen.py b/src/netshow/detail_screen.py index 3de2479..56b5b22 100644 --- a/src/netshow/detail_screen.py +++ b/src/netshow/detail_screen.py @@ -1,223 +1,168 @@ -from typing import Optional +"""Responsive process inspection with a CPU baseline that survives refreshes.""" -import psutil +from textual import work from textual.app import ComposeResult -from textual.containers import Container, Horizontal, ScrollableContainer +from textual.containers import Horizontal, Vertical, VerticalScroll +from textual.message import Message from textual.screen import Screen -from textual.widgets import Button, Header, Static +from textual.timer import Timer +from textual.widgets import Button, Footer, Header, Static -from .types_and_constants import ConnectionData +from .models import Connection, ProcessDetails +from .presentation import literal +from .processes import ProcessInspector, control_unavailable +from .terminate_screen import TerminateScreen -class ConnectionDetailScreen(Screen): - """Screen for displaying detailed information about a selected connection.""" +class DetailFields(Vertical): + """Aligned labels and wrapping values that can update without rebuilding the view.""" - BINDINGS = [("escape", "app.pop_screen", "Back to connections")] + def __init__(self, fields: tuple[tuple[str, str], ...], *, id: str) -> None: + super().__init__(id=id) + self.fields = fields - def __init__(self, connection_data: ConnectionData): + def compose(self) -> ComposeResult: + for index, (label, value) in enumerate(self.fields): + with Horizontal(classes="detail_field"): + yield Static(label, classes="detail_label", markup=False) + yield Static( + literal(value), id=f"value_{index}", classes="detail_value", markup=False + ) + + def update_values(self, fields: tuple[tuple[str, str], ...]) -> None: + values = dict(fields) + for index, (label, _) in enumerate(self.fields): + self.query_one(f"#value_{index}", Static).update(literal(values.get(label, "—"))) + + +class ConnectionDetailScreen(Screen[None]): + BINDINGS = [ + ("escape,left", "back", "Back"), + ("k", "terminate", "Terminate process"), + ("ctrl+r", "refresh", "Refresh"), + ] + + class Inspected(Message): + def __init__(self, details: ProcessDetails) -> None: + super().__init__() + self.details = details + + def __init__(self, connection: Connection) -> None: super().__init__() - self.connection_data = connection_data - self.proc: Optional[psutil.Process] = None - self.process_info = self._get_process_info(connection_data["pid"]) - - def _get_status_icon(self, status: str) -> str: - """Get an appropriate icon for connection status.""" - # Check if parent app has emoji toggle disabled - if hasattr(self.app, "show_emojis") and not self.app.show_emojis: - return "" - status_icons = { - "ESTABLISHED": "✅", - "LISTEN": "👂", - "TIME_WAIT": "⏳", - "CLOSE_WAIT": "⏸️", - "SYN_SENT": "📤", - "SYN_RECV": "📥", - "FIN_WAIT1": "🔄", - "FIN_WAIT2": "🔁", - "CLOSING": "🔚", - "LAST_ACK": "🏁", - } - return status_icons.get(status, "❓") - - def _get_process_info(self, pid_str: str) -> dict: - """Get additional process information if PID is available.""" - if pid_str == "-": - return {} - - try: - pid = int(pid_str) - if self.proc is None: - self.proc = psutil.Process(pid) - self.proc.cpu_percent() # Initialize CPU percent baseline - - # Type guard to ensure mypy understands proc is not None - assert self.proc is not None - - return { - "name": self.proc.name(), - "exe": self.proc.exe(), - "cmd": " ".join(self.proc.cmdline()), - "create_time": self.proc.create_time(), - "status": self.proc.status(), - "username": self.proc.username(), - "cwd": self.proc.cwd(), - "num_threads": self.proc.num_threads(), - "cpu_percent": self.proc.cpu_percent(), - "memory_percent": self.proc.memory_percent(), - "open_files": self.proc.open_files(), - "connections": self.proc.connections(), - } - except (psutil.NoSuchProcess, psutil.AccessDenied, ValueError): - return {} + self.connection = connection + self.inspector = ProcessInspector(connection.identity) + self.timer: Timer | None = None + self.busy = False + self.active = False + self.process_error: str | None = None def compose(self) -> ComposeResult: - """Compose the detail screen layout.""" - yield Header(show_clock=True) - - with ScrollableContainer(): - # Check emoji setting from parent app - show_emojis = getattr(self.app, "show_emojis", True) - title_prefix = "🔗 " if show_emojis else "" - yield Static( - f"{title_prefix}Connection Details: {self.connection_data['friendly']}", - id="detail_title", - ) - - with Horizontal(id="main_content"): - with Container(id="connection_details"): - conn_prefix = "🌐 " if show_emojis else "" - pid_prefix = "🆔 " if show_emojis else "" - proc_prefix = "⚙️ " if show_emojis else "" - friendly_prefix = "🏷️ " if show_emojis else "" - local_prefix = "🏠 " if show_emojis else "" - remote_prefix = "🌐 " if show_emojis else "" - - yield Static( - f"{conn_prefix}Connection Info", classes="detail_title" - ) - yield Static( - f"{pid_prefix}PID: {self.connection_data['pid']}", - classes="detail_item", - ) - yield Static( - f"{proc_prefix}Process: {self.connection_data['proc']}", - classes="detail_item", - ) - yield Static( - f"{friendly_prefix}Friendly Name: {self.connection_data['friendly']}", - classes="detail_item", - ) - yield Static( - f"{local_prefix}Local Address: {self.connection_data['laddr']}", - classes="detail_item", - markup=False, - ) - yield Static( - f"{remote_prefix}Remote Address: {self.connection_data['raddr']}", - classes="detail_item", - markup=False, - ) - - status = self.connection_data["status"] - status_icon = self._get_status_icon(status) - yield Static( - f"{status_icon} Status: {status}", - classes=f"detail_item status-{status}", - ) - - # Show additional process info if available - if self.process_info: - with Container(id="process_info"): - process_title_prefix = "🔧 " if show_emojis else "" - exe_prefix = "📁 " if show_emojis else "" - cmd_prefix = "💻 " if show_emojis else "" - status_prefix = "📊 " if show_emojis else "" - user_prefix = "👤 " if show_emojis else "" - cwd_prefix = "📂 " if show_emojis else "" - threads_prefix = "🧵 " if show_emojis else "" - - yield Static( - f"{process_title_prefix}Process Details", - classes="detail_title", - ) - yield Static( - f"{exe_prefix}Executable: {self.process_info.get('exe', 'N/A')}", - classes="detail_item", - ) - yield Static( - f"{cmd_prefix}Command Line: {self.process_info.get('cmd', 'N/A')}", - classes="detail_item", - ) - yield Static( - f"{status_prefix}Status: {self.process_info.get('status', 'N/A')}", - classes="detail_item", - ) - yield Static( - f"{user_prefix}User: {self.process_info.get('username', 'N/A')}", - classes="detail_item", - ) - yield Static( - f"{cwd_prefix}Working Directory: {self.process_info.get('cwd', 'N/A')}", - classes="detail_item", + yield Header() + with VerticalScroll(id="detail_scroll"): + with Vertical(id="detail_content"): + yield Static(literal(self.connection.friendly), id="detail_title", markup=False) + with Horizontal(id="detail_panels"): + with Vertical(id="connection_panel", classes="detail_panel"): + yield Static("Connection", classes="section_title") + yield DetailFields( + ( + ("PID", str(self.connection.pid or "Unavailable")), + ("Process", self.connection.process), + ("Local", self.connection.local), + ("Remote", self.connection.remote or "—"), + ("Status", self.connection.status), + ), + id="connection_info", ) - yield Static( - f"{threads_prefix}Threads: " - f"{self.process_info.get('num_threads', 'N/A')}", - classes="detail_item", - ) - - cpu_percent = self.process_info.get("cpu_percent", 0.0) - if show_emojis: - cpu_icon = ( - "🔥" - if cpu_percent > 50 - else "⚡" if cpu_percent > 10 else "💤" - ) - else: - cpu_icon = "" - cpu_prefix = f"{cpu_icon} " if cpu_icon else "" - yield Static( - f"{cpu_prefix}CPU Usage: {cpu_percent:.1f}%", - classes="detail_item", - ) - - memory_percent = self.process_info.get("memory_percent", 0.0) - memory_display = ( - f"{memory_percent:.2f}%" - if isinstance(memory_percent, (int, float)) - else "N/A" - ) - if show_emojis: - memory_icon = ( - "🚨" - if memory_percent > 80 - else "⚠️" if memory_percent > 50 else "💾" - ) - else: - memory_icon = "" - memory_prefix = f"{memory_icon} " if memory_icon else "" - yield Static( - f"{memory_prefix}Memory Usage: {memory_display}", - classes="detail_item", + with Vertical(id="process_panel", classes="detail_panel"): + yield Static("Process", classes="section_title") + yield Static("Loading process details…", id="process_status", markup=False) + yield DetailFields( + tuple( + (label, "—") + for label in ( + "Name", + "Owner", + "Executable", + "Working directory", + "Command", + "Status", + "Threads", + "Memory", + "CPU", + ) + ), + id="process_info", ) + with Horizontal(id="detail_buttons"): + yield Button("Back to connections", id="back", variant="primary") + yield Button( + "Terminate process…", + id="terminate", + variant="error", + disabled=control_unavailable(self.connection.identity) is not None, + ) + yield Footer() + + def on_mount(self) -> None: + self.set_class(self.size.width < 100, "compact") + self.timer = self.set_interval(1, self.action_refresh) + self.active = True + self.action_refresh() + + def on_resize(self) -> None: + self.set_class(self.size.width < 100, "compact") + + def on_screen_resume(self) -> None: + self.active = True + if self.timer: + self.timer.resume() + self.action_refresh() + + def on_screen_suspend(self) -> None: + self.active = False + if self.timer: + self.timer.pause() + + def action_refresh(self) -> None: + if self.active and not self.busy: + self.busy = True + self.inspect_process() + + @work(thread=True, exit_on_error=False) + def inspect_process(self) -> None: + self.post_message(self.Inspected(self.inspector.sample())) + + def on_connection_detail_screen_inspected(self, message: Inspected) -> None: + self.busy = False + self.process_error = message.details.error + status = self.query_one("#process_status", Static) + status.display = self.process_error is not None + status.update(literal(self.process_error or "")) + info = self.query_one("#process_info", DetailFields) + info.display = self.process_error is None + info.update_values(message.details.fields) + self.query_one("#terminate", Button).disabled = bool( + self.process_error or control_unavailable(self.connection.identity) + ) + self.refresh_bindings() + + def action_back(self) -> None: + self.dismiss(None) + + def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | None: + if action == "terminate": + return ( + self.process_error is None and control_unavailable(self.connection.identity) is None + ) + return True - # Network connections from this process - connections = self.process_info.get("connections", []) - if connections: - conn_count = ( - len(connections) if isinstance(connections, list) else 0 - ) - active_conn_prefix = "🌐 " if show_emojis else "" - yield Static( - f"{active_conn_prefix}Active Connections: {conn_count}", - classes="detail_item", - ) - - with Container(id="button_container"): - back_prefix = "🔙 " if show_emojis else "" - yield Button(f"{back_prefix}Back to Connections", id="back_button") + def action_terminate(self) -> None: + if self.check_action("terminate", ()): + self.app.push_screen(TerminateScreen(self.connection)) def on_button_pressed(self, event: Button.Pressed) -> None: - """Handle button press events.""" - if event.button.id == "back_button": - self.app.pop_screen() + if event.button.id == "back": + self.action_back() + elif event.button.id == "terminate": + self.action_terminate() diff --git a/src/netshow/helpers.py b/src/netshow/helpers.py index f36d127..8685e8f 100644 --- a/src/netshow/helpers.py +++ b/src/netshow/helpers.py @@ -1,134 +1,53 @@ -"""Helper functions for gathering network connections.""" +"""Friendly service names with bounded, short-lived Docker discovery.""" import re import subprocess -from functools import lru_cache -from typing import Optional +import time -import psutil - -# Friendly-name helpers STATIC_MAP = { "rapportd": "Handoff Sync Process", "IPNExtension": "Tailscale", - "Code\x20H": "VSCode", - "Adobe\x20H": "Adobe", + "Code H": "VS Code", + "Adobe H": "Adobe", } - -DOCKER_RE = re.compile(r"com\.docker", re.I) -PLEX_RE = re.compile(r"plex", re.I) +_docker_names: dict[str, str] = {} +_docker_expires = 0.0 -@lru_cache(maxsize=1) def _docker_container_lookup() -> dict[str, str]: - """Look up Docker container IDs and names.""" - try: - out = subprocess.check_output( - ["docker", "ps", "--format", "{{.ID}} {{.Names}}"], - text=True, - stderr=subprocess.DEVNULL, - ) - except Exception: - return {} - return dict(line.split(maxsplit=1) for line in out.splitlines()) - - -def get_friendly_name(proc_name: str, pid: int, cmdline: Optional[str]) -> str: - """Get a friendly name for a process.""" + global _docker_names, _docker_expires + now = time.monotonic() + if now >= _docker_expires: + try: + result = subprocess.run( + ["docker", "ps", "--format", "{{.ID}} {{.Names}}"], + capture_output=True, + text=True, + timeout=2, + check=True, + ) + _docker_names = dict( + parts + for line in result.stdout.splitlines() + if len(parts := line.split(maxsplit=1)) == 2 + ) + except (OSError, subprocess.SubprocessError): + _docker_names = {} + _docker_expires = now + 30 + return _docker_names + + +def get_friendly_name(proc_name: str, pid: int, cmdline: str | None) -> str: + """Keep the original helper interface for existing callers.""" if proc_name in STATIC_MAP: return STATIC_MAP[proc_name] - if PLEX_RE.match(proc_name): + if re.match("plex", proc_name, re.I): return "Plex Media Server" - if DOCKER_RE.match(proc_name): - cnt = len(_docker_container_lookup()) - return f"Docker Desktop ({cnt} containers)" if cnt else "Docker Desktop" - if cmdline: - for cid, cname in _docker_container_lookup().items(): - if cid in cmdline: - return f"Docker: {cname}" + if re.match(r"com\.docker", proc_name, re.I): + count = len(_docker_container_lookup()) + return f"Docker Desktop ({count} containers)" if count else "Docker Desktop" + if cmdline and re.search(r"\b[0-9a-f]{12,64}\b", cmdline): + for container_id, name in _docker_container_lookup().items(): + if container_id in cmdline: + return f"Docker: {name}" return proc_name - - -# Connection gathering helpers -def get_psutil_conns() -> list[dict[str, str]]: - """Get network connections using psutil.""" - conns = [] - for conn in psutil.net_connections(kind="tcp"): - pid = conn.pid if conn.pid else None - try: - proc = psutil.Process(pid) if pid else None - proc_name = proc.name() if proc else "-" - cmdline = " ".join(proc.cmdline()) if proc else "" - except (psutil.NoSuchProcess, psutil.AccessDenied): - proc_name, cmdline = "-", "" - conns.append( - { - "pid": str(pid) if pid else "-", - "proc": proc_name, - "friendly": get_friendly_name(proc_name, pid or 0, cmdline), - "laddr": ( - f"[{conn.laddr.ip}]:{conn.laddr.port}" - if conn.laddr and ":" in conn.laddr.ip - else f"{conn.laddr.ip}:{conn.laddr.port}" if conn.laddr else "" - ), - "raddr": ( - f"[{conn.raddr.ip}]:{conn.raddr.port}" - if conn.raddr and ":" in conn.raddr.ip - else f"{conn.raddr.ip}:{conn.raddr.port}" if conn.raddr else "" - ), - "status": conn.status, - } - ) - return conns - - -def get_lsof_conns() -> list[dict[str, str]]: - """Get network connections using lsof.""" - try: - output = subprocess.check_output( - ["lsof", "-nP", "-iTCP", "-sTCP:ESTABLISHED,LISTEN"], - text=True, - stderr=subprocess.DEVNULL, - ) - except FileNotFoundError: - return [] - except subprocess.CalledProcessError as e: - # lsof returns exit code 1 in some environments even with valid output - # If we have output, proceed with parsing; otherwise return empty list - if e.output: - output = e.output - else: - return [] - - conns = [] - pattern = re.compile( - r"^(?P\S+)\s+(?P\d+)\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+TCP\s+(?P.+)$" - ) - for line in output.splitlines()[1:]: - m = pattern.match(line) - if not m: - continue - proc_name = m["proc"] - pid = int(m["pid"]) - addr_field = m["addr"] - status = "" - if "(" in addr_field: - addr_field, status = addr_field.rsplit("(", 1) - status = status.rstrip(")") - laddr, raddr = (addr_field.split("->", 1) + [""])[:2] - laddr, raddr = laddr.strip(), raddr.strip() - try: - cmdline = " ".join(psutil.Process(pid).cmdline()) - except (psutil.NoSuchProcess, psutil.AccessDenied): - cmdline = "" - conns.append( - { - "pid": str(pid), - "proc": proc_name, - "friendly": get_friendly_name(proc_name, pid, cmdline), - "laddr": laddr, - "raddr": raddr, - "status": status, - } - ) - return conns diff --git a/src/netshow/models.py b/src/netshow/models.py new file mode 100644 index 0000000..795adf9 --- /dev/null +++ b/src/netshow/models.py @@ -0,0 +1,49 @@ +"""Data shared by collectors and the UI; no rendered values live here.""" + +from dataclasses import dataclass + + +@dataclass(frozen=True) +class ProcessIdentity: + pid: int + created: float + + +@dataclass(frozen=True) +class Connection: + pid: int | None + process: str + friendly: str + local: str + remote: str + status: str + identity: ProcessIdentity | None = None + fd: int = -1 + + @property + def key(self) -> str: + # Status can change without the socket or process changing. + return repr((self.pid, self.identity, self.fd, self.local, self.remote)) + + +@dataclass(frozen=True) +class CollectionResult: + connections: tuple[Connection, ...] = () + source: str = "psutil" + limited: bool = False + error: str | None = None + + +@dataclass(frozen=True) +class BandwidthSample: + interface: str = "all" + received: float = 0 + sent: float = 0 + available: bool = True + + +@dataclass(frozen=True) +class ProcessDetails: + identity: ProcessIdentity | None + fields: tuple[tuple[str, str], ...] + error: str | None = None diff --git a/src/netshow/netshow.tcss b/src/netshow/netshow.tcss new file mode 100644 index 0000000..b050d9e --- /dev/null +++ b/src/netshow/netshow.tcss @@ -0,0 +1,235 @@ +Screen { + background: $background; + color: $foreground; +} + +Header { + background: $surface; + color: $text; + text-style: bold; +} + +Footer { + background: $surface; +} + +#metrics { + height: auto; + background: $background; + padding: 0 1; + align-horizontal: right; +} + +#counts { + height: auto; + min-height: 3; + grid-size: 4; + grid-columns: 2fr 1.3fr 1.6fr 3.5fr; + grid-rows: auto; + grid-gutter: 0 1; +} + +#counts .metric { + width: 1fr; + height: auto; + min-height: 3; + background: $panel; + color: $text; + border: solid $primary; + border-title-color: $text; + border-title-style: bold; + border-title-align: center; + padding: 0; + text-style: bold; + content-align: center middle; +} + +#counts #active { border: solid $success; } +#counts #listening { border: solid $secondary; } +#counts #bandwidth { border: solid $warning; } + +#bandwidth_spark { + width: 36; + max-width: 100%; + height: 1; + padding: 0 1; +} + +#bandwidth_spark > .sparkline--max-color { color: $warning; } +#bandwidth_spark > .sparkline--min-color { color: $primary; } + +.compact #counts { + min-height: 6; + grid-size: 3; + grid-columns: 1.2fr 1fr 1.2fr; + grid-rows: auto auto; +} + +.compact #bandwidth { column-span: 3; } + +#filter { + margin: 0 1; + height: 3; + background: $surface; + color: $text; + border: solid $accent; +} + +#filter:focus { border: solid $primary; } + +#collection_status { + height: auto; + padding: 0 1; + color: $text-muted; + background: $surface; +} + +#empty_state { + height: auto; + padding: 1 2; + color: $text-muted; +} + +ConnectionTable { + height: 1fr; + background: $background; + color: $foreground; + background-tint: transparent; + scrollbar-size: 1 1; +} + +ConnectionTable > .datatable--header { + background: $surface; + color: $text; + text-style: bold; + background-tint: transparent; +} + +ConnectionTable > .datatable--even-row { background: $background; } +ConnectionTable > .datatable--odd-row { background: $surface 45%; } + +#detail_scroll { + height: 1fr; + padding: 1 2; + align: center middle; +} + +#detail_content { + height: auto; + width: 100%; + max-width: 140; +} + +#detail_title { + height: auto; + padding: 1 2; + margin-bottom: 1; + background: $primary-muted; + text-style: bold; + color: $text; + text-align: center; +} + +#detail_panels { + height: auto; +} + +.detail_panel { + height: auto; + padding: 1 2; + background: $panel; + color: auto 100%; + border: round $primary; +} + +#connection_panel { width: 2fr; margin-right: 2; } +#process_panel { width: 3fr; border: round $secondary; } + +.compact #detail_panels { layout: vertical; } +.compact #connection_panel, .compact #process_panel { + width: 1fr; + margin: 0 0 1 0; + padding: 0 1; +} + +.compact #detail_scroll { padding: 0 1; align-vertical: top; } + +.section_title { + height: auto; + padding: 0 1; + background: $primary-muted; + text-style: bold; + color: $text; + margin-bottom: 1; +} + +#process_panel .section_title { background: $secondary-muted; } +.compact #detail_title { padding: 0 1; } + +.detail_field { + height: auto; + margin: 0; +} + +DetailFields, #process_status { height: auto; } + +.detail_label { + width: 18; + height: auto; + color: auto 80%; +} + +#connection_info .detail_label { width: 9; } + +.detail_value { + width: 1fr; + height: auto; + color: auto 100%; +} + +#detail_buttons { + height: 5; + padding: 1 0; + align: center middle; + background: $surface; +} + +#detail_buttons Button { + width: 24; + margin: 0 1; +} + +.compact #detail_buttons { + height: 3; + padding: 0; +} + +Button { margin-right: 1; } + +TerminateScreen { + align: center middle; + background: $background 65%; +} + +#terminate_dialog { + width: 68; + max-width: 96%; + height: auto; + max-height: 95%; + padding: 1 2; + background: $surface; + border: thick $error; +} + +#terminate_dialog VerticalScroll { + height: auto; + max-height: 12; +} + +#terminate_identity, #terminate_status, .dialog_explanation { + height: auto; + margin-bottom: 1; +} + +.dialog_explanation { color: $text-muted; } +.dialog_buttons { height: 3; align-horizontal: right; } diff --git a/src/netshow/presentation.py b/src/netshow/presentation.py new file mode 100644 index 0000000..cbc0c75 --- /dev/null +++ b/src/netshow/presentation.py @@ -0,0 +1,54 @@ +"""Pure filtering and formatting, independent of system collection.""" + +import re +import unicodedata +from collections.abc import Iterable + +from .models import Connection + +STATUS_ICONS = {"ESTABLISHED": "●", "LISTEN": "◉", "TIME_WAIT": "◷", "CLOSE_WAIT": "◷"} + + +def literal(value: str) -> str: + """Keep user data literal and prevent terminal control sequences from leaking.""" + return "".join(c if not unicodedata.category(c).startswith("C") else " " for c in value) + + +def format_bytes(value: float) -> str: + for unit in ("B", "KiB", "MiB", "GiB"): + if value < 1024: + return f"{value:.0f} {unit}" if unit == "B" else f"{value:.1f} {unit}" + value /= 1024 + return f"{value:.1f} TiB" + + +def address(value: str, expanded: bool) -> str: + if not expanded and value.startswith("[") and "]:" in value: + return "[…]:" + value.rsplit("]:", 1)[1] + return value + + +def select_connections( + connections: Iterable[Connection], query: str, sort: str +) -> tuple[list[Connection], bool]: + invalid = False + try: + pattern = re.compile(query, re.IGNORECASE) + except re.error: + pattern = re.compile(re.escape(query), re.IGNORECASE) + invalid = True + selected = [ + c + for c in connections + if any( + pattern.search(field) + for field in (str(c.pid or ""), c.process, c.friendly, c.local, c.remote, c.status) + ) + ] + # A deterministic default also breaks ties for the other sorts. + selected.sort(key=lambda c: (c.pid or -1, c.local, c.remote, c.fd)) + if sort == "status": + selected.sort(key=lambda c: c.status) + elif sort == "process": + selected.sort(key=lambda c: c.friendly.casefold()) + return selected, invalid diff --git a/src/netshow/processes.py b/src/netshow/processes.py new file mode 100644 index 0000000..2c8454a --- /dev/null +++ b/src/netshow/processes.py @@ -0,0 +1,115 @@ +"""Inspect and signal a process only while its PID and creation time still match.""" + +import os +from dataclasses import dataclass +from typing import Literal + +import psutil + +from .models import ProcessDetails, ProcessIdentity + + +class IdentityChanged(Exception): + """The selected PID now belongs to another process.""" + + +def verified_process(identity: ProcessIdentity) -> psutil.Process: + proc = psutil.Process(identity.pid) + if proc.create_time() != identity.created or not proc.is_running(): + raise IdentityChanged + return proc + + +def control_unavailable(identity: ProcessIdentity | None) -> str | None: + if identity is None: + return "Process identity is unavailable; refresh and select the process again." + if identity.pid <= 1 or identity.pid == os.getpid(): + return "This process is protected from termination in netshow." + return None + + +class ProcessInspector: + """Retain the CPU baseline between samples, never across process identities.""" + + def __init__(self, identity: ProcessIdentity | None) -> None: + self.identity = identity + self.proc: psutil.Process | None = None + self.static_fields: list[tuple[str, str]] | None = None + + def sample(self) -> ProcessDetails: + if self.identity is None: + return ProcessDetails(None, (), "Process identity is unavailable.") + try: + verified_process(self.identity) + first = self.proc is None + if self.proc is None: + self.proc = verified_process(self.identity) + proc = self.proc + if self.static_fields is None: + fields = [] + for label, getter in ( + ("Name", proc.name), + ("Owner", proc.username), + ("Executable", proc.exe), + ("Working directory", proc.cwd), + ): + try: + fields.append((label, getter() or "Unavailable")) + except (psutil.AccessDenied, OSError): + fields.append((label, "Permission denied")) + try: + fields.append(("Command", " ".join(proc.cmdline()) or "Unavailable")) + except (psutil.AccessDenied, OSError): + fields.append(("Command", "Permission denied")) + self.static_fields = fields + fields = list(self.static_fields) + with proc.oneshot(): + for label, getter in ( + ("Status", proc.status), + ("Threads", lambda: str(proc.num_threads())), + ("Memory", lambda: f"{proc.memory_percent():.2f}%"), + ("CPU", lambda: f"{proc.cpu_percent():.1f}%"), + ): + try: + value = getter() + fields.append((label, "Sampling…" if first and label == "CPU" else value)) + except (psutil.AccessDenied, OSError): + fields.append((label, "Permission denied")) + return ProcessDetails(self.identity, tuple(fields)) + except (psutil.NoSuchProcess, psutil.ZombieProcess): + return ProcessDetails(self.identity, (), "Process exited.") + except IdentityChanged: + return ProcessDetails(self.identity, (), "PID was reused; select the process again.") + except (psutil.AccessDenied, OSError): + return ProcessDetails(self.identity, (), "Permission denied inspecting this process.") + + +@dataclass(frozen=True) +class ProcessOutcome: + state: Literal["exited", "alive", "denied", "changed", "protected", "error"] + message: str + + +def signal_process(identity: ProcessIdentity, *, force: bool = False) -> ProcessOutcome: + reason = control_unavailable(identity) + if reason: + return ProcessOutcome("protected", reason) + try: + proc = verified_process(identity) + # psutil also checks PID reuse when sending the signal. + if force: + proc.kill() + else: + proc.terminate() + proc.wait(timeout=3) + return ProcessOutcome("exited", f"Process {identity.pid} exited.") + except psutil.TimeoutExpired: + return ProcessOutcome("alive", f"Process {identity.pid} is still running after 3 seconds.") + except psutil.NoSuchProcess: + return ProcessOutcome("exited", f"Process {identity.pid} has already exited.") + except IdentityChanged: + return ProcessOutcome("changed", "PID was reused. No signal was sent.") + except (psutil.AccessDenied, PermissionError): + return ProcessOutcome("denied", "Permission denied. No elevated privileges were requested.") + except OSError as error: + return ProcessOutcome("error", f"Unable to signal process: {error}") diff --git a/src/netshow/styles.py b/src/netshow/styles.py deleted file mode 100644 index d5cde1e..0000000 --- a/src/netshow/styles.py +++ /dev/null @@ -1,313 +0,0 @@ -"""Styles for the NetshowApp - Enhanced Selenized Dark Theme.""" - -CSS = """ -/* === SELENIZED DARK COLOR PALETTE === */ -$bg_0: #103c48; -$bg_1: #184956; -$bg_2: #2d5b69; -$dim_0: #72898f; -$fg_0: #adbcbc; -$fg_1: #cad8d9; - -$red: #fa5750; -$green: #75b938; -$yellow: #dbb32d; -$blue: #2d5b69; -$magenta: #f275be; -$cyan: #4191a5; -$orange: #ed8649; -$violet: #af88eb; - -$br_red: #ff665c; -$br_green: #84c747; -$br_yellow: #ebc13d; -$br_blue: #58a3ff; -$br_magenta: #ff84cd; -$br_cyan: #53d6c7; -$br_orange: #fd9456; -$br_violet: #bd96fa; - - -/* === METRICS ROW === */ -#metrics_row { - height: 3; - margin: 0; - padding: 0 1; -} - -.metric { - background: $bg_1; - color: $fg_1; - border: solid $cyan; - padding: 0 1; - margin: 0; - text-style: bold; - text-align: center; - width: 1fr; - min-width: 15; -} - -/* === SPECIFIC METRIC WIDTHS === */ -#conn_metric { - width: 2fr; -} - -#active_metric { - width: 1.1fr; - min-width: 12; -} - -#listen_metric { - width: 1.3fr; - min-width: 15; -} - -#bandwidth_metric { - width: 2.5fr; - min-width: 25; -} - -/* === FILTER CONTAINER === */ -#filter_container { - height: 3; - margin: 0; - padding: 0 1; -} - -#filter_input { - background: $bg_1; - color: $fg_1; - border: solid $magenta; - height: 1; - padding: 0 1; -} - -#filter_input:focus { - background: $bg_0; - border: solid $br_cyan; - color: $fg_1; -} - - -/* === GLOBAL STYLES === */ -Screen { - background: $bg_0; - color: $fg_0; -} - -/* === HEADER & FOOTER === */ -Header { - background: $bg_1; - color: $fg_1; - border-bottom: solid $blue; - text-style: bold; - height: 2; -} - -Footer { - background: $bg_1; - color: $fg_1; - height: 1; -} - -/* === STATUS BAR === */ -#stats_container { - height: auto; - margin: 0; - border: solid $dim_0; - padding: 0; -} - -#status_bar { - background: $bg_1; - color: $fg_1; - height: 1; - padding: 0 1; - border: none; - margin: 0; -} - -/* === LAYOUT CONTAINERS === */ -Vertical, Container, Horizontal { - border: none; - padding: 0; - margin: 0; -} - -Vertical { - width: 100%; - height: 1fr; -} - -/* === EDGE BORDER FIX === */ -#connection_details { - border-right: #fff; -} - -#process_info { - border-left: none; -} - -/* === DATA TABLE STYLING === */ -DataTable { - background: $bg_0; - color: $fg_0; - width: 100%; - height: 1fr; - border: none; - margin: 0; -} - -#connections_table { - border: none !important; -} - -DataTable .header { - background: $bg_1; - color: $fg_1; - text-style: bold; - height: 1; -} - -DataTable .datatable--cursor { - background: $bg_2; - color: $fg_1; - text-style: bold; -} - -DataTable .datatable--hover { - background: $bg_1; - color: $fg_1; -} - -DataTable:focus .datatable--cursor { - background: $dim_0; - color: $fg_1; - text-style: bold; -} - -/* === DETAIL SCREEN STYLING === */ -#detail_title { - background: $bg_2; - color: $fg_1; - height: 5; - padding: 1 2; - text-align: center; - text-style: bold; - margin: 0; -} - -#main_content { - height: auto; - margin: 0; - padding: 0; - border: none; - width: 100%; -} - -#connection_details, #process_info { - background: $bg_1; - padding: 2; - margin: 0; - height: auto; - width: 1fr; -} - -.section_header { - background: $bg_2; - color: $fg_1; - padding: 1 2; - text-align: center; - text-style: bold; - margin: 0 0 1 0; - height: 10; -} - -.detail_title { - margin: 0 0 1 0; - padding: 1 1; - color: $fg_1; - text-style: bold; - background: $bg_2; -} - -.detail_item { - margin: 0 0 1 1; - padding: 0 1; - color: $fg_1; - background: transparent; - height: auto; -} - -.detail_item:hover { - color: $fg_1; - background: $bg_2; -} - -/* === BUTTONS === */ -#button_container { - align: center middle; - height: auto; - margin: 0; - padding: 2 0; -} - -#back_button { - background: $blue; - color: $bg_0; - width: 30; - height: 3; - text-style: bold; -} - -#back_button:hover { - background: $br_blue; -} - -#back_button:focus { - background: $cyan; - border: thick $cyan; -} - -Button:focus { - border: thick $blue; -} - -/* === SCROLLABLE CONTAINERS === */ -ScrollableContainer { - background: transparent; - scrollbar-background: $bg_1; - scrollbar-color: $blue; - scrollbar-color-hover: $br_blue; - scrollbar-color-active: $cyan; - padding: 0; - margin: 0; - border: none; -} - -/* === CONNECTION STATUS INDICATORS === */ -.status-ESTABLISHED { - color: $green; - text-style: bold; -} - -.status-LISTEN { - color: $blue; - text-style: bold; -} - -.status-TIME_WAIT { - color: $yellow; -} - -.status-CLOSE_WAIT { - color: $red; -} - -/* === ACCESSIBILITY === */ - -.epic-glow { - color: $br_blue; - text-style: bold; -} -""" diff --git a/src/netshow/terminate_screen.py b/src/netshow/terminate_screen.py new file mode 100644 index 0000000..fab9917 --- /dev/null +++ b/src/netshow/terminate_screen.py @@ -0,0 +1,117 @@ +"""Explicit confirmation and separately confirmed force termination.""" + +from textual import work +from textual.app import ComposeResult +from textual.containers import Horizontal, Vertical, VerticalScroll +from textual.message import Message +from textual.screen import ModalScreen +from textual.widgets import Button, Static + +from .models import Connection, ProcessDetails +from .presentation import literal +from .processes import ProcessInspector, ProcessOutcome, control_unavailable, signal_process + + +class TerminateScreen(ModalScreen[None]): + BINDINGS = [("escape", "cancel", "Cancel")] + + class Inspected(Message): + def __init__(self, details: ProcessDetails) -> None: + super().__init__() + self.details = details + + class Completed(Message): + def __init__(self, outcome: ProcessOutcome) -> None: + super().__init__() + self.outcome = outcome + + def __init__(self, connection: Connection) -> None: + super().__init__() + self.connection = connection + self.busy = False + self.force = False + + def compose(self) -> ComposeResult: + with Vertical(id="terminate_dialog"): + yield Static("Terminate process?", id="terminate_title", classes="section_title") + with VerticalScroll(): + yield Static( + literal( + f"{self.connection.friendly} · PID {self.connection.pid}\nInspecting process…" + ), + id="terminate_identity", + markup=False, + ) + yield Static( + "This affects all connections owned by this process. Unsaved work may be lost.", + classes="dialog_explanation", + ) + yield Static("", id="terminate_status", markup=False) + with Horizontal(classes="dialog_buttons"): + yield Button("Cancel", id="cancel") + yield Button("Terminate", id="confirm", variant="error", disabled=True) + + def on_mount(self) -> None: + self.query_one("#cancel", Button).focus() + self.inspect_process() + + @work(thread=True, exit_on_error=False) + def inspect_process(self) -> None: + self.post_message(self.Inspected(ProcessInspector(self.connection.identity).sample())) + + def on_terminate_screen_inspected(self, message: Inspected) -> None: + details = message.details + fields = dict(details.fields) + text = ( + f"{self.connection.friendly} · PID {self.connection.pid}\n" + f"Owner: {fields.get('Owner', 'Unavailable')}\n" + f"Executable: {fields.get('Executable', 'Unavailable')}" + ) + self.query_one("#terminate_identity", Static).update(literal(text)) + reason = control_unavailable(self.connection.identity) or details.error + self.query_one("#terminate_status", Static).update( + reason or "Send a graceful termination request." + ) + self.query_one("#confirm", Button).disabled = reason is not None + + def action_cancel(self) -> None: + if not self.busy: + self.dismiss(None) + + def on_button_pressed(self, event: Button.Pressed) -> None: + if event.button.id == "cancel": + self.action_cancel() + elif event.button.id == "confirm" and not self.busy: + self.busy = True + self.query_one("#confirm", Button).disabled = True + self.query_one("#cancel", Button).disabled = True + self.query_one("#terminate_status", Static).update("Waiting for process exit…") + self.send_signal(self.force) + + @work(thread=True, exit_on_error=False) + def send_signal(self, force: bool) -> None: + identity = self.connection.identity + if identity is not None: + self.post_message(self.Completed(signal_process(identity, force=force))) + + def on_terminate_screen_completed(self, message: Completed) -> None: + self.busy = False + outcome = message.outcome + self.query_one("#terminate_status", Static).update(literal(outcome.message)) + cancel = self.query_one("#cancel", Button) + cancel.disabled = False + cancel.focus() + if outcome.state == "exited": + self.notify(outcome.message) + self.dismiss(None) + elif outcome.state == "alive" and not self.force: + self.force = True + self.query_one("#terminate_title", Static).update("Force kill process?") + self.query_one("#terminate_status", Static).update( + outcome.message + "\nForce kill stops it immediately without allowing cleanup." + ) + confirm = self.query_one("#confirm", Button) + confirm.label = "Force kill" + confirm.disabled = False + else: + cancel.label = "Close" diff --git a/src/netshow/theme.py b/src/netshow/theme.py new file mode 100644 index 0000000..ece6642 --- /dev/null +++ b/src/netshow/theme.py @@ -0,0 +1,31 @@ +"""The original Selenized palette, registered as a switchable Textual theme.""" + +from textual.theme import Theme + +SELENIZED_DARK = Theme( + name="selenized-dark", + primary="#4191a5", + secondary="#58a3ff", + success="#75b938", + warning="#dbb32d", + error="#fa5750", + accent="#f275be", + background="#103c48", + surface="#184956", + panel="#184956", + foreground="#adbcbc", + variables={ + "text": "#cad8d9", + "text-muted": "#72898f", + "block-cursor-background": "#2d5b69", + "block-cursor-foreground": "#cad8d9", + "block-cursor-text-style": "bold", + "block-cursor-blurred-background": "#184956", + "block-cursor-blurred-foreground": "#cad8d9", + "block-hover-background": "#184956", + "footer-background": "#184956", + "footer-key-foreground": "#53d6c7", + "footer-description-foreground": "#cad8d9", + "input-selection-background": "#2d5b69", + }, +) diff --git a/src/netshow/types_and_constants.py b/src/netshow/types_and_constants.py deleted file mode 100644 index cca0f07..0000000 --- a/src/netshow/types_and_constants.py +++ /dev/null @@ -1,41 +0,0 @@ -from typing import TypedDict - -# Constants -REFRESH_INTERVAL = 3.0 # seconds -CONNECTION_COLUMNS = ["pid", "friendly", "proc", "laddr", "raddr", "status"] -BASIC_KEYBINDINGS = [ - ("q", "quit", "Quit"), - ("ctrl+r", "refresh", "Force Refresh"), - ("f", "toggle_filter", "Filter"), - ("s", "sort_by_status", "Sort by Status"), - ("p", "sort_by_process", "Sort by Process"), - ("i", "toggle_interface", "Interface"), - ("e", "toggle_emojis", "Emojis"), - ("ctrl+c", "quit", "Hard Quit"), - ("/", "search", "Search"), -] - - -class ConnectionData(TypedDict): - """Type definition for connection data.""" - - pid: str - friendly: str - proc: str - laddr: str - raddr: str - status: str - - -class NetworkStats(TypedDict): - """Type definition for network statistics.""" - - total_connections: int - established: int - listening: int - time_wait: int - bytes_sent: int - bytes_recv: int - packets_sent: int - packets_recv: int - timestamp: float diff --git a/tests/test_app.py b/tests/test_app.py new file mode 100644 index 0000000..427a8e9 --- /dev/null +++ b/tests/test_app.py @@ -0,0 +1,266 @@ +import threading +from dataclasses import replace +from unittest.mock import Mock + +import pytest +from textual.widgets import Button, Input, Sparkline, Static + +from netshow.app import NetshowApp +from netshow.connection_table import ConnectionTable +from netshow.detail_screen import ConnectionDetailScreen +from netshow.models import CollectionResult, Connection, ProcessDetails, ProcessIdentity +from netshow.processes import ProcessOutcome +from netshow.terminate_screen import TerminateScreen + + +@pytest.fixture +def records(): + return [ + Connection(222, "server", "Zebra", "[::1]:8080", "", "LISTEN", ProcessIdentity(222, 1), 7), + Connection( + 333, + "client", + "[bold]Alpha[/bold]", + "127.0.0.1:5000", + "1.1.1.1:443", + "ESTABLISHED", + ProcessIdentity(333, 2), + 8, + ), + ] + + +@pytest.fixture(autouse=True) +def fake_inspection(monkeypatch): + monkeypatch.setattr( + "netshow.processes.ProcessInspector.sample", + lambda self: ProcessDetails( + self.identity, + (("Name", "[bold]literal[/bold]"), ("Owner", "test"), ("Executable", "/tmp/test")), + ), + ) + + +async def settled(pilot, predicate): + for _ in range(100): + await pilot.pause(0.01) + if predicate(): + return + assert predicate(), "UI did not reach expected state" + + +async def test_details_preserve_ipv6_and_resume_refresh(records): + collector = Mock(return_value=CollectionResult(tuple(records))) + app = NetshowApp(collector=collector) + async with app.run_test() as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + await pilot.press("enter") + assert isinstance(app.screen, ConnectionDetailScreen) + assert app.screen.connection.local == "[::1]:8080" + await pilot.pause() + assert not app.connections.active + count = collector.call_count + await pilot.press("escape") + await settled(pilot, lambda: collector.call_count > count) + assert app.connections.active + count = collector.call_count + await pilot.press("ctrl+r") + await settled(pilot, lambda: collector.call_count > count) + + +async def test_selection_survives_updates_sort_and_reordering(records): + collector = Mock(return_value=CollectionResult(tuple(records))) + app = NetshowApp(collector=collector) + async with app.run_test() as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + table = app.connections.query_one(ConnectionTable) + await pilot.press("down", "p") + assert table.selected.pid == 333 + assert table.cursor_row == 0 + collector.return_value = CollectionResult( + (replace(records[0], status="CLOSE_WAIT"), records[1]) + ) + await pilot.press("ctrl+r") + await settled(pilot, lambda: app.connections.snapshot[0].status == "CLOSE_WAIT") + assert table.selected.pid == 333 + await pilot.press("p") + assert table.selected.pid == 333 + assert table.cursor_row == 1 + collector.return_value = CollectionResult((records[0],)) + await pilot.press("ctrl+r") + await settled(pilot, lambda: table.row_count == 1) + assert table.selected.pid == 222 + + +async def test_filter_typing_shortcuts_literal_regex_and_clear(records): + collector = Mock(return_value=CollectionResult(tuple(records))) + app = NetshowApp(collector=collector) + async with app.run_test() as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + calls = collector.call_count + await pilot.press("/") + field = app.connections.query_one(Input) + await pilot.press("p", "s", "i", "e", "v", "k", "f") + assert field.value == "psievkf" + assert app.connections.sort_mode == "default" + assert app.screen is app.connections + field.value = "[" + await pilot.pause(0.2) + assert app.connections.invalid_regex + assert len(app.connections.filtered_connections) == 2 + assert collector.call_count == calls + field.value = "333" + await pilot.pause(0.2) + assert app.connections.query_one(ConnectionTable).selected.pid == 333 + await pilot.press("escape") + assert not field.display + await pilot.press("/") + field.value = "" + await pilot.pause(0.2) + assert app.connections.query_one(ConnectionTable).row_count == 2 + + +async def test_slow_collection_coalesces_and_discards_suspended_result(records): + release = threading.Event() + entered = threading.Event() + count = 0 + + def collector(): + nonlocal count + count += 1 + if count == 1: + entered.set() + assert release.wait(3) + return CollectionResult((records[0],)) + return CollectionResult((records[1],)) + + app = NetshowApp(collector=collector) + try: + async with app.run_test() as pilot: + await settled(pilot, entered.is_set) + for _ in range(10): + app.connections.action_refresh() + await pilot.press("/") + assert isinstance(app.focused, Input) + assert count == 1 + app.push_screen(ConnectionDetailScreen(records[0])) + await pilot.pause() + release.set() + await settled(pilot, lambda: not app.connections.collecting) + assert app.connections.last_success is None + await pilot.press("escape") + await settled(pilot, lambda: app.connections.last_success is not None) + assert count == 2 + assert app.connections.snapshot == (records[1],) + finally: + release.set() + + +async def test_stale_snapshot_survives_failure(records): + collector = Mock(return_value=CollectionResult(tuple(records), "lsof", limited=True)) + app = NetshowApp(collector=collector) + async with app.run_test() as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + collector.return_value = CollectionResult(error="lsof timed out") + await pilot.press("ctrl+r") + await settled(pilot, lambda: app.connections.result.error is not None) + assert app.connections.snapshot == tuple(records) + assert app.connections.query_one(ConnectionTable).row_count == 2 + assert "Stale data" in str(app.connections.query_one("#collection_status", Static).content) + + +@pytest.mark.parametrize("size", [(60, 20), (80, 24), (120, 40)]) +async def test_layout_themes_and_symbols(size, records): + app = NetshowApp(collector=lambda: CollectionResult(tuple(records))) + async with app.run_test(size=size) as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + assert app.connections.query_one(Sparkline).display == (size[0] >= 80) + for theme in ["solarized-light", "ansi-dark", "ansi-light"]: + app.theme = theme + await pilot.pause() + await pilot.press("e", "v") + assert not app.connections.show_emojis + assert app.connections.expand_ipv6 + await pilot.press("enter") + await pilot.pause() + assert app.screen.has_class("compact") == (size[0] < 100) + await pilot.press("k") + await settled(pilot, lambda: not app.screen.query_one("#confirm", Button).disabled) + assert app.screen.query_one("#cancel", Button).region.bottom <= size[1] + assert app.screen.query_one("#confirm", Button).region.right <= size[0] + + +async def test_termination_cancel_and_separate_force(records, monkeypatch): + signal = Mock( + side_effect=[ProcessOutcome("alive", "Still running"), ProcessOutcome("exited", "Exited")] + ) + monkeypatch.setattr("netshow.terminate_screen.signal_process", signal) + app = NetshowApp(collector=lambda: CollectionResult(tuple(records))) + async with app.run_test() as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + await pilot.press("k") + await settled(pilot, lambda: not app.screen.query_one("#confirm", Button).disabled) + assert app.focused.id == "cancel" + await pilot.press("enter") + assert app.screen is app.connections + signal.assert_not_called() + await pilot.press("k") + await settled(pilot, lambda: not app.screen.query_one("#confirm", Button).disabled) + await pilot.click("#confirm") + await settled(pilot, lambda: app.screen.force) + assert signal.call_count == 1 + assert app.focused.id == "cancel" + await pilot.pause(0.35) # Let Textual’s button press animation finish. + await pilot.click("#confirm") + await settled(pilot, lambda: app.screen is app.connections) + assert signal.call_args_list[0].kwargs == {"force": False} + assert signal.call_args_list[1].kwargs == {"force": True} + + +async def test_no_duplicate_signals(records, monkeypatch): + release = threading.Event() + signal = Mock( + side_effect=lambda *args, **kwargs: ( + release.wait(3), + ProcessOutcome("denied", "Permission denied"), + )[1] + ) + monkeypatch.setattr("netshow.terminate_screen.signal_process", signal) + app = NetshowApp(collector=lambda: CollectionResult(tuple(records))) + try: + async with app.run_test() as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + await pilot.press("k") + await settled(pilot, lambda: not app.screen.query_one("#confirm", Button).disabled) + await pilot.click("#confirm") + await settled(pilot, lambda: signal.call_count == 1) + await pilot.press("enter", "enter", "escape") + assert isinstance(app.screen, TerminateScreen) + assert app.screen.busy + assert signal.call_count == 1 + release.set() + await settled(pilot, lambda: not app.screen.busy) + assert app.screen.query_one("#confirm", Button).disabled + assert app.focused.id == "cancel" + finally: + release.set() + + +async def test_large_table_updates_incrementally(records, monkeypatch): + fixture = tuple(replace(records[0], pid=10000 + i, fd=i) for i in range(5000)) + app = NetshowApp(collector=lambda: CollectionResult(fixture)) + async with app.run_test(size=(120, 40)) as pilot: + await settled(pilot, lambda: app.connections.last_success is not None) + table = app.connections.query_one(ConnectionTable) + assert table.row_count == 5000 + clear = Mock(side_effect=AssertionError("Unexpected full table rebuild")) + monkeypatch.setattr(table, "clear", clear) + update = Mock(wraps=table.update_cell) + monkeypatch.setattr(table, "update_cell", update) + app.connections.snapshot = (replace(fixture[0], status="CLOSE_WAIT"), *fixture[1:]) + app.connections.render_connections() + assert update.call_count == 2 # PID cell carries the model, plus changed status. + await pilot.press("down", "/") + assert isinstance(app.focused, Input) + assert table.cursor_row == 1 + clear.assert_not_called() diff --git a/tests/test_bandwidth.py b/tests/test_bandwidth.py new file mode 100644 index 0000000..6cd80c1 --- /dev/null +++ b/tests/test_bandwidth.py @@ -0,0 +1,49 @@ +from types import SimpleNamespace +from unittest.mock import Mock + +from netshow import bandwidth +from netshow.bandwidth import BandwidthSampler +from netshow.presentation import format_bytes + + +def test_rates_use_monotonic_elapsed_time(): + sampler = BandwidthSampler() + assert sampler.observe("all", 10, 1000, 2000).received == 0 + sample = sampler.observe("all", 12, 3000, 3000) + assert sample.received == 1000 + assert sample.sent == 500 + assert list(sampler.history) == [1500] + + +def test_switch_and_counter_reset_clear_history(): + sampler = BandwidthSampler() + sampler.observe("all", 1, 0, 0) + sampler.observe("all", 2, 100, 100) + assert sampler.observe("en0", 3, 10000, 10000).received == 0 + assert not sampler.history + sampler.observe("en0", 4, 20000, 20000) + assert sampler.observe("en0", 5, 1, 1).sent == 0 + assert not sampler.history + assert sampler.observe("en0", 5, 100, 100).sent == 0 + + +def test_interface_removal_and_unavailable_counters(monkeypatch): + sampler = BandwidthSampler() + sampler.observe("gone", 1, 100, 100) + monkeypatch.setattr( + bandwidth.psutil, + "net_io_counters", + Mock(return_value={"lo": SimpleNamespace(bytes_recv=500, bytes_sent=500)}), + ) + sample = sampler.sample("gone") + assert sample.interface == "all" + assert sample.received == 0 + assert sampler.interfaces == ["all", "lo"] + monkeypatch.setattr(bandwidth.psutil, "net_io_counters", Mock(return_value={})) + assert not sampler.sample("all").available + monkeypatch.setattr(bandwidth.psutil, "net_io_counters", Mock(side_effect=OSError())) + assert not sampler.sample("all").available + + +def test_byte_format_keeps_fraction(): + assert format_bytes(1536) == "1.5 KiB" diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..cb18266 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,29 @@ +from unittest.mock import Mock + +import pytest + +from netshow import __version__, cli + + +@pytest.mark.parametrize("value", ["0", "-1", "nan", "inf", "-inf", "bad"]) +def test_invalid_interval(value): + with pytest.raises(cli.argparse.ArgumentTypeError): + cli.positive_interval(value) + + +def test_options_and_no_color(monkeypatch): + app = Mock() + monkeypatch.setattr(cli, "NetshowApp", app) + monkeypatch.setattr("sys.argv", ["netshow", "--interval", "1.5"]) + monkeypatch.setenv("NO_COLOR", "1") + cli.main() + app.assert_called_once_with(interval=1.5, no_colors=True) + app.return_value.run.assert_called_once() + + +def test_version(monkeypatch, capsys): + monkeypatch.setattr("sys.argv", ["netshow", "--version"]) + with pytest.raises(SystemExit) as error: + cli.main() + assert error.value.code == 0 + assert __version__ in capsys.readouterr().out diff --git a/tests/test_collectors.py b/tests/test_collectors.py new file mode 100644 index 0000000..0769df8 --- /dev/null +++ b/tests/test_collectors.py @@ -0,0 +1,112 @@ +import subprocess +from types import SimpleNamespace +from unittest.mock import Mock + +import psutil + +from netshow import collectors +from netshow.models import CollectionResult, ProcessIdentity + +LSOF = ( + "p123\0cserver with spaces\0\n" + "f7\0n[::1]:8080\0TST=LISTEN\0\n" + "f8\0n127.0.0.1:8080->127.0.0.1:50000\0TST=CLOSE_WAIT\0\n" + "p456\0cclient\0\nf9\0n[fe80::1%lo0]:9000->[::1]:8080\0TST=ESTABLISHED\0\n" +) + + +def test_lsof_machine_output_preserves_endpoints_and_all_states(): + records = collectors.parse_lsof(LSOF) + assert len(records) == 3 + assert records[0].process == "server with spaces" + assert records[0].local == "[::1]:8080" + assert records[1].status == "CLOSE_WAIT" + assert records[2].remote == "[::1]:8080" + assert records[2].fd == 9 + + +def test_lsof_ignores_malformed_records(): + assert collectors.parse_lsof("garbage\0pBAD\0f3\0n*:80\0") == () + + +def test_lsof_caches_process_metadata_per_snapshot(monkeypatch): + run = Mock(return_value=SimpleNamespace(stdout=LSOF, stderr="", returncode=1)) + metadata = Mock(side_effect=lambda pid, name: (name, name, ProcessIdentity(pid, 1))) + monkeypatch.setattr(collectors.subprocess, "run", run) + monkeypatch.setattr(collectors, "process_metadata", metadata) + result = collectors.collect_lsof() + assert result.error is None + assert len(result.connections) == 3 + assert metadata.call_count == 2 + assert run.call_args.kwargs["timeout"] == 5 + assert "-sTCP:ESTABLISHED,LISTEN" not in run.call_args.args[0] + + +def test_lsof_empty_is_not_error(monkeypatch): + monkeypatch.setattr( + collectors.subprocess, + "run", + Mock(return_value=SimpleNamespace(stdout="", stderr="", returncode=1)), + ) + assert collectors.collect_lsof().error is None + + +def test_lsof_reports_errors(monkeypatch): + for failure, expected in [ + (FileNotFoundError(), "not installed"), + (subprocess.TimeoutExpired("lsof", 5), "timed out"), + ]: + monkeypatch.setattr(collectors.subprocess, "run", Mock(side_effect=failure)) + assert expected in collectors.collect_lsof().error + for output, stderr in [("malformed", ""), ("", "permission denied")]: + monkeypatch.setattr( + collectors.subprocess, + "run", + Mock(return_value=SimpleNamespace(stdout=output, stderr=stderr, returncode=1)), + ) + assert collectors.collect_lsof().error + + +def test_permission_failure_uses_lsof(monkeypatch): + monkeypatch.setattr(collectors, "collect_psutil", Mock(side_effect=psutil.AccessDenied())) + fallback = CollectionResult(source="lsof", limited=True) + monkeypatch.setattr(collectors, "collect_lsof", Mock(return_value=fallback)) + assert collectors.collect_connections() == fallback + + +def test_failed_fallback_reports_both_causes(monkeypatch): + monkeypatch.setattr(collectors, "collect_psutil", Mock(side_effect=psutil.AccessDenied())) + monkeypatch.setattr( + collectors, + "collect_lsof", + Mock(return_value=CollectionResult(error="missing", source="lsof")), + ) + assert "psutil access denied; missing" == collectors.collect_connections().error + + +def test_psutil_retains_unknown_pid_and_caches_metadata(monkeypatch): + socket = SimpleNamespace(pid=10, laddr=("::1", 80), raddr=(), status="LISTEN", fd=4) + unknown = SimpleNamespace( + pid=None, laddr=("127.0.0.1", 80), raddr=(), status="TIME_WAIT", fd=-1 + ) + monkeypatch.setattr( + collectors.psutil, "net_connections", Mock(return_value=[socket, socket, unknown]) + ) + metadata = Mock(return_value=("server", "Server", None)) + monkeypatch.setattr(collectors, "process_metadata", metadata) + records = collectors.collect_psutil() + assert records[0].local == "[::1]:80" + assert records[-1].pid is None + assert metadata.call_count == 2 + + +def test_metadata_survives_partial_permissions(monkeypatch): + proc = Mock() + proc.oneshot.return_value = __import__("contextlib").nullcontext() + proc.create_time.return_value = 1 + proc.name.return_value = "test" + proc.cmdline.side_effect = psutil.AccessDenied() + monkeypatch.setattr(collectors.psutil, "Process", Mock(return_value=proc)) + assert collectors.process_metadata(10) == ("test", "test", ProcessIdentity(10, 1)) + proc.is_running.return_value = False + assert collectors.process_metadata(10)[2] is None diff --git a/tests/test_presentation.py b/tests/test_presentation.py new file mode 100644 index 0000000..904a197 --- /dev/null +++ b/tests/test_presentation.py @@ -0,0 +1,18 @@ +from netshow.models import Connection +from netshow.presentation import address, literal, select_connections + + +def test_filter_sort_and_default_order(): + first = Connection(10, "b", "beta", "[::1]:80", "", "LISTEN") + second = Connection(20, "a", "alpha", "127.0.0.1:80", "", "ESTABLISHED") + assert select_connections([second, first], "", "default")[0] == [first, second] + assert select_connections([first, second], "", "process")[0] == [second, first] + assert select_connections([first, second], "20", "default")[0] == [second] + assert select_connections([first, second], "[", "default") == ([first], True) + assert select_connections([first, second], "ALPHA|LISTEN", "default")[0] == [first, second] + + +def test_literal_and_full_address(): + assert literal("[bold]hi[/bold]\x1b\x00\n") == "[bold]hi[/bold] " + assert address("[::1]:80", False) == "[…]:80" + assert address("[::1]:80", True) == "[::1]:80" diff --git a/tests/test_processes.py b/tests/test_processes.py new file mode 100644 index 0000000..25024ed --- /dev/null +++ b/tests/test_processes.py @@ -0,0 +1,92 @@ +import os +import subprocess +import sys +from contextlib import nullcontext +from unittest.mock import Mock + +import psutil +import pytest + +from netshow import processes +from netshow.models import ProcessIdentity + + +@pytest.fixture +def proc(monkeypatch): + process = Mock() + process.create_time.return_value = 100 + process.is_running.return_value = True + process.oneshot.return_value = nullcontext() + monkeypatch.setattr(processes.psutil, "Process", Mock(return_value=process)) + return process + + +def test_graceful_then_separate_force(proc): + identity = ProcessIdentity(123456, 100) + proc.wait.side_effect = psutil.TimeoutExpired(3) + assert processes.signal_process(identity).state == "alive" + proc.terminate.assert_called_once() + proc.kill.assert_not_called() + proc.wait.side_effect = None + assert processes.signal_process(identity, force=True).state == "exited" + proc.kill.assert_called_once() + + +def test_pid_reuse_never_signals(proc): + proc.create_time.return_value = 101 + assert processes.signal_process(ProcessIdentity(123456, 100)).state == "changed" + proc.terminate.assert_not_called() + proc.kill.assert_not_called() + + +def test_permission_denied_and_already_exited(proc): + identity = ProcessIdentity(123456, 100) + proc.terminate.side_effect = psutil.AccessDenied() + assert processes.signal_process(identity).state == "denied" + proc.terminate.side_effect = psutil.NoSuchProcess(123456) + assert processes.signal_process(identity).state == "exited" + + +@pytest.mark.parametrize("pid", [0, 1, os.getpid()]) +def test_protected_processes(proc, pid): + assert processes.signal_process(ProcessIdentity(pid, 100)).state == "protected" + proc.terminate.assert_not_called() + assert processes.control_unavailable(None) + + +def test_partial_details_and_cpu_baseline(proc): + proc.name.return_value = "service" + proc.username.return_value = "user" + proc.exe.side_effect = psutil.AccessDenied() + proc.cwd.return_value = "/tmp" + proc.cmdline.return_value = ["service", "[literal]"] + proc.status.return_value = "running" + proc.cpu_percent.return_value = 12.5 + proc.memory_percent.return_value = 1.5 + inspector = processes.ProcessInspector(ProcessIdentity(123456, 100)) + fields = dict(inspector.sample().fields) + assert fields["Name"] == "service" + assert fields["Executable"] == "Permission denied" + assert fields["CPU"] == "Sampling…" + fields = dict(inspector.sample().fields) + assert fields["CPU"] == "12.5%" + proc.exe.assert_called_once() + + +def test_process_exit_during_inspection(proc): + proc.create_time.side_effect = psutil.NoSuchProcess(123456) + assert ( + processes.ProcessInspector(ProcessIdentity(123456, 100)).sample().error == "Process exited." + ) + + +@pytest.mark.skipif(sys.platform == "win32", reason="POSIX signals") +def test_terminate_only_test_owned_child(): + child = subprocess.Popen([sys.executable, "-c", "import time; time.sleep(60)"]) + try: + identity = ProcessIdentity(child.pid, psutil.Process(child.pid).create_time()) + assert processes.signal_process(identity).state == "exited" + finally: + if child.poll() is None: + child.kill() + child.wait() diff --git a/uv.lock b/uv.lock index 4e3294a..faf079b 100644 --- a/uv.lock +++ b/uv.lock @@ -1,448 +1,531 @@ version = 1 -revision = 2 -requires-python = ">=3.9" +revision = 1 +requires-python = ">=3.11" resolution-markers = [ - "python_full_version >= '3.10'", - "python_full_version < '3.10'", + "python_full_version >= '3.15'", + "python_full_version < '3.15'", ] [[package]] -name = "black" -version = "25.1.0" +name = "ast-serialize" +version = "0.11.2" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" }, - { name = "click", version = "8.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" }, - { name = "mypy-extensions" }, - { name = "packaging" }, - { name = "pathspec" }, - { name = "platformdirs" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/94/49/26a7b0f3f35da4b5a65f081943b7bcd22d7002f5f0fb8098ec1ff21cb6ef/black-25.1.0.tar.gz", hash = "sha256:33496d5cd1222ad73391352b4ae8da15253c5de89b93a80b3e2c8d9a19ec2666", size = 649449, upload_time = "2025-01-29T04:15:40.373Z" } +sdist = { url = "https://files.pythonhosted.org/packages/54/1e/4f6082cdd6e5a29093513e9a3eabc5ed1c5331a9a84386b2fece80a00a48/ast_serialize-0.11.2.tar.gz", hash = "sha256:976a5bd75845d22f4b52905ddf53ab669ef1b14dba7735f5512841a2ef2b5450", size = 954387 } wheels = [ - { url = "https://files.pythonhosted.org/packages/4d/3b/4ba3f93ac8d90410423fdd31d7541ada9bcee1df32fb90d26de41ed40e1d/black-25.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:759e7ec1e050a15f89b770cefbf91ebee8917aac5c20483bc2d80a6c3a04df32", size = 1629419, upload_time = "2025-01-29T05:37:06.642Z" }, - { url = "https://files.pythonhosted.org/packages/b4/02/0bde0485146a8a5e694daed47561785e8b77a0466ccc1f3e485d5ef2925e/black-25.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0e519ecf93120f34243e6b0054db49c00a35f84f195d5bce7e9f5cfc578fc2da", size = 1461080, upload_time = "2025-01-29T05:37:09.321Z" }, - { url = "https://files.pythonhosted.org/packages/52/0e/abdf75183c830eaca7589144ff96d49bce73d7ec6ad12ef62185cc0f79a2/black-25.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:055e59b198df7ac0b7efca5ad7ff2516bca343276c466be72eb04a3bcc1f82d7", size = 1766886, upload_time = "2025-01-29T04:18:24.432Z" }, - { url = "https://files.pythonhosted.org/packages/dc/a6/97d8bb65b1d8a41f8a6736222ba0a334db7b7b77b8023ab4568288f23973/black-25.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:db8ea9917d6f8fc62abd90d944920d95e73c83a5ee3383493e35d271aca872e9", size = 1419404, upload_time = "2025-01-29T04:19:04.296Z" }, - { url = "https://files.pythonhosted.org/packages/7e/4f/87f596aca05c3ce5b94b8663dbfe242a12843caaa82dd3f85f1ffdc3f177/black-25.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a39337598244de4bae26475f77dda852ea00a93bd4c728e09eacd827ec929df0", size = 1614372, upload_time = "2025-01-29T05:37:11.71Z" }, - { url = "https://files.pythonhosted.org/packages/e7/d0/2c34c36190b741c59c901e56ab7f6e54dad8df05a6272a9747ecef7c6036/black-25.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:96c1c7cd856bba8e20094e36e0f948718dc688dba4a9d78c3adde52b9e6c2299", size = 1442865, upload_time = "2025-01-29T05:37:14.309Z" }, - { url = "https://files.pythonhosted.org/packages/21/d4/7518c72262468430ead45cf22bd86c883a6448b9eb43672765d69a8f1248/black-25.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bce2e264d59c91e52d8000d507eb20a9aca4a778731a08cfff7e5ac4a4bb7096", size = 1749699, upload_time = "2025-01-29T04:18:17.688Z" }, - { url = "https://files.pythonhosted.org/packages/58/db/4f5beb989b547f79096e035c4981ceb36ac2b552d0ac5f2620e941501c99/black-25.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:172b1dbff09f86ce6f4eb8edf9dede08b1fce58ba194c87d7a4f1a5aa2f5b3c2", size = 1428028, upload_time = "2025-01-29T04:18:51.711Z" }, - { url = "https://files.pythonhosted.org/packages/83/71/3fe4741df7adf015ad8dfa082dd36c94ca86bb21f25608eb247b4afb15b2/black-25.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4b60580e829091e6f9238c848ea6750efed72140b91b048770b64e74fe04908b", size = 1650988, upload_time = "2025-01-29T05:37:16.707Z" }, - { url = "https://files.pythonhosted.org/packages/13/f3/89aac8a83d73937ccd39bbe8fc6ac8860c11cfa0af5b1c96d081facac844/black-25.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1e2978f6df243b155ef5fa7e558a43037c3079093ed5d10fd84c43900f2d8ecc", size = 1453985, upload_time = "2025-01-29T05:37:18.273Z" }, - { url = "https://files.pythonhosted.org/packages/6f/22/b99efca33f1f3a1d2552c714b1e1b5ae92efac6c43e790ad539a163d1754/black-25.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3b48735872ec535027d979e8dcb20bf4f70b5ac75a8ea99f127c106a7d7aba9f", size = 1783816, upload_time = "2025-01-29T04:18:33.823Z" }, - { url = "https://files.pythonhosted.org/packages/18/7e/a27c3ad3822b6f2e0e00d63d58ff6299a99a5b3aee69fa77cd4b0076b261/black-25.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:ea0213189960bda9cf99be5b8c8ce66bb054af5e9e861249cd23471bd7b0b3ba", size = 1440860, upload_time = "2025-01-29T04:19:12.944Z" }, - { url = "https://files.pythonhosted.org/packages/98/87/0edf98916640efa5d0696e1abb0a8357b52e69e82322628f25bf14d263d1/black-25.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8f0b18a02996a836cc9c9c78e5babec10930862827b1b724ddfe98ccf2f2fe4f", size = 1650673, upload_time = "2025-01-29T05:37:20.574Z" }, - { url = "https://files.pythonhosted.org/packages/52/e5/f7bf17207cf87fa6e9b676576749c6b6ed0d70f179a3d812c997870291c3/black-25.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:afebb7098bfbc70037a053b91ae8437c3857482d3a690fefc03e9ff7aa9a5fd3", size = 1453190, upload_time = "2025-01-29T05:37:22.106Z" }, - { url = "https://files.pythonhosted.org/packages/e3/ee/adda3d46d4a9120772fae6de454c8495603c37c4c3b9c60f25b1ab6401fe/black-25.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:030b9759066a4ee5e5aca28c3c77f9c64789cdd4de8ac1df642c40b708be6171", size = 1782926, upload_time = "2025-01-29T04:18:58.564Z" }, - { url = "https://files.pythonhosted.org/packages/cc/64/94eb5f45dcb997d2082f097a3944cfc7fe87e071907f677e80788a2d7b7a/black-25.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:a22f402b410566e2d1c950708c77ebf5ebd5d0d88a6a2e87c86d9fb48afa0d18", size = 1442613, upload_time = "2025-01-29T04:19:27.63Z" }, - { url = "https://files.pythonhosted.org/packages/d3/b6/ae7507470a4830dbbfe875c701e84a4a5fb9183d1497834871a715716a92/black-25.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a1ee0a0c330f7b5130ce0caed9936a904793576ef4d2b98c40835d6a65afa6a0", size = 1628593, upload_time = "2025-01-29T05:37:23.672Z" }, - { url = "https://files.pythonhosted.org/packages/24/c1/ae36fa59a59f9363017ed397750a0cd79a470490860bc7713967d89cdd31/black-25.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3df5f1bf91d36002b0a75389ca8663510cf0531cca8aa5c1ef695b46d98655f", size = 1460000, upload_time = "2025-01-29T05:37:25.829Z" }, - { url = "https://files.pythonhosted.org/packages/ac/b6/98f832e7a6c49aa3a464760c67c7856363aa644f2f3c74cf7d624168607e/black-25.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d9e6827d563a2c820772b32ce8a42828dc6790f095f441beef18f96aa6f8294e", size = 1765963, upload_time = "2025-01-29T04:18:38.116Z" }, - { url = "https://files.pythonhosted.org/packages/ce/e9/2cb0a017eb7024f70e0d2e9bdb8c5a5b078c5740c7f8816065d06f04c557/black-25.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:bacabb307dca5ebaf9c118d2d2f6903da0d62c9faa82bd21a33eecc319559355", size = 1419419, upload_time = "2025-01-29T04:18:30.191Z" }, - { url = "https://files.pythonhosted.org/packages/09/71/54e999902aed72baf26bca0d50781b01838251a462612966e9fc4891eadd/black-25.1.0-py3-none-any.whl", hash = "sha256:95e8176dae143ba9097f351d174fdaf0ccd29efb414b362ae3fd72bf0f710717", size = 207646, upload_time = "2025-01-29T04:15:38.082Z" }, -] - -[[package]] -name = "click" -version = "8.1.8" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version < '3.10'", -] -dependencies = [ - { name = "colorama", marker = "python_full_version < '3.10' and sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593, upload_time = "2024-12-21T18:38:44.339Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188, upload_time = "2024-12-21T18:38:41.666Z" }, -] - -[[package]] -name = "click" -version = "8.2.1" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.10'", -] -dependencies = [ - { name = "colorama", marker = "python_full_version >= '3.10' and sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/60/6c/8ca2efa64cf75a977a0d7fac081354553ebe483345c734fb6b6515d96bbc/click-8.2.1.tar.gz", hash = "sha256:27c491cc05d968d271d5a1db13e3b5a184636d9d930f148c50b038f0d0646202", size = 286342, upload_time = "2025-05-20T23:19:49.832Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/85/32/10bb5764d90a8eee674e9dc6f4db6a0ab47c8c4d0d83c27f7c39ac415a4d/click-8.2.1-py3-none-any.whl", hash = "sha256:61a3265b914e850b85317d0b3109c7f8cd35a670f963866005d6ef1d5175a12b", size = 102215, upload_time = "2025-05-20T23:19:47.796Z" }, + { url = "https://files.pythonhosted.org/packages/a3/2e/beec3364eef4b01793a676d8cd16e9014c42044a5505000ceae3955e33fa/ast_serialize-0.11.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:f6a8dfc5ab204a706f6e5d39c6f77c18c27ef084fa2081803a64a9160ce89277", size = 897089 }, + { url = "https://files.pythonhosted.org/packages/6f/d7/ef56443df2891c6ba2c4019c2cb3dcaf97c9948da6d963068e04e8dac6ea/ast_serialize-0.11.2-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:cb073bfa15742699d408ac50f60878383b5665ae1791d1b6799ea6f08633cd77", size = 1235218 }, + { url = "https://files.pythonhosted.org/packages/42/8d/cff58d17ba1d0272ff0b7ab5d3bdfcf8f47317eb0f47c001d394bffebf95/ast_serialize-0.11.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1d6ad94edbe93bf1dabc06c9f37d55b898fdabc456aa6d7ced5e23c14f795f32", size = 1216399 }, + { url = "https://files.pythonhosted.org/packages/de/d2/a1da7675af5f42335c36e4da6d86ef4fd7168cead18de81df0a2d6faeb1a/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40b2801cf2221bd922d9f69d2f0ebc373c3db47207315d525b2d87fa161a2af4", size = 1282064 }, + { url = "https://files.pythonhosted.org/packages/97/89/5a400a13b2c9c0152ebb5ad45408a3fe5e4e60e325d3ac4e5cf6e915a0cc/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fd666cebd6ab3b3c0fd348a6202c26e18a401ee34293c3804d3472266bc146f6", size = 1285864 }, + { url = "https://files.pythonhosted.org/packages/02/b8/80a381c70fd49f0316fb0383c4f9e4c13e81b010b64889bd45898ce8f5f4/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0d01f61352c96370febf6c0dbd488dee9183a731fb2702170da9163ae317cded", size = 1554755 }, + { url = "https://files.pythonhosted.org/packages/90/97/dcaa34a32d2db789221c125b3eb10feb5089715fe53d9874d627afc26231/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a0fd40c668b0fa19b8fdb61d9e63d547e2e19cfbfe053a51ef0b6c37070298a8", size = 1301807 }, + { url = "https://files.pythonhosted.org/packages/5c/9a/84a22420cb312642d7d31547c644d09a3d101418c6d6b9ef2ec30735cf11/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:efa819d7c14c8e4153dcd84671826331538be7cbe460383fc6386f5eea5bd234", size = 1301941 }, + { url = "https://files.pythonhosted.org/packages/20/8a/aa5f3dcf1aed9678c25982f40d366004e3c0cac47bc0c240f6b837dcbb1f/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a9ffa8a197a721f07a352d0be6185f5b3e6f9aaebfdb66169ed652108531ae3b", size = 1307910 }, + { url = "https://files.pythonhosted.org/packages/78/79/91a5102797fe3dc992171382d8579bcb33cbd1424b864ad3117ac43fb3fe/ast_serialize-0.11.2-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:00119a8fb8c1dc0f1fab023f4d8071fa49e3b0208ee54d589fd463c16ab0124e", size = 1356258 }, + { url = "https://files.pythonhosted.org/packages/51/52/54eeef9918e187ced417c4363eecea66975314cd5b9c91759eef7f7b714b/ast_serialize-0.11.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0de02520c11391a026e62987a9aa2c3c2ff01545155059ddf0c4bdf2c5ecbe9f", size = 1459057 }, + { url = "https://files.pythonhosted.org/packages/e4/cb/fd84b52b15d42f2423319cffd1fb7f1e9df5d5198e69ab0b449c450254cf/ast_serialize-0.11.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:b4e4558956b6a0fb35e18fba58f7d1810b1f2c0e6b52352572cd5dfb6b4ef33a", size = 1562447 }, + { url = "https://files.pythonhosted.org/packages/be/92/9fb34f2e64b84a63cca92fb86bd0847b995a63b67477f44c20502fb60352/ast_serialize-0.11.2-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:6061a54f39e82a9f2cbcb9c268fc441890e4818a6636473caa4f4063254e0750", size = 1556423 }, + { url = "https://files.pythonhosted.org/packages/75/0f/c43c44449e7ebc4e83ebd48750088fb06234622faa2d62d2a6dc8970d2a3/ast_serialize-0.11.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:85fbb01e83967a126d71f679f2b9528ef0912cb0854aa1a4657314c34e255b57", size = 1687156 }, + { url = "https://files.pythonhosted.org/packages/2b/a7/9e520f4a79b639da9ee20c1e747c3d739329e902fc55ac38065f25419f56/ast_serialize-0.11.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:7aaaffc32905159774a107d3cf33dad59bd41b7a0d1bc9885532186753ee7439", size = 1481008 }, + { url = "https://files.pythonhosted.org/packages/48/a8/bdd3989f19de09cffcd8179c131f6741a5a8619705fc75b09541ff61530b/ast_serialize-0.11.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:08eda88a0f290a36c38cab33df8bf7e35eb95bc802ca5beb2c8fcda471a7d10c", size = 1501597 }, + { url = "https://files.pythonhosted.org/packages/a5/8a/ca2dce2950875a4ef1d7c298196f803b0adcdb7c15ed0cecc71d84bccd70/ast_serialize-0.11.2-cp314-cp314t-win32.whl", hash = "sha256:76cc294246e60a914326b4ca88c6a5ea89c064906614aaf1537ce82f09e9449f", size = 1119503 }, + { url = "https://files.pythonhosted.org/packages/5a/12/3f38e3613d07c46f9f81c5b1352748c6552397cc52825502e2c6ae44c6ea/ast_serialize-0.11.2-cp314-cp314t-win_amd64.whl", hash = "sha256:43b51e6ebe6549bf21416c3c78ee886147b80875a87cc6f69e303dde0d75be0b", size = 1156828 }, + { url = "https://files.pythonhosted.org/packages/22/90/f89a4f67428a261daafdb69a0d0132c27933268702d1ba47e0b61c51aff1/ast_serialize-0.11.2-cp314-cp314t-win_arm64.whl", hash = "sha256:8df32ad4ff7843734a6c2f067ee974f6d3109ee5a2c3e1a9d2f79347bd282a9a", size = 1128298 }, + { url = "https://files.pythonhosted.org/packages/0b/55/a1962188abf0e62d84d55892bb044347e434711763b9a1d4ad867a70c1be/ast_serialize-0.11.2-cp315-abi3.abi3t-macosx_10_12_x86_64.whl", hash = "sha256:ab924ba260efd7509492f272d4e236d24564033f20c005d7c63a107c6a76fc85", size = 1235457 }, + { url = "https://files.pythonhosted.org/packages/2a/ad/439c2959150718446af76fbe2f4000f35eba9869ef8564f3d9a3d0b1c370/ast_serialize-0.11.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:a586be418eb70a9f1396cea29ddac8f4b9bf277fb73ea2340db31e218bc00f32", size = 1215705 }, + { url = "https://files.pythonhosted.org/packages/6d/d8/2c6542fc3e7c56a0a25d8d12d034d5a2d2e1900e292567b1c1dca8e83124/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8532f20916fa3189d4d785ef2a62d93c4d651ec9c5bffda66d2fc36898351f34", size = 1282530 }, + { url = "https://files.pythonhosted.org/packages/fa/ad/6f6755cd0842db46c3b10b1e4735f14aad78d71dea4753eb46933101711b/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ee732ae167e686d1d3c00f98d7d82b23138304694f0441b14d7ddf9c0f8a921c", size = 1287792 }, + { url = "https://files.pythonhosted.org/packages/03/40/5da672f5dd23fb7dc0c884c97711e56a3540f2fe3c4355a81f8beb385911/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:75a1c7f46b9c19fc0ae01ca6fd076301628faa2ed7a8edbd55c6353c483946a3", size = 1557971 }, + { url = "https://files.pythonhosted.org/packages/df/c7/2bb25684f697801eb72866fdb94ed5edbff3867ce878b0e542a4a5b9dab9/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2fdf31a0bb85ea2575cc91669f005e6647d2efed491231c4dc1497bc9a5b3aa6", size = 1303230 }, + { url = "https://files.pythonhosted.org/packages/d8/85/754681846f26e0ff1da729b1ffe3171e93c22f0aa6ec3cea5b14e3703846/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b78e6fdef3b06c86ed263e1962fee5a7b9d2d158e738b212d13b2c605ee12f5", size = 1302271 }, + { url = "https://files.pythonhosted.org/packages/fb/dc/f5521d8cb44b69095c3982ae3658a12c403e0efa19e51aeb9c8a79dff60c/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_31_riscv64.whl", hash = "sha256:8d62a47714c8bc432b9fabcc29989c815c5da17327d35151f2fd0d85c2a7a5ff", size = 1309529 }, + { url = "https://files.pythonhosted.org/packages/73/0d/649182c7fd7c4f782279bed514de2dd67e48a5afecb605a098d64fdc01fd/ast_serialize-0.11.2-cp315-abi3.abi3t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8a5ffa70e76191dcf240d3c43e20c93b3bfd26f54d89148c762d57837f5bcd2c", size = 1356869 }, + { url = "https://files.pythonhosted.org/packages/bf/cc/aff4d84c16afa742d13a75384127c7d24594dc8c304f0558a15924fd51af/ast_serialize-0.11.2-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:bfbe47a3a7c368f28836e78b2440a3643ac0ec4c67d9fe53588e1448f0a3d35d", size = 1460006 }, + { url = "https://files.pythonhosted.org/packages/94/a7/891cbec2e5e0d7159196159d3ff0646622f3120ff4576c839ac2dd56c719/ast_serialize-0.11.2-cp315-abi3.abi3t-musllinux_1_2_armv7l.whl", hash = "sha256:7f1823275b246f9c7d373be6879e4eec09686948895d4ad083f4b27fd7e4da70", size = 1562935 }, + { url = "https://files.pythonhosted.org/packages/45/c4/2c8c4498340ea9aff87a9fd408309aa25d56dd51d7bbddfdb46a3c31424a/ast_serialize-0.11.2-cp315-abi3.abi3t-musllinux_1_2_i686.whl", hash = "sha256:57c0f5cb0021a5beb1e5e4d6e840ae2f23a28909703ef4d256a144cc1ad3d437", size = 1557109 }, + { url = "https://files.pythonhosted.org/packages/0d/8b/c5d4e5226fa18885fe17f949aee3ab1aeb8389c384d946ec1b7c9489cc94/ast_serialize-0.11.2-cp315-abi3.abi3t-musllinux_1_2_ppc64le.whl", hash = "sha256:cd320a5c4f1f2742af97eea22954f776379175c5ef2504801e9a155f2ff9a4d7", size = 1691603 }, + { url = "https://files.pythonhosted.org/packages/73/d6/1d2ca472586f9e3416a289a22f36eeb6dd6f47d77b1a4aba358405babbc7/ast_serialize-0.11.2-cp315-abi3.abi3t-musllinux_1_2_riscv64.whl", hash = "sha256:13b13afe32e845c86a573497729e1b7ddeb26c572c78bf50ece51da23b8fad5e", size = 1483053 }, + { url = "https://files.pythonhosted.org/packages/0e/16/d3703a7c1e3c76b144ac9349a54d3926d0749918a8dc13a66cede208b8ec/ast_serialize-0.11.2-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:9d80a81ec84660422579bdb8e789f656a794b48c7a1ae1261f6bd8bc1897d17d", size = 1502499 }, + { url = "https://files.pythonhosted.org/packages/2b/e4/d974e55c2e247ef26ed1df01c74940583db9a5b3a8bcaad5732c6e2047fb/ast_serialize-0.11.2-cp315-abi3.abi3t-win32.whl", hash = "sha256:af8c003ce721b0099dd55cef4ba733500fc3054ea0cc8565d8957aaf7cccdeb4", size = 1119739 }, + { url = "https://files.pythonhosted.org/packages/0d/00/d229443488e095054d5e0c0cc20689a2633b899d735849ff1b2c8e4f0cbf/ast_serialize-0.11.2-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:554d117cb916d8032d85007c654d179efbbfd446174c048062778136a922944f", size = 1158602 }, + { url = "https://files.pythonhosted.org/packages/11/75/389fc1a6cfa0c4b2ce522f47d8401329d8bb11732e516d46465960fef1d9/ast_serialize-0.11.2-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:d60515335750d431e462af6e722bb55720a5e7827192777bddfd9c4376065a4d", size = 1128842 }, + { url = "https://files.pythonhosted.org/packages/45/7d/c4f36898f19c728d091cdfdf960c9488e8d82bbe2e49ba13c05f43907a5d/ast_serialize-0.11.2-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:89499a439955931281986e97ca4dd3c064bf0d2e0027c0017344eb86667733a1", size = 897204 }, + { url = "https://files.pythonhosted.org/packages/b1/54/f67120006fc73a55b6d057d4662d061fbb4eceafce3047c76ca8b382eb11/ast_serialize-0.11.2-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:daadf1c3e0224621607ffe16f1379e4bd372271ed2e1db8a67878f0bab3ef7e4", size = 1240734 }, + { url = "https://files.pythonhosted.org/packages/9a/7e/8f2ab68bddbe58a66fbbaad87beeae3e7d7edddb17263d1fc423936cf34d/ast_serialize-0.11.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:1844ed9a487fb3de7325c52ddb33f2918b66b65cd54d3f8d83d23785ffe99fa4", size = 1228053 }, + { url = "https://files.pythonhosted.org/packages/d2/1b/8a69ab68f4c1603819f0481d756abdd8caf27cec7f1d77caa71007ebe997/ast_serialize-0.11.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b17869f4ba261a5fa468a753328a548f4dbaf74b4eadae9e28aff66df7f1425b", size = 1292542 }, + { url = "https://files.pythonhosted.org/packages/d1/ce/872f2e00f0467c289e483f0a34543463347243a2d0632748d89fcee5e0dc/ast_serialize-0.11.2-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:feb16d9c2a720e0120c58dd5d6e7b3c7c86b43249b60a3bc212bcb8fa031e2dd", size = 1294791 }, + { url = "https://files.pythonhosted.org/packages/3a/82/36277c12af861c64b375c316135d8feffe3f400568463a8d2b2de4c2c4fb/ast_serialize-0.11.2-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f3109fe4805384effc8d0f8e41fbf875aa8f389af91b4348c1cfb60ea6e4cb82", size = 1567583 }, + { url = "https://files.pythonhosted.org/packages/b0/d7/ec643df91cea8bcbcb4e8011d6a8b08e5119b84f9554879f3e3c786d29d1/ast_serialize-0.11.2-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:abdb3e49ba053c3486ac1263bee9f16cc9a4a8abd9f8c90bfc21e3669f3ad9d1", size = 1312878 }, + { url = "https://files.pythonhosted.org/packages/04/6f/4c992cd7841ba589fefb14ddc9aff2f6db7f2a615d4074f9ad04115b5ce0/ast_serialize-0.11.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a7004ba572f09be34342ccb98dcd4bad5707d3d81adc8cb4c3f685d2a2c51bbc", size = 1312642 }, + { url = "https://files.pythonhosted.org/packages/d5/e3/22aaa209c231a83cfea004fd67dee7a7a54da3f169c6c460b14b96887385/ast_serialize-0.11.2-cp39-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:59c25f47524efa052971b860e128b1add0c94ede7dd16b2962952c85c3582365", size = 1319776 }, + { url = "https://files.pythonhosted.org/packages/c1/f7/d4685fb54d10108ce44d3bc893ef670854d61645d47ed96d73524db90c23/ast_serialize-0.11.2-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f3a367e0e05ed2d1b747ceb07aa728a8c204cc008b589127e9bd4f40053d7575", size = 1365324 }, + { url = "https://files.pythonhosted.org/packages/42/3a/250643ffad02bda520c50a9a5f02a5d43259a06f34ce393c91761d134d7e/ast_serialize-0.11.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:00bbf1f6669f813b48925b759f7ae4591067d456d443924055cab386e7e0a719", size = 1467653 }, + { url = "https://files.pythonhosted.org/packages/c7/da/af66a646b9b7f8fdec95ce83fc7b1fe538b06864bc79bd554ac4fae2e6ea/ast_serialize-0.11.2-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:ec1c20f89c3e0d83576e3c06f79375ce936266591fe0d5fd969914af3185cbaa", size = 1571914 }, + { url = "https://files.pythonhosted.org/packages/34/82/77a9714564b9e8800087a8afec41527c65c39e49282baae2ac847b9c1c6a/ast_serialize-0.11.2-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:c58bb119b73657fdc5569692f316e1e25ca114bd62f7782eb527c6be438ba3a9", size = 1569862 }, + { url = "https://files.pythonhosted.org/packages/65/06/fa77b52f46b9bd6dcd8ff2b880e3781f8c1a316bb1342bc3de92907c6f96/ast_serialize-0.11.2-cp39-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:f739e0b601be7300c5697a2573d9200bd1db74b34ab111ef9537b9d5dcd7f106", size = 1699020 }, + { url = "https://files.pythonhosted.org/packages/e1/09/239c83153c7e0798e5867d6909cb06f53dccfef02f6999c8e2e21ecb98c3/ast_serialize-0.11.2-cp39-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:cae5addfbb54cc1d47fe947ef9138e9d83849ed1cbc72b819cf36d96a2315b07", size = 1492869 }, + { url = "https://files.pythonhosted.org/packages/2f/eb/6108fb9a43fc7ab5529856e38e33c6e3e064fbfe375fdcbb208c7cd5438d/ast_serialize-0.11.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:2fa3be25f7f5351b1b39c9f8a52779b2dbf21199efbae564b4746422e8edca4e", size = 1511621 }, + { url = "https://files.pythonhosted.org/packages/8a/82/60367e58ef346a41ebc90d3f28593c1b8f5c2cb5314c7b2bbd98910ee131/ast_serialize-0.11.2-cp39-abi3-win32.whl", hash = "sha256:d70556a2f9230a44c99a655774cde823f056efc34466eabfb4085f0cb1ea9f99", size = 1125873 }, + { url = "https://files.pythonhosted.org/packages/23/bf/b419c3205ce1143ba7c69baef4f0ba43c14d8712113bf34f9e0d27d609be/ast_serialize-0.11.2-cp39-abi3-win_amd64.whl", hash = "sha256:b9065dd23131a23b41f5bab3bf4e9b3c350a3fe8e36e8200eded9b729fcea484", size = 1165434 }, + { url = "https://files.pythonhosted.org/packages/91/a7/c8bbb2173f7a7131b3b2412035b2d814ab5ef2ce9799bd06f07c451640e4/ast_serialize-0.11.2-cp39-abi3-win_arm64.whl", hash = "sha256:dab599cbdcb7b45b18c41fad746645580b3a24357082b7f0e8921cd373804f27", size = 1136031 }, ] [[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" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } 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" }, + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, ] [[package]] -name = "exceptiongroup" -version = "1.3.0" +name = "iniconfig" +version = "2.3.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/0b/9f/a65090624ecf468cdca03533906e7c69ed7588582240cfe7cc9e770b50eb/exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88", size = 29749, upload_time = "2025-05-10T17:42:51.123Z" } +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503 } wheels = [ - { url = "https://files.pythonhosted.org/packages/36/f4/c6e662dade71f56cd2f3735141b265c3c79293c109549c1e6933b0651ffc/exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10", size = 16674, upload_time = "2025-05-10T17:42:49.33Z" }, + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484 }, ] [[package]] -name = "iniconfig" -version = "2.1.0" +name = "librt" +version = "0.15.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793, upload_time = "2025-03-19T20:09:59.721Z" } +sdist = { url = "https://files.pythonhosted.org/packages/36/9b/356320fbae2ac8467e21c5e73e1389c80468e4998c62cc7d3536cc51b614/librt-0.15.0.tar.gz", hash = "sha256:4e66cbe84437497d951b799d3e1551291b6fb3d643820a7014b3655d57a59162", size = 214338 } wheels = [ - { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050, upload_time = "2025-03-19T20:10:01.071Z" }, + { url = "https://files.pythonhosted.org/packages/59/52/06790ced2ac7117f890c21bda43c39c958ec82aa665c0718e821d33ff939/librt-0.15.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:823b92cf3c18ecd08afc70c42473888b41b6e8ef5046f3b82c05c154a2fa3d22", size = 148039 }, + { url = "https://files.pythonhosted.org/packages/e7/1d/8e150b7fc449a1f33c8a760965cc1f43b14fc1577d9d0b50ab2701420e74/librt-0.15.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c70bc1b602cf59917e8f0c7a2cbc8bcc6fbc14d5486136b00707a79619121d63", size = 153067 }, + { url = "https://files.pythonhosted.org/packages/51/87/a162bc5a66a35599dc619ecb215145f4de7d68e886b479b6d12593139f7c/librt-0.15.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:814ff83a25b5fce8b9c80c4dd803153fb5c5599fc74db9e022466938368957ef", size = 493087 }, + { url = "https://files.pythonhosted.org/packages/e5/3a/aeea1fc620cf48060d3065b37614edbf97043c099d0f50782bc8ca61d897/librt-0.15.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:57f5eeb6ad4c180de583b1038e61fe5fbd9796bb69a8a1c1a0c7ddbec4c8c60f", size = 485608 }, + { url = "https://files.pythonhosted.org/packages/52/ff/fe571ad416f0856fd0d5578ffc2e6dc531891e586e36b647bcf50569cab8/librt-0.15.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:82909c8f7eb9952656b65d3147afde4cf8e6d5a991eebc86418b5e65843b0ab8", size = 498723 }, + { url = "https://files.pythonhosted.org/packages/0f/e1/7a65eb5dedb1f00aebd948cdd8e17add48bf066cab3514e9daf84ab45a6c/librt-0.15.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f779070399f991400fc451719e0ea388eb7de313388bada2c127a35de05f798a", size = 516002 }, + { url = "https://files.pythonhosted.org/packages/5f/45/59832b0ebfbd08c2742e6ece372ceb53f18bf1faef5d33c8daf3abebf749/librt-0.15.0-cp311-cp311-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bac89069bc496ebdf4f79ebb57bbd10d0b214c8454225deb672d91002bd17e18", size = 508607 }, + { url = "https://files.pythonhosted.org/packages/ea/0d/37fa73f3b43ebd8259f91ae9102a15e5a54e65d581e48dea72df3e81d7a4/librt-0.15.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e0d00c708fb2f5822b152429b1ac80a58dbbbc3f6c232c4d13a3f7fcf2ea5b4c", size = 530422 }, + { url = "https://files.pythonhosted.org/packages/26/02/e046c6fe7a5881ac34623242192f484426ba8a75595fd18f22c53a3f530f/librt-0.15.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6c6624fe268625869485553dd7cc1daf30d22558215bb2a4ff16f67a9801a31a", size = 534303 }, + { url = "https://files.pythonhosted.org/packages/95/32/d5e6d861ab0366f3edf74f887ab0c9eb9f535aaf01d32b80b4f734daa179/librt-0.15.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:f56b397858a23dacf35ede366ed2212fdc03a6a57a1ad36468ad6e9dc5fac091", size = 536084 }, + { url = "https://files.pythonhosted.org/packages/2a/de/d69d725513fe53fc90c6d7a1f86e4428939bad2fb905b17fe4c18d413dde/librt-0.15.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:4388184646efe2054911c5b00a1077d6d1ee86a95b7e8ba96dc7850a809f3f40", size = 514307 }, + { url = "https://files.pythonhosted.org/packages/36/93/f8aded0d6682b4f25820fa86e0690f87f01df9fd7bd09ddb04d9167ad021/librt-0.15.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:97335f59082f9fe2ce6c2a9cc6433a0114bbb6cd4d5c09dd76c95c68b9f9a8b0", size = 557686 }, + { url = "https://files.pythonhosted.org/packages/74/09/ffeb6bdeb6cd862b4272fddc8ad05f938dd25d020ed517e631813917d80a/librt-0.15.0-cp311-cp311-win32.whl", hash = "sha256:83380ffde38062a2e9bb55d83e74474f6614665528b98a6928720fc006dfffbb", size = 104917 }, + { url = "https://files.pythonhosted.org/packages/96/28/7e2313a3ffbf0b4de7ba3da58a09e488507b4bd1ea2b5e69378354a23415/librt-0.15.0-cp311-cp311-win_amd64.whl", hash = "sha256:f75720477ee05d509a310e856cacc8d909adc182f7b91193c207bcc26d7ee6db", size = 125886 }, + { url = "https://files.pythonhosted.org/packages/39/9e/04b8c3cde014ef255ee785730425268354543acc38902093a40afa0dc164/librt-0.15.0-cp311-cp311-win_arm64.whl", hash = "sha256:256237037a3ab001ae8d9803b2d43562a4c3aa38739843694349e4d5ebb0fd56", size = 111885 }, + { url = "https://files.pythonhosted.org/packages/ba/39/99c25030e782bdfb7a21be8c05254806a2e4bbb05c8d50c2a2130acbfa05/librt-0.15.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:e87bc679f86a99aa3b26e3c78eeb821a247c9a28eae48eaafcc32c3bf4c3bb9e", size = 151021 }, + { url = "https://files.pythonhosted.org/packages/14/43/f4b1bd1b2888798a1409808889a25ea1ba49eaabce7d681ed27734c2df9d/librt-0.15.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:71599e011ac880e8e45d46047d714871894c7d4ab6f25626f8d4f89da21f368d", size = 155267 }, + { url = "https://files.pythonhosted.org/packages/0c/db/3ad9c965c72f1e1d6beeec44ec10a54e17be8ae042fbb4baade16cbadced/librt-0.15.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c802434092b769b1d613ed2e13fac15fbfce1934a74bd10283b03c0fae231cd1", size = 503136 }, + { url = "https://files.pythonhosted.org/packages/4b/07/5888a6d76acd62ebce66c61b74d94e9370b9c32929f111e487bb6546f8ed/librt-0.15.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:5500eeae393a184d14e1f35645962c27129d20c81afa4069e6ef826ebc2b3aaa", size = 496670 }, + { url = "https://files.pythonhosted.org/packages/29/39/ab57cc2f5b276156da02bb7f5a8921bada1cb1993ffec99acf811c602c23/librt-0.15.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6ecfc32dfb46fb7b565bcd6abf9412acf978775a998273d22888a6d7953730dd", size = 513688 }, + { url = "https://files.pythonhosted.org/packages/a7/b9/bdbb0b648b5c2befb031f4c6f3b1dd857415e8fb492a25a3c764a6681e6c/librt-0.15.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:89cc46cfd15022e35084355478c9ac809d90b1152222706ac9a7655ec21df6fa", size = 531904 }, + { url = "https://files.pythonhosted.org/packages/93/26/473c2e4b6c104e9e58e27ce95fc8005c8bd4fc36cae4f254371125a92db8/librt-0.15.0-cp312-cp312-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d5f51401d102c885b9ca509e62c79b1dbff286e1b9b047fde6f763780789356d", size = 524427 }, + { url = "https://files.pythonhosted.org/packages/26/60/03b3abb82b41714671b907bf6989b228e31e6a8af52dec82b5b0728dc250/librt-0.15.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:cc30523e3f1a23fb7511cc659834a0d01a1042bb9de359bc1c131cc4ec6c9656", size = 543155 }, + { url = "https://files.pythonhosted.org/packages/f2/0e/9bb1f0a4affbd0a1888f4f79dc03ed2a299d9a2c26c59ab2a97dcbf11903/librt-0.15.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:59fe030d8ae4a57e3fb7756bf35a858de74e04066fc8555c53d0af979132af81", size = 546890 }, + { url = "https://files.pythonhosted.org/packages/dc/84/6937a280d461f7de6e031ffb02edc2b7c3c90d49d630565ce8ff27cbc5f2/librt-0.15.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5a6526a2a956bbb1e4ae3568c82e650fc99119c66bb011ea60715744955a2b4d", size = 555163 }, + { url = "https://files.pythonhosted.org/packages/bc/95/2a2853c1ee014bf102116e7f897a04beeaeb2461b45b79af98bdfb95f1ef/librt-0.15.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:85ea21ec6730194d67156b0e0b5430ccb1d61f8b8b907e39b37f9812b74a13f0", size = 535812 }, + { url = "https://files.pythonhosted.org/packages/c9/4c/cf9601c1b4c5f09280acd5d83abdb2e68527a2be8257136eb42304218622/librt-0.15.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1e47b8ba865d7ede071a91a7163073bbaeb72541f1ef8a07d512c45c7b5007f2", size = 573688 }, + { url = "https://files.pythonhosted.org/packages/47/6d/9ac7cbec46189a7625af4b5acbd25f10d827f4141b2002181848c8418923/librt-0.15.0-cp312-cp312-win32.whl", hash = "sha256:a5207ec414d1c4a2a7231b2086970dc036f94293cdf338190984958a013a42f1", size = 106138 }, + { url = "https://files.pythonhosted.org/packages/38/d0/2ae99c83be86ce23f925ac1aeeedc777e97f427c4a8d190c70d0a16e9a87/librt-0.15.0-cp312-cp312-win_amd64.whl", hash = "sha256:73b30cfa976659b3917c8f6153bdb0591c6a9ec6583599fd24a689b690622022", size = 126974 }, + { url = "https://files.pythonhosted.org/packages/5d/ef/dd24f9635c730b86b87587967dda7516b1845e8b17684603d31607fed598/librt-0.15.0-cp312-cp312-win_arm64.whl", hash = "sha256:a54cf9e0ef47b96af580849db5471142200568ce1e02cbf416addab551369570", size = 112292 }, + { url = "https://files.pythonhosted.org/packages/e7/42/467b53a601b406ccd7b97c1fd54b59cb34f9185ad5ce7e9d5c3c4e8961c8/librt-0.15.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:db13ca398005abcbe538deda87b686d9bd08b7001cf40c4c06b444960ae10a26", size = 151029 }, + { url = "https://files.pythonhosted.org/packages/3e/e6/36c2299b7a94b84fdd01220d8a777a71be5be0925bb0dbdf71c0a06a34d9/librt-0.15.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:aa1f1995789dca3698bc550aaceb09a51bd5df0a057ff84ff15296cd1975b801", size = 155194 }, + { url = "https://files.pythonhosted.org/packages/c9/b6/ed5071f9325845e670bd36012757419767fbf56af77ed483077b9e4db541/librt-0.15.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:55456ea87d8df21808446d03817be2f65e20391c1c615d9187440dff28cd08dc", size = 502568 }, + { url = "https://files.pythonhosted.org/packages/7f/81/6450c67c3615d87704bcbc21323fafc69c799b06a044c447529f725d4b01/librt-0.15.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:5a86a5a08c2235316bdb359d5dbb6ce0abfca7fac06363103e2c5af571d92f95", size = 496153 }, + { url = "https://files.pythonhosted.org/packages/e1/d6/5f52b722bc75076954b3bfd49be15ea362df4d580c6fb315d0f617100d30/librt-0.15.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e56b6a368529bed262da40ce13f8fef590db0479819cca84f16a1f01ac356d0b", size = 513336 }, + { url = "https://files.pythonhosted.org/packages/8d/e2/c08fd1d36ce63ea5a12b85c5d37f4550b5f86a692167e41e5a74222607ae/librt-0.15.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:234d8d394721fa0d786af15ebf1f3fb7f3ed82fd1cd0cde45c2f247b5d4281d2", size = 531661 }, + { url = "https://files.pythonhosted.org/packages/3f/d8/d9482fcbeb177b9eb87bb3899eeb3b42be690313c652f9e146b1d0681fb2/librt-0.15.0-cp313-cp313-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d8363d7accb0286ac3a0e633f396e93800dafb8150494505daf9515bbda591f3", size = 524487 }, + { url = "https://files.pythonhosted.org/packages/10/cc/075171517b41f861753034fbb151b42cfc83bcc853849f24f5e66fd60ccf/librt-0.15.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0f0ee3644d951f31055ad07d77d92520e84505dd7a432cc4cd501dd70ee06785", size = 543201 }, + { url = "https://files.pythonhosted.org/packages/b0/03/42c2330f37eeb475b6affeedd06518f60035f323af3a839335e3fc9fef2d/librt-0.15.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2cfd1a81a648806e6a7717be4cc4d1bb392fa229752bf8444ba365e381e984d6", size = 546467 }, + { url = "https://files.pythonhosted.org/packages/57/1e/1ad4c5638f7e64d8560328bd25c54b409a661bdb6ff254b38ff90744288d/librt-0.15.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a6cd22c9da0d866558e46a041f1cc0c2bbb26b61b137b2347fa834c332e1d101", size = 555139 }, + { url = "https://files.pythonhosted.org/packages/49/41/39fa7d15db1204cd1cbe6514680fbdc243adf754a0885061308f43afc013/librt-0.15.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:6d5225ef8801e4ea5e482fa9b5dfb891dd9ef6f6d870f1f25d449ca2c70ac218", size = 536050 }, + { url = "https://files.pythonhosted.org/packages/1e/88/c6dcf0dd8e26dc0c9a499a2abab8646c86dcaf9ecea9524cb46d3686331a/librt-0.15.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d28a05796b99f749bf8794f17ba9ba1612d0076b802e9cfc62c554634e9ce3b", size = 573700 }, + { url = "https://files.pythonhosted.org/packages/1b/9b/ab54c71a7918a7c34fa5327fb61390a77446a07a146fbfb1165250a61035/librt-0.15.0-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:2067ff438048cead9d223ca5675bae2a25e520a7c3e6c1498bf9c6892d22caab", size = 82194 }, + { url = "https://files.pythonhosted.org/packages/8d/b2/4f9a243bb892395f3becb80789ade13771701091f9f07ab8230247953ba8/librt-0.15.0-cp313-cp313-win32.whl", hash = "sha256:1cd3b721f24c206398b9e26da3c3a9c011e6e89d06f318ba8ebefc30f1003890", size = 106231 }, + { url = "https://files.pythonhosted.org/packages/bf/af/64aff4885a40b93132382f2c314647d722574605416504379184ef3045ea/librt-0.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:f395a4a9a03ac062dbe9a9f82e0c720502e590a38feee6a757bc82e9c63afbd8", size = 126996 }, + { url = "https://files.pythonhosted.org/packages/27/83/335bccf6c7cb9028cb0b54aead27d9ece3f01f83bc6baa2abace5da655c1/librt-0.15.0-cp313-cp313-win_arm64.whl", hash = "sha256:0a15cb554761247d84a3ec0cbdf4078d70725384f0e4662c0fa3b26266eb60ad", size = 112188 }, + { url = "https://files.pythonhosted.org/packages/a8/93/949053fb462eecc4a9a5ee770a81f4b40be7b79538b245545d4aebc6b58b/librt-0.15.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:f5de7feedc56337a088eb15cd9fafa9938367362221d8cc62c642b7f94821993", size = 149833 }, + { url = "https://files.pythonhosted.org/packages/61/ca/8281aa6cd560a3420e4497729f6b704b53be3eeaaef82d5aeadddaf7441f/librt-0.15.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:6c0eb900c0e91f4aebe680845242e614f1864edfd44106380d0752ac29522bf8", size = 154088 }, + { url = "https://files.pythonhosted.org/packages/dd/02/1a1662dceaba6a086360891448d5ce9a7d3555976cae59a31a39d744b9c7/librt-0.15.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8c9a650a188e38bac005048cbe6342e81407782944d01934540ab75e417df21", size = 494215 }, + { url = "https://files.pythonhosted.org/packages/69/84/99211619dc656370a3740c33d2b0b6d5a3fb1e73689314f6ed477a397dc4/librt-0.15.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:92bfed8deec93df30286b9fe9e3b1dd17329cc076a192b4ee5ec223841d54953", size = 491173 }, + { url = "https://files.pythonhosted.org/packages/d4/aa/5448d0b05f4579b635d3899176817ebf561af0e57bacd425b5b1887264c1/librt-0.15.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ec4b19788f835711a2072f9dbe6b03b3bf32ed1f0fb30cf399bdd59d9f0c33fa", size = 505512 }, + { url = "https://files.pythonhosted.org/packages/95/82/01940e40b83c43a546c4a3c896cf34ca272a9690899d55914e4827b3dcce/librt-0.15.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d4c7bacb70930f3d0a56f4ecf1be474a1f0d941b01dd73b756f3c256d42cb879", size = 523073 }, + { url = "https://files.pythonhosted.org/packages/88/fa/759c0030f3ee371439eb26de34fc745807caf0abb878af7af4b8b7c3dd3d/librt-0.15.0-cp314-cp314-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3e79f05e4a08b4d880342673312bbc895b56df7765605796f15902eb5367d3ae", size = 515080 }, + { url = "https://files.pythonhosted.org/packages/0b/27/894e072228fcb159703c655da69f8cd10dbed489c36e3df7dd032a2483be/librt-0.15.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a417149c0cba4d50b61e992e5a15e69eaf96746609b461cc4ed168aeef6b79dd", size = 534164 }, + { url = "https://files.pythonhosted.org/packages/98/a3/0078e91c1f36f8815db17827de15650b9a3fe56c55fbf998c854b34e40d3/librt-0.15.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:da7a94d6a3411f579d72aa3e3bc5fbca7ed4549f3dbd7e5de3aa567333374285", size = 540616 }, + { url = "https://files.pythonhosted.org/packages/86/33/81a29b796dd52a45e9ef7974c7732926e8f10f15b8d2be505665979f896d/librt-0.15.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:856f743ae607f2c1380eccb566c0038a9fb3eabf0fc2be2704d76d9f73557239", size = 545890 }, + { url = "https://files.pythonhosted.org/packages/05/82/8be1baa1350e5d30cfd70ae79d0a6f4dc5862ef47f7bb2808aabc9bb86e5/librt-0.15.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:779a6e7c894737e5983e7790a9c78c4000c30e23c9aada08081bdbea53b0fa60", size = 523287 }, + { url = "https://files.pythonhosted.org/packages/c6/4f/d1be6a01a35c20ef734e0e44113f87d4af756a9354a89dcfbe3b4f8af5e1/librt-0.15.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:96bb17dbe8bab3c0954fbebfc69ed395599de75b6bbc35e3270a878e15d4dd65", size = 565868 }, + { url = "https://files.pythonhosted.org/packages/67/88/649cfa33f5825927b160610f670bdab012a64d627eddb94fa795ea4292fd/librt-0.15.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:7220697efaa6e5348fc3d18ee7f8563d4bfecd9872b37ffb915bfc1d08840622", size = 81619 }, + { url = "https://files.pythonhosted.org/packages/22/31/8e88a8d5e48fc8d1a817787fb6811dfff6499acd6c8683dd83934aa6ede0/librt-0.15.0-cp314-cp314-win32.whl", hash = "sha256:f54598964d357b1c5ab77cf5d92f21e598fe0e23cdbe9618480807f81b4eba15", size = 100138 }, + { url = "https://files.pythonhosted.org/packages/80/92/20fd6c4b6a1b1a564b076d55cd3d427d8428217d7638dc25a654cc4791d4/librt-0.15.0-cp314-cp314-win_amd64.whl", hash = "sha256:3ff5893a2c23d886aa9ce786de5ac6ddc74aeeaf90743682b74d920e117d2e28", size = 121258 }, + { url = "https://files.pythonhosted.org/packages/fc/28/6af430b44d9ebb897b865a3c363b6dcace51357be2347cc0f8f869656a86/librt-0.15.0-cp314-cp314-win_arm64.whl", hash = "sha256:3722a099730704c9a3d70c879fc0f51daec25fe5f1555672d97bc595abeafb95", size = 106467 }, + { url = "https://files.pythonhosted.org/packages/7e/aa/b42bb798942ced219f6d63b27e07f91237887a8d0bd0921666db79a13790/librt-0.15.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:38c0c7d4b6fc06c3324b3f9162c8391bfc4fd9dde53afe1033ce7edb48d5a714", size = 159523 }, + { url = "https://files.pythonhosted.org/packages/75/03/1b53cd4ef904e73b1d828a5f90143bf94a2967d7cfff0b9ccf93e12aa9b4/librt-0.15.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:8b2fdd7ead3c995c37940a790690660d0ca006c302db26cc51933f6766866fc3", size = 161638 }, + { url = "https://files.pythonhosted.org/packages/ac/c4/9f9c9fba097d49e9e694c2b4dc331df31884645ecbc58a93b4b5fc69d2c5/librt-0.15.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2fde98cf1fc4bac144ce23c2c4c017b924ba714509ea9334977b0b27050c837d", size = 701795 }, + { url = "https://files.pythonhosted.org/packages/4c/05/0966840bda0380c8ae167b9043c6230202941cc90ea29c48e096964c765e/librt-0.15.0-cp314-cp314t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:e3b461183c5fa7681b48560f91515f53a953122fb30c71e07abc67d7ddf58c38", size = 682147 }, + { url = "https://files.pythonhosted.org/packages/18/af/1c47ca573c30ea47d195aec26133af522fea1104afaace028d7b32247ea8/librt-0.15.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4bbcc257e3babea20a91715c361b24554ec4e8f51aa578568afc230799fe1a19", size = 696397 }, + { url = "https://files.pythonhosted.org/packages/2e/0f/1aed6223d4f9f9d1171a8596ff100ea4c3f7699fea7a4ba657c3e60daa6c/librt-0.15.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b845b8d48088fad0cadc84be4b8fda63203be7e9237b71015b3925443c1f35ab", size = 722542 }, + { url = "https://files.pythonhosted.org/packages/c6/22/9e3a929aea456c97d69e6ef3884efea56d4807f97399471cc946baebd8af/librt-0.15.0-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b30e600e8f337b9bd7f39b86d9fdfedc73cc46e3d0f745931a23a234220bb7e2", size = 729709 }, + { url = "https://files.pythonhosted.org/packages/e9/1b/c327ef6018e3a9ca0b8e7c5eddeeb331ba8f9b76c24e126d37d0f6d62faf/librt-0.15.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:64b0c8c35aa4c4ed79896359f3e0b285cbe4e610042106500da4811c322cc108", size = 752891 }, + { url = "https://files.pythonhosted.org/packages/d7/d1/d5f1ea02c56930087009e39db9b70660a663e76c730b27b925d786718457/librt-0.15.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:0da0d94cb802f32a0524653e7201f2cef72d5f700a5407678f5290483d4fcd08", size = 745301 }, + { url = "https://files.pythonhosted.org/packages/d9/3c/5f7c585d15ebb2250c73e7c0ee4e9e47be72c65d520c07ddbcdc62037674/librt-0.15.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:4a6369168d371207339b1e50d4532b06a7121586141f82599505a3f315751d47", size = 747921 }, + { url = "https://files.pythonhosted.org/packages/7f/52/1443a446486eba966bcbca1696b472e4f210320ec42f490a47f48fbf0fdc/librt-0.15.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c434e072557ade9cbc642d052c89d031efe47d5c9614523619d0d74a02378e81", size = 727561 }, + { url = "https://files.pythonhosted.org/packages/79/91/2270a9380f11725cf83ce1925a5e32dd1dde2be9bba597f25c10a38644e7/librt-0.15.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c7eec6a42018bc1d45763b1c162d3d2bf7c3b9a1b0ed30d3e91dcba390efefcc", size = 774417 }, + { url = "https://files.pythonhosted.org/packages/9e/3b/f4b1548d4f5b99186737fe27aec238e9823e8d5d23bf4df007c030689dc5/librt-0.15.0-cp314-cp314t-win32.whl", hash = "sha256:6912fa5e635d74529ac7cdb1bdf6ca3af4453da8d1edbe0110ee1cb4ad407ebf", size = 104381 }, + { url = "https://files.pythonhosted.org/packages/80/b6/134afad262def1de04c0843c376d02135f1168af43f22e09a52bd8394727/librt-0.15.0-cp314-cp314t-win_amd64.whl", hash = "sha256:8e11699ed745931c395acd3621b07062e0f840efa6935aad87a64ed0995f0915", size = 127034 }, + { url = "https://files.pythonhosted.org/packages/99/5f/1b6846b20572bd699c9e9ec321a5f781845bee477df2aa2a43b28bc40119/librt-0.15.0-cp314-cp314t-win_arm64.whl", hash = "sha256:5d2a91724463bfed4f573cd7a9fdc856d2e230d0c0e5a61416a93481dccd8605", size = 110827 }, + { url = "https://files.pythonhosted.org/packages/c6/44/4de9f4ddadb009a55c7758eb5736d62534a7daaf27bd71bc50e64b606b06/librt-0.15.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:8443e38dcfcfdbcf5add5118c623efd788d65ac2e25756d6251a54a06a4d0aca", size = 149843 }, + { url = "https://files.pythonhosted.org/packages/1f/eb/5d9ab71e30119c44094e0275f38b47dd327aea0f843a080396677029d508/librt-0.15.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:6d15a29033c57490cfe2069097c6fc4049e4e65ffbb749be7dc453b7c4c68965", size = 154510 }, + { url = "https://files.pythonhosted.org/packages/d0/9c/8505d1b8f5e8c19587bd03f7429993b3e9ce5c06819d856bfb11d919374c/librt-0.15.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d2c05c729b589e734c09578bf5964be48a911765484840d017bbc84f49d4c4ad", size = 497543 }, + { url = "https://files.pythonhosted.org/packages/1d/9a/3a8390775cb095765aded027ac9c63e7c8ea74e731498607544c6505de0e/librt-0.15.0-cp315-cp315-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:fa60887537e1d0cd2d9982269d33a709bf54b195cd2b9364fc0a758022af5bd9", size = 480452 }, + { url = "https://files.pythonhosted.org/packages/e7/40/258a4a7117ee915d66de5cd9b8ade65a440993161107ce3a686f1859955c/librt-0.15.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d8bc24219b24c0af375718942ab75e3544b2763085f40f965be4326734ae8328", size = 507768 }, + { url = "https://files.pythonhosted.org/packages/6b/c6/2f4dd296c97a0b85b98894519b279408ec9dd602d4f692b1ea0e25dee670/librt-0.15.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:86a21a7bd3fe3a419512ef424cc1c020f6771d0b29cfddff36d1635a855e63f0", size = 525122 }, + { url = "https://files.pythonhosted.org/packages/49/dd/29eab42be13b2bf0ea8cb227135a45d44693e30a7e8b92871981ff56b82b/librt-0.15.0-cp315-cp315-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:dbab647e88d90b3167b91efe7091e248653688ed4337e4f90907a722c7361bb9", size = 520371 }, + { url = "https://files.pythonhosted.org/packages/91/ed/4bad71adeca8fe208b775c2a35417fa5a2584c8f4791daaf89a89450fea1/librt-0.15.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:d8edcf6f550e918dca779c069b9e156385c60b406f99fc7641f32c52f7193659", size = 537258 }, + { url = "https://files.pythonhosted.org/packages/4c/63/59dba6143fdcc7240c54458b629f3250000a61b8945890fc9efd451b19c5/librt-0.15.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:8b62076030baa2d8b1501a46bf0e19c27a489aa90671c55665bff7887f7660b0", size = 527432 }, + { url = "https://files.pythonhosted.org/packages/ec/21/21a24c6a2327d8362580efebe77286bf47b0f4062ec5ea41766e609d3c7d/librt-0.15.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:d00d20d1818e82a07a0ee0aa89a98b17ed7916b92441090b683719cb20a59b6d", size = 548108 }, + { url = "https://files.pythonhosted.org/packages/5a/6d/fc68c89a7971418b41f9a873623ff935cb864097544c6a2f8ce491c8ef5d/librt-0.15.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:4e6ee93fc3cf848dcbf0cce2eca73d8e7dcd0cc2b6df3a529d57750b30a4c55c", size = 529681 }, + { url = "https://files.pythonhosted.org/packages/65/7e/c2d98766124400d722063a630b0fde38a9fc768705d37eecca15c47dc192/librt-0.15.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:32896a0af72508ea979e0acb4e4c04cbeeae04938167950d535c83c45597167d", size = 567736 }, + { url = "https://files.pythonhosted.org/packages/55/6c/f8c34a95e3a515c6e1c192b89511e7253c89a7760c6b500d57ffdb8d2dc8/librt-0.15.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:ec3ba415afaf951f6951b1dd16d3c8e4f540065fc382d7e70b823a79567ca374", size = 81673 }, + { url = "https://files.pythonhosted.org/packages/c9/9e/e23fa8e78679ec45728188650b39e8ff476c83b691c96f749217df3b1b7c/librt-0.15.0-cp315-cp315-win32.whl", hash = "sha256:d2813ba2503764f0450680c533d13df7cff9b49df1411062eded5f67db4195b9", size = 100081 }, + { url = "https://files.pythonhosted.org/packages/e1/dc/3eb4c5e297343f0620a55532cd7c8d764d3001fa2159212dadf480464827/librt-0.15.0-cp315-cp315-win_amd64.whl", hash = "sha256:b87d67e33afaf265262f2a66db578284b88ee2e6fcd224579cb5c15518677ad8", size = 121228 }, + { url = "https://files.pythonhosted.org/packages/97/70/43abce19f04e49762f8ec834c8fafee13cc40fd6b94a72a24e534febfcd0/librt-0.15.0-cp315-cp315-win_arm64.whl", hash = "sha256:713bd7df21170b982e729e46870f31d6b437bd1a9b4648cffb529bd3c2ec5c4b", size = 106487 }, + { url = "https://files.pythonhosted.org/packages/de/15/83f2deddb9368b8951ec8c9477269b5b9b8bd9bbf15e57402d0f38817dca/librt-0.15.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:3de789c82752730f94782a5ee518baf9c05edf85733aeaf73bb6e518755cdf54", size = 159448 }, + { url = "https://files.pythonhosted.org/packages/06/bf/043097353f9b3c73b583d07f6b8e552795463f4bfc8caf85e42eee50c26a/librt-0.15.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:e0b5deec9a8664eb722c797241970fd4aa1894d25fda36a1ddac0f7407606bd6", size = 161686 }, + { url = "https://files.pythonhosted.org/packages/f4/2a/8ae77f9719d42ce71cd708560a3557b38ac3c17a0383e57f87084de45bbe/librt-0.15.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5563302a8359bc2295bb7084d1a8ed1519df96afb30eb2aa4e0bff7b54228988", size = 710668 }, + { url = "https://files.pythonhosted.org/packages/61/34/c0436ea134deb9a0d6da80a396a2739a81cb31e0418f7227239e23140898/librt-0.15.0-cp315-cp315t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:22d6263b9d39d7bbb286fa791945646e3218f1be2d693e36fb630f1d0e59cd13", size = 679396 }, + { url = "https://files.pythonhosted.org/packages/4a/9f/001e0d99aa9250d5cd5715a9081291a20656083459f9019cda15255329e1/librt-0.15.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:39ffd14646190c454f0d86e0d256b33f00a87a26ab410e619773b841d0e41416", size = 704313 }, + { url = "https://files.pythonhosted.org/packages/2d/53/b34fa9d0ff00f136f4d58ebb4c411ff634baed1eb412bb602a2bc8dcafcb/librt-0.15.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47318cd3a61401452de11282242937e3e057c4fd3dbaf601e269d0928a06c0a", size = 729847 }, + { url = "https://files.pythonhosted.org/packages/86/ac/fa4d7a424665040e95baf480a6d523446057684b6758624c85338e8a23b2/librt-0.15.0-cp315-cp315t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a56a1d4f859a82ca5b99fc4b82c9b027b15e3c455c5cd99e7d0719f27bb20b6c", size = 742736 }, + { url = "https://files.pythonhosted.org/packages/8a/f1/e17a9bb5de6fb8c3186ed1a7d68d21618b027ac2d3633e03d3b6109c67ae/librt-0.15.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:077471b3182db4e17c36ae91555f36a4d2c00080b267f749bcad34a478a9a302", size = 763454 }, + { url = "https://files.pythonhosted.org/packages/1d/ec/ecd02cd30935b931b9cdbfed6ab5a099c51b280b4e7baa274da80978ed27/librt-0.15.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:411ca4d1b905b860ceba7570dd6717a71dedaddcc4b0f77ece710aa41ee11f8d", size = 743296 }, + { url = "https://files.pythonhosted.org/packages/e6/b5/b3c2b8353ce820a4854f78d19321344242f89fa71c975b71132ba9bf242a/librt-0.15.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1256589e0b0adb31751d685a68bce29d73407ddf4ef05d4188f49d5dcf9566d9", size = 756217 }, + { url = "https://files.pythonhosted.org/packages/3c/52/6cc22542ba59146b05cca2a656f9ff8bb67e38e63d12c3b0cc183d837bf1/librt-0.15.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:f42b74a53e5f26a0ba0007411a7455b66c67ce4022a39cc1f56fc4efd65bcbab", size = 741934 }, + { url = "https://files.pythonhosted.org/packages/40/32/a04b72b1aa86e3be23b2ecff8c1aad2dcc955bd3956d6d26e7e34267e57a/librt-0.15.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:291bf73caf78b9e88d6fae9bfd693207ff7d832e2fdbe2cf8e746bc13f5f892b", size = 783763 }, + { url = "https://files.pythonhosted.org/packages/6c/f0/89eb11dffbe9279ff37144dec786927314502ae0b114f1449dc78c458aab/librt-0.15.0-cp315-cp315t-win32.whl", hash = "sha256:c16d15ee371643ab48dc8248a3e680ebbeca573a13af2c3dd0c985b142d77162", size = 104313 }, + { url = "https://files.pythonhosted.org/packages/6d/4a/1f1978c200f563beda63c36adff2d65bbecb81e365e8e69e572f5f70fbc6/librt-0.15.0-cp315-cp315t-win_amd64.whl", hash = "sha256:dbd605739f228912dc49027cb764456b9757750bdc2b6b7773164db7096c6fd1", size = 126889 }, + { url = "https://files.pythonhosted.org/packages/38/a6/800800bfed7b1fb10fc3f3d557785c3854e80d3f7a9800d784b176a1fc2d/librt-0.15.0-cp315-cp315t-win_arm64.whl", hash = "sha256:84d244b00604d17df3fc7736c327892d6bba66181254aa4087be807b6c342bdc", size = 110700 }, ] [[package]] name = "linkify-it-py" -version = "2.0.3" +version = "2.2.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "uc-micro-py" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/2a/ae/bb56c6828e4797ba5a4821eec7c43b8bf40f69cda4d4f5f8c8a2810ec96a/linkify-it-py-2.0.3.tar.gz", hash = "sha256:68cda27e162e9215c17d786649d1da0021a451bdc436ef9e0fa0ba5234b9b048", size = 27946, upload_time = "2024-02-04T14:48:04.179Z" } +sdist = { url = "https://files.pythonhosted.org/packages/45/98/7a1a5f31fd5c7ba93e963b168e244b8e3dd705b3d2a718e3c3307583bf57/linkify_it_py-2.2.0.tar.gz", hash = "sha256:907acd2d17ac1fbb9ddb62c8957ccbd6158cac602231a15c3b0cd1e215f03cee", size = 32939 } wheels = [ - { url = "https://files.pythonhosted.org/packages/04/1e/b832de447dee8b582cac175871d2f6c3d5077cc56d5575cadba1fd1cccfa/linkify_it_py-2.0.3-py3-none-any.whl", hash = "sha256:6bcbc417b0ac14323382aef5c5192c0075bf8a9d6b41820a2b66371eac6b6d79", size = 19820, upload_time = "2024-02-04T14:48:02.496Z" }, + { url = "https://files.pythonhosted.org/packages/13/d4/1152d1c7ab42d8b908be64fd200ddc870dc9d4925e951198702084aa1a7d/linkify_it_py-2.2.0-py3-none-any.whl", hash = "sha256:3adc40eb5af300b2605fcfdb968c24e1d780a90f1f2221af7c15e5111e94d443", size = 21971 }, ] [[package]] name = "markdown-it-py" -version = "3.0.0" +version = "4.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "mdurl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596, upload_time = "2023-06-03T06:41:14.443Z" } +sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454 } wheels = [ - { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528, upload_time = "2023-06-03T06:41:11.019Z" }, + { url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687 }, ] [package.optional-dependencies] linkify = [ { name = "linkify-it-py" }, ] -plugins = [ - { name = "mdit-py-plugins" }, -] [[package]] name = "mdit-py-plugins" -version = "0.4.2" +version = "0.6.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/19/03/a2ecab526543b152300717cf232bb4bb8605b6edb946c845016fa9c9c9fd/mdit_py_plugins-0.4.2.tar.gz", hash = "sha256:5f2cd1fdb606ddf152d37ec30e46101a60512bc0e5fa1a7002c36647b09e26b5", size = 43542, upload_time = "2024-09-09T20:27:49.564Z" } +sdist = { url = "https://files.pythonhosted.org/packages/59/fc/f8d0863f8862f25602c0404d75568e89fb6b4109804645e5cdfb1be5cf56/mdit_py_plugins-0.6.1.tar.gz", hash = "sha256:a2bca0f039f39dbd35fb74ae1b5f998608c437463371f0ff7f49a19a17a114d0", size = 56114 } wheels = [ - { url = "https://files.pythonhosted.org/packages/a7/f7/7782a043553ee469c1ff49cfa1cdace2d6bf99a1f333cf38676b3ddf30da/mdit_py_plugins-0.4.2-py3-none-any.whl", hash = "sha256:0c673c3f889399a33b95e88d2f0d111b4447bdfea7f237dab2d488f459835636", size = 55316, upload_time = "2024-09-09T20:27:48.397Z" }, + { url = "https://files.pythonhosted.org/packages/a5/69/6da5581c6a7fede7dc261bf4e67d6adca4196f176b43288b55b3db395b6e/mdit_py_plugins-0.6.1-py3-none-any.whl", hash = "sha256:214c82fb2ac524472ab6a5bcab1de80f73b50443e187f401bfd77efbc7c6481d", size = 66663 }, ] [[package]] name = "mdurl" version = "0.1.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload_time = "2022-08-14T12:40:10.846Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729 } wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload_time = "2022-08-14T12:40:09.779Z" }, + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979 }, ] [[package]] name = "mypy" -version = "1.16.0" +version = "2.3.1" source = { registry = "https://pypi.org/simple" } dependencies = [ + { name = "ast-serialize" }, + { name = "librt", marker = "platform_python_implementation != 'PyPy'" }, { name = "mypy-extensions" }, { name = "pathspec" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d4/38/13c2f1abae94d5ea0354e146b95a1be9b2137a0d506728e0da037c4276f6/mypy-1.16.0.tar.gz", hash = "sha256:84b94283f817e2aa6350a14b4a8fb2a35a53c286f97c9d30f53b63620e7af8ab", size = 3323139, upload_time = "2025-05-29T13:46:12.532Z" } +sdist = { url = "https://files.pythonhosted.org/packages/82/6a/878cc1097d4035f82bd516658d0c528d2a9955bc7b363afcbd0b07fea11b/mypy-2.3.1.tar.gz", hash = "sha256:47c1b1207258513a9d93495f69c8be9de73916186f0e52703e8c461b7a623419", size = 3992554 } wheels = [ - { url = "https://files.pythonhosted.org/packages/64/5e/a0485f0608a3d67029d3d73cec209278b025e3493a3acfda3ef3a88540fd/mypy-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7909541fef256527e5ee9c0a7e2aeed78b6cda72ba44298d1334fe7881b05c5c", size = 10967416, upload_time = "2025-05-29T13:34:17.783Z" }, - { url = "https://files.pythonhosted.org/packages/4b/53/5837c221f74c0d53a4bfc3003296f8179c3a2a7f336d7de7bbafbe96b688/mypy-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e71d6f0090c2256c713ed3d52711d01859c82608b5d68d4fa01a3fe30df95571", size = 10087654, upload_time = "2025-05-29T13:32:37.878Z" }, - { url = "https://files.pythonhosted.org/packages/29/59/5fd2400352c3093bed4c09017fe671d26bc5bb7e6ef2d4bf85f2a2488104/mypy-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:936ccfdd749af4766be824268bfe22d1db9eb2f34a3ea1d00ffbe5b5265f5491", size = 11875192, upload_time = "2025-05-29T13:34:54.281Z" }, - { url = "https://files.pythonhosted.org/packages/ad/3e/4bfec74663a64c2012f3e278dbc29ffe82b121bc551758590d1b6449ec0c/mypy-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4086883a73166631307fdd330c4a9080ce24913d4f4c5ec596c601b3a4bdd777", size = 12612939, upload_time = "2025-05-29T13:33:14.766Z" }, - { url = "https://files.pythonhosted.org/packages/88/1f/fecbe3dcba4bf2ca34c26ca016383a9676711907f8db4da8354925cbb08f/mypy-1.16.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:feec38097f71797da0231997e0de3a58108c51845399669ebc532c815f93866b", size = 12874719, upload_time = "2025-05-29T13:21:52.09Z" }, - { url = "https://files.pythonhosted.org/packages/f3/51/c2d280601cd816c43dfa512a759270d5a5ef638d7ac9bea9134c8305a12f/mypy-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:09a8da6a0ee9a9770b8ff61b39c0bb07971cda90e7297f4213741b48a0cc8d93", size = 9487053, upload_time = "2025-05-29T13:33:29.797Z" }, - { url = "https://files.pythonhosted.org/packages/24/c4/ff2f79db7075c274fe85b5fff8797d29c6b61b8854c39e3b7feb556aa377/mypy-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9f826aaa7ff8443bac6a494cf743f591488ea940dd360e7dd330e30dd772a5ab", size = 10884498, upload_time = "2025-05-29T13:18:54.066Z" }, - { url = "https://files.pythonhosted.org/packages/02/07/12198e83006235f10f6a7808917376b5d6240a2fd5dce740fe5d2ebf3247/mypy-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:82d056e6faa508501af333a6af192c700b33e15865bda49611e3d7d8358ebea2", size = 10011755, upload_time = "2025-05-29T13:34:00.851Z" }, - { url = "https://files.pythonhosted.org/packages/f1/9b/5fd5801a72b5d6fb6ec0105ea1d0e01ab2d4971893076e558d4b6d6b5f80/mypy-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:089bedc02307c2548eb51f426e085546db1fa7dd87fbb7c9fa561575cf6eb1ff", size = 11800138, upload_time = "2025-05-29T13:32:55.082Z" }, - { url = "https://files.pythonhosted.org/packages/2e/81/a117441ea5dfc3746431e51d78a4aca569c677aa225bca2cc05a7c239b61/mypy-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a2322896003ba66bbd1318c10d3afdfe24e78ef12ea10e2acd985e9d684a666", size = 12533156, upload_time = "2025-05-29T13:19:12.963Z" }, - { url = "https://files.pythonhosted.org/packages/3f/38/88ec57c6c86014d3f06251e00f397b5a7daa6888884d0abf187e4f5f587f/mypy-1.16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:021a68568082c5b36e977d54e8f1de978baf401a33884ffcea09bd8e88a98f4c", size = 12742426, upload_time = "2025-05-29T13:20:22.72Z" }, - { url = "https://files.pythonhosted.org/packages/bd/53/7e9d528433d56e6f6f77ccf24af6ce570986c2d98a5839e4c2009ef47283/mypy-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:54066fed302d83bf5128632d05b4ec68412e1f03ef2c300434057d66866cea4b", size = 9478319, upload_time = "2025-05-29T13:21:17.582Z" }, - { url = "https://files.pythonhosted.org/packages/70/cf/158e5055e60ca2be23aec54a3010f89dcffd788732634b344fc9cb1e85a0/mypy-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c5436d11e89a3ad16ce8afe752f0f373ae9620841c50883dc96f8b8805620b13", size = 11062927, upload_time = "2025-05-29T13:35:52.328Z" }, - { url = "https://files.pythonhosted.org/packages/94/34/cfff7a56be1609f5d10ef386342ce3494158e4d506516890142007e6472c/mypy-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f2622af30bf01d8fc36466231bdd203d120d7a599a6d88fb22bdcb9dbff84090", size = 10083082, upload_time = "2025-05-29T13:35:33.378Z" }, - { url = "https://files.pythonhosted.org/packages/b3/7f/7242062ec6288c33d8ad89574df87c3903d394870e5e6ba1699317a65075/mypy-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d045d33c284e10a038f5e29faca055b90eee87da3fc63b8889085744ebabb5a1", size = 11828306, upload_time = "2025-05-29T13:21:02.164Z" }, - { url = "https://files.pythonhosted.org/packages/6f/5f/b392f7b4f659f5b619ce5994c5c43caab3d80df2296ae54fa888b3d17f5a/mypy-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b4968f14f44c62e2ec4a038c8797a87315be8df7740dc3ee8d3bfe1c6bf5dba8", size = 12702764, upload_time = "2025-05-29T13:20:42.826Z" }, - { url = "https://files.pythonhosted.org/packages/9b/c0/7646ef3a00fa39ac9bc0938626d9ff29d19d733011be929cfea59d82d136/mypy-1.16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:eb14a4a871bb8efb1e4a50360d4e3c8d6c601e7a31028a2c79f9bb659b63d730", size = 12896233, upload_time = "2025-05-29T13:18:37.446Z" }, - { url = "https://files.pythonhosted.org/packages/6d/38/52f4b808b3fef7f0ef840ee8ff6ce5b5d77381e65425758d515cdd4f5bb5/mypy-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd4e1ebe126152a7bbaa4daedd781c90c8f9643c79b9748caa270ad542f12bec", size = 9565547, upload_time = "2025-05-29T13:20:02.836Z" }, - { url = "https://files.pythonhosted.org/packages/97/9c/ca03bdbefbaa03b264b9318a98950a9c683e06472226b55472f96ebbc53d/mypy-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a9e056237c89f1587a3be1a3a70a06a698d25e2479b9a2f57325ddaaffc3567b", size = 11059753, upload_time = "2025-05-29T13:18:18.167Z" }, - { url = "https://files.pythonhosted.org/packages/36/92/79a969b8302cfe316027c88f7dc6fee70129490a370b3f6eb11d777749d0/mypy-1.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0b07e107affb9ee6ce1f342c07f51552d126c32cd62955f59a7db94a51ad12c0", size = 10073338, upload_time = "2025-05-29T13:19:48.079Z" }, - { url = "https://files.pythonhosted.org/packages/14/9b/a943f09319167da0552d5cd722104096a9c99270719b1afeea60d11610aa/mypy-1.16.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c6fb60cbd85dc65d4d63d37cb5c86f4e3a301ec605f606ae3a9173e5cf34997b", size = 11827764, upload_time = "2025-05-29T13:46:04.47Z" }, - { url = "https://files.pythonhosted.org/packages/ec/64/ff75e71c65a0cb6ee737287c7913ea155845a556c64144c65b811afdb9c7/mypy-1.16.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7e32297a437cc915599e0578fa6bc68ae6a8dc059c9e009c628e1c47f91495d", size = 12701356, upload_time = "2025-05-29T13:35:13.553Z" }, - { url = "https://files.pythonhosted.org/packages/0a/ad/0e93c18987a1182c350f7a5fab70550852f9fabe30ecb63bfbe51b602074/mypy-1.16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:afe420c9380ccec31e744e8baff0d406c846683681025db3531b32db56962d52", size = 12900745, upload_time = "2025-05-29T13:17:24.409Z" }, - { url = "https://files.pythonhosted.org/packages/28/5d/036c278d7a013e97e33f08c047fe5583ab4f1fc47c9a49f985f1cdd2a2d7/mypy-1.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:55f9076c6ce55dd3f8cd0c6fff26a008ca8e5131b89d5ba6d86bd3f47e736eeb", size = 9572200, upload_time = "2025-05-29T13:33:44.92Z" }, - { url = "https://files.pythonhosted.org/packages/bd/eb/c0759617fe2159aee7a653f13cceafbf7f0b6323b4197403f2e587ca947d/mypy-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f56236114c425620875c7cf71700e3d60004858da856c6fc78998ffe767b73d3", size = 10956081, upload_time = "2025-05-29T13:19:32.264Z" }, - { url = "https://files.pythonhosted.org/packages/70/35/df3c74a2967bdf86edea58b265feeec181d693432faed1c3b688b7c231e3/mypy-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:15486beea80be24ff067d7d0ede673b001d0d684d0095803b3e6e17a886a2a92", size = 10084422, upload_time = "2025-05-29T13:18:01.437Z" }, - { url = "https://files.pythonhosted.org/packages/b3/07/145ffe29f4b577219943b7b1dc0a71df7ead3c5bed4898686bd87c5b5cc2/mypy-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f2ed0e0847a80655afa2c121835b848ed101cc7b8d8d6ecc5205aedc732b1436", size = 11879670, upload_time = "2025-05-29T13:17:45.971Z" }, - { url = "https://files.pythonhosted.org/packages/c6/94/0421562d6b046e22986758c9ae31865d10ea0ba607ae99b32c9d18b16f66/mypy-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eb5fbc8063cb4fde7787e4c0406aa63094a34a2daf4673f359a1fb64050e9cb2", size = 12610528, upload_time = "2025-05-29T13:34:36.983Z" }, - { url = "https://files.pythonhosted.org/packages/1a/f1/39a22985b78c766a594ae1e0bbb6f8bdf5f31ea8d0c52291a3c211fd3cd5/mypy-1.16.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a5fcfdb7318c6a8dd127b14b1052743b83e97a970f0edb6c913211507a255e20", size = 12871923, upload_time = "2025-05-29T13:32:21.823Z" }, - { url = "https://files.pythonhosted.org/packages/f3/8e/84db4fb0d01f43d2c82fa9072ca72a42c49e52d58f44307bbd747c977bc2/mypy-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:2e7e0ad35275e02797323a5aa1be0b14a4d03ffdb2e5f2b0489fa07b89c67b21", size = 9482931, upload_time = "2025-05-29T13:21:32.326Z" }, - { url = "https://files.pythonhosted.org/packages/99/a3/6ed10530dec8e0fdc890d81361260c9ef1f5e5c217ad8c9b21ecb2b8366b/mypy-1.16.0-py3-none-any.whl", hash = "sha256:29e1499864a3888bca5c1542f2d7232c6e586295183320caa95758fc84034031", size = 2265773, upload_time = "2025-05-29T13:35:18.762Z" }, + { url = "https://files.pythonhosted.org/packages/a4/be/c624d4241484f37dc62839e177ab607a9b8b3e96f0866544ca99e8e41d51/mypy-2.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:94f04929f1c44c35fb0061e912087edaf504acede963a4a7d00680bd089d8531", size = 13936739 }, + { url = "https://files.pythonhosted.org/packages/53/84/e3cf72f90dce5960871c82551c8fba6da05fc1018f79be41c047bd126bdd/mypy-2.3.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f5d716048611e85ca9eefb2e1baa5d73ede389b5820ded260ea27c757d667af8", size = 14166460 }, + { url = "https://files.pythonhosted.org/packages/4a/ff/6b97d58aa0f79a5ab9b472db1f6d6df1b11a51d74d0c08ab3760d3a613ba/mypy-2.3.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b091a455111214cb5c9d54a57b9618e9a49f9fe2a42e4e1ac86e9d104ed96ce8", size = 15100476 }, + { url = "https://files.pythonhosted.org/packages/da/f0/cbb4b7d2ae3ac635f6b4f2d9b04070b8a92edf50da599d3b39e5ed109001/mypy-2.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:df12e20c9efd614738c71b390007ecd0181125afc4ccafca04d78a1d2eed2c01", size = 15347826 }, + { url = "https://files.pythonhosted.org/packages/5f/10/91dcdc6f8d43fc08e6a06ab1f9732f3abaaf835ac1b2e67b9dff56910855/mypy-2.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:52eaf3a155f35cf80b40220288c861eb45f14a2340c1f6cbfbdb0feff32879d1", size = 11142615 }, + { url = "https://files.pythonhosted.org/packages/3d/8a/28d54535bf4b9aa43b2d8918c2ef660378b9f66b23d78dcee052744ae622/mypy-2.3.1-cp311-cp311-win_arm64.whl", hash = "sha256:9b4eacbee8a69836c06eff6d0dd4e134a07c2b047755b30c08625fe214f322c6", size = 10141145 }, + { url = "https://files.pythonhosted.org/packages/85/da/d6effc4f808a842d91edc22535dc9e799d2ff6e91449168b7f47a0771f54/mypy-2.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a32bbbb940af990d3be0b8af321c7b6815bb1b3b48142fe7459b9cc5f58959ff", size = 14047547 }, + { url = "https://files.pythonhosted.org/packages/e4/e6/478229701dab76f26485fc8ff5d6f241f393da22447400bbc56f6946aebe/mypy-2.3.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff715e45b2231a8e85de1d163d1b42791e4d7aab8f5145f85fee1b710b735aff", size = 14216515 }, + { url = "https://files.pythonhosted.org/packages/8d/fe/7c42327a3b21e84681f691982cbfe43f334a3685f3b683b72c376476c4fa/mypy-2.3.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:858fc57d3d91fa728e33e7ad71def60fc6272694607b306cd3292db53ae39080", size = 15307789 }, + { url = "https://files.pythonhosted.org/packages/59/f4/7e597edbe01b5a56fa958ce541302dcaabfed979966f1dffedbea0ea0fc2/mypy-2.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:851833db876e7b650f93719c74b7879a08e338979c96054fdfc3bfd90a486355", size = 15548831 }, + { url = "https://files.pythonhosted.org/packages/a3/52/cb31e084bc0314a1e384bdd677a4b80e55af04ccac077545e2238b9d320a/mypy-2.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:4c5095a327483591c94e0c8d3ef9e50d4ab1369b541eae007c1f23bc2a41f6bb", size = 11226359 }, + { url = "https://files.pythonhosted.org/packages/7a/47/88fcf6217b43fa2da81a8c2611370af18141536a4f0294bbf98b457d456d/mypy-2.3.1-cp312-cp312-win_arm64.whl", hash = "sha256:bbfe022634a2a195406bd469e888d2eaf193b02ba7e607391cd7640374aaae3b", size = 10214707 }, + { url = "https://files.pythonhosted.org/packages/de/cf/862010ee800ca9c2bd0c4c0dacf0f092e5411824a09b8f97ad4be8fe250e/mypy-2.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:114dff494000f18bd10d5d95d84b8567b26da60279ecbe838131841df20e635d", size = 13964542 }, + { url = "https://files.pythonhosted.org/packages/75/5a/3f3a2107b41e3e92e617e25daaee121413b91e9784bea733131ed4fecc5d/mypy-2.3.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c8637731bb5eee3671eb2c3200827aa3564ed8a9309ecee4d1afe77e6d031bdb", size = 14168922 }, + { url = "https://files.pythonhosted.org/packages/8b/41/04dc4fe7e63d7820fa4eff272e95157d30cbea921388f3ab3fe77794cd0b/mypy-2.3.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1c80fbc405ed8020f5ff3802dc18cf060197bcdd3fbdd6a26ef2fd34dfdd5226", size = 15244791 }, + { url = "https://files.pythonhosted.org/packages/96/fc/c3053b26b9054949285aa868cb6af8c10e7591541cacd79c5dcc06a1fcf9/mypy-2.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:84081f538ce27375045c02e3d7f81bd11d853400621ae245d87ce7b6c420ec74", size = 15501627 }, + { url = "https://files.pythonhosted.org/packages/70/4e/d77daab008bbc4e5001374d7928f4a260d28f0e6747af444fc4763f7a310/mypy-2.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:e9144ac16fde007096f9563eb2041b4433c2d705c4218edeb79e7e9d01035ee6", size = 11243961 }, + { url = "https://files.pythonhosted.org/packages/f0/f8/7eb68c136e4abd30569fe31ef2bfcb7eceae9952cab80017c04cd09f5d0c/mypy-2.3.1-cp313-cp313-win_arm64.whl", hash = "sha256:77ad9529e67dca28e511f5cd5671436584ce91f6d3bac159a353158187b986ac", size = 10213219 }, + { url = "https://files.pythonhosted.org/packages/be/c4/42a49d44aeff804edf1b19acce0b49e8bd1a9c57dee9605dd8d980aa43d7/mypy-2.3.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:192abaedf75da1bc0b1cef104927e70ec49c1ef0031cc4825c7ee10a438ed24d", size = 13986778 }, + { url = "https://files.pythonhosted.org/packages/45/13/9331fd2dfed7194d66c5304072894a8be3e51e9deda6863c1eceaa35a43d/mypy-2.3.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf678dffd16efcda2c15cbd30e9ecc0081388e29ea23687a88e686ed92638dc3", size = 14188467 }, + { url = "https://files.pythonhosted.org/packages/78/f7/f4a34edab45667c5465855dc585a20e87978ffa8aee711445b7239d120c6/mypy-2.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e036f06b41630f4c8a1d48f9ac6aa26acc65f8be089973f5519da643318f03f", size = 15225538 }, + { url = "https://files.pythonhosted.org/packages/40/05/534b3590757bd05794f73e07f6666c2a77b8597ffed795c94ce570096aa0/mypy-2.3.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:71af9c8a894e862b58e92abb08e53b05a384a1e5e5d6dc7cda59126211a53d82", size = 15480805 }, + { url = "https://files.pythonhosted.org/packages/55/da/bdfba852e2562f599624af5bb7d29e36b0b4f526f2b8bac85efe0dd1803d/mypy-2.3.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:3c80cd23d85368bdd9f37d5231dfd97d35bcbf5bf41af96ef3a9b078ad1957f9", size = 7761712 }, + { url = "https://files.pythonhosted.org/packages/98/31/60fc64a74cdba4f2a5d642d32317993e479163e1ac7d91b695e5d15e2264/mypy-2.3.1-cp314-cp314-win_amd64.whl", hash = "sha256:4956f34d145e145562a0a0bf367f642bbc85c04ec2baf47ae015947c3169a85d", size = 11423968 }, + { url = "https://files.pythonhosted.org/packages/a9/23/eb5950b24cd26ba3b78f87707a275568d633c77dae8e61c9661be6055ca6/mypy-2.3.1-cp314-cp314-win_arm64.whl", hash = "sha256:cfb12e360242d23d91f5e978d94f58ea66acf5804c4fb6f2f794a20d4cb1b595", size = 10399323 }, + { url = "https://files.pythonhosted.org/packages/82/c7/f80f4e46c0b9a00eb5f78a79d49dda8bdf56a5230f7257fb33e76be04da7/mypy-2.3.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e5f1c50bb05b64e2026b52867e8d21106f01313c744a2c4ecc34c90d12e8d6e2", size = 15121308 }, + { url = "https://files.pythonhosted.org/packages/5d/74/9b04f17c7074cc5188f02fb63a2ca1d43fedf479e84fe3091c39061a1d7f/mypy-2.3.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:667196b352f4cf304ded4c10f90cfc179263a1acfb3cdcfa984bdfd340d498bc", size = 15536590 }, + { url = "https://files.pythonhosted.org/packages/26/04/c837ef6208e567774e2ed1f863f8ba6ec4817b1b6dd426315e5d559b6ec9/mypy-2.3.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b9c53e395c12cad2c6d4b67d5da7c6057638a132d85c08b73646b18f802a0045", size = 16791074 }, + { url = "https://files.pythonhosted.org/packages/37/68/48730230afa45192d5bd429a6a2ff24a6f8dedda90fdf2b221792b54518f/mypy-2.3.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:18162b128c3f9c703cd35f5537446900b0d21a2549aa7a95d21380d2ef643fb0", size = 17069183 }, + { url = "https://files.pythonhosted.org/packages/1c/ea/ca23fc9c20eeda09a15c9cbcf50015d0e73f409f6ead059e42aa69a608ff/mypy-2.3.1-cp314-cp314t-win_amd64.whl", hash = "sha256:30c0477d4aab7b7f39c8397dc877f2c96b9fe5588ec379f372c56eb63d599f63", size = 12154679 }, + { url = "https://files.pythonhosted.org/packages/3b/67/8d982126034990869466f73b8db80dcb2234a7ac39b4dad093e047a79835/mypy-2.3.1-cp314-cp314t-win_arm64.whl", hash = "sha256:6941ab3619377bc3f32ca02876b07d27f216f5201604b664d3937ea0fdd23bb4", size = 10969159 }, + { url = "https://files.pythonhosted.org/packages/ee/f7/41e7f2d8117fbc7a7587286162ffe2f688984b69c46ed63cf5f2e4fc3bae/mypy-2.3.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:6f041a6de52c9217ca125e78ba0a335cb7fd98a1c0580978e49ab2b126f70b57", size = 13990694 }, + { url = "https://files.pythonhosted.org/packages/06/85/8f665811a0c8f3bf6fa1d9acd665ec2d97a2bcc453ae68dcd92340941cd6/mypy-2.3.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5159ae60f5dbc3a498af5ba8365505808ac8031bc63f9e00304ad545d40bdd9b", size = 14203518 }, + { url = "https://files.pythonhosted.org/packages/2d/82/91b866c8546b120bff83b73a439d90d2d63ef3aff113599e6b8e4d566848/mypy-2.3.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:47a8a7a0a7f6f6e63995c0ac36fa0c07b127413fdc81f0439b7f3dccafd33561", size = 15220224 }, + { url = "https://files.pythonhosted.org/packages/c8/78/c226c99208ee40de7c768369fa533f933afa003dfdc606ff021450724e91/mypy-2.3.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:2329c0501293d4e1f33bc15d04d6304d65a1cdda967ee93a05c1e681a3923133", size = 15501512 }, + { url = "https://files.pythonhosted.org/packages/a9/e7/7cfb3f106c393979f4cc37ad6c0586044d50401e3c35b0c003e4f3ba6bc9/mypy-2.3.1-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:bb26deed807bdb0457cf3e3f1cd7c4a1cf9d66864eaf1b4a61e06805d4c6b1f9", size = 7761913 }, + { url = "https://files.pythonhosted.org/packages/99/3c/52affefa273b97939a1f474ae4a349c8718635c15b941112dfab4291b0c1/mypy-2.3.1-cp315-cp315-win_amd64.whl", hash = "sha256:375d7013876a8233b2d05be185bfa09f689696cd999ce8b1cfe6acac5c80e8a3", size = 11422533 }, + { url = "https://files.pythonhosted.org/packages/2a/b7/75643e70c72a5b346d8a9b1543c967ea8824df2ee3fb7ccba652c272b7bb/mypy-2.3.1-cp315-cp315-win_arm64.whl", hash = "sha256:586b3612214cceabb3c0f588c97e7d1e535393f06a60e912e994f6b3ace97523", size = 10397931 }, + { url = "https://files.pythonhosted.org/packages/10/ce/53be21f2d4adfcd26f63f1184a13ed797015ab463853f117e2e11e4d726f/mypy-2.3.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:ef0c6335cda9d807f8193d8ff6204a72bc909fa9882aacbca14f43cdb7188306", size = 15118669 }, + { url = "https://files.pythonhosted.org/packages/62/43/20de757cd42989d291a17fad607742c4c74e875ce5cea00e5a5225020ac1/mypy-2.3.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e598c8c66401d26b150872154a286e6d484cf2789c3bb28a7556806298423021", size = 15545627 }, + { url = "https://files.pythonhosted.org/packages/7e/fc/092bdf77ad280eaf501422f0f3b966012b528076cc13e41a774861c907d1/mypy-2.3.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eda22fd4efa9dcd39331d1dede9b5b8b8a7fd69af07592e778433da98610d29e", size = 16764157 }, + { url = "https://files.pythonhosted.org/packages/94/5c/c94c4d62d909b07f552d0d9356d7acc943825558e602a64822ffa2231536/mypy-2.3.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:2a0ba2e57847849fb0d1fcdabb32786d223095ed8bc121dfe322bcdb3d9c46bc", size = 17073258 }, + { url = "https://files.pythonhosted.org/packages/c0/f7/511a88b89e478053c02d22039bb8f3ce4183efe8fd7a4f0a5910a8bb0a32/mypy-2.3.1-cp315-cp315t-win_amd64.whl", hash = "sha256:3f7e865dd51f235f60a2dbcd8728a1c095f5ca28f095d48a725b84cd935735c4", size = 12135505 }, + { url = "https://files.pythonhosted.org/packages/71/bf/02573b56964ecb0f7c644f915f53c325ae15c3faec521c5adf11599a32df/mypy-2.3.1-cp315-cp315t-win_arm64.whl", hash = "sha256:8ad80807dc3ab8ea978b1b2b6e4a657194ace1d4ef03e0e731aff1abd517da29", size = 10962647 }, + { url = "https://files.pythonhosted.org/packages/8e/41/9675c7a1e78edecfba0b79e587a52594c56e189368261dc7b3a7fffb9527/mypy-2.3.1-py3-none-any.whl", hash = "sha256:6ed5c7e3419083268e5c9258bd1c1ef91af44a9e89374dbcaf37b775716e72eb", size = 2754338 }, ] [[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" } +sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343 } 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" }, + { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963 }, ] [[package]] name = "netshow" -version = "0.2.0" +version = "0.2.2" source = { editable = "." } dependencies = [ { name = "psutil" }, + { name = "rich" }, { name = "textual" }, ] -[package.optional-dependencies] +[package.dev-dependencies] dev = [ - { name = "black" }, { name = "mypy" }, { name = "pytest" }, + { name = "pytest-asyncio" }, { name = "ruff" }, { name = "types-psutil" }, ] -[package.dev-dependencies] -dev = [ - { name = "types-psutil" }, -] - [package.metadata] requires-dist = [ - { name = "black", marker = "extra == 'dev'", specifier = ">=23.0.0" }, - { name = "mypy", marker = "extra == 'dev'", specifier = ">=1.0.0" }, - { name = "psutil", specifier = ">=5.9.0" }, - { name = "pytest", marker = "extra == 'dev'", specifier = ">=7.0.0" }, - { name = "ruff", marker = "extra == 'dev'", specifier = ">=0.1.0" }, - { name = "textual", specifier = ">=0.40.0" }, - { name = "types-psutil", marker = "extra == 'dev'", specifier = ">=5.9.0" }, -] -provides-extras = ["dev"] + { name = "psutil", specifier = ">=7.2.2,<8" }, + { name = "rich", specifier = ">=14.3,<15" }, + { name = "textual", specifier = ">=8.2.8,<9" }, +] [package.metadata.requires-dev] -dev = [{ name = "types-psutil", specifier = ">=7.0.0.20250601" }] +dev = [ + { name = "mypy", specifier = ">=1.16" }, + { name = "pytest", specifier = ">=8.4" }, + { name = "pytest-asyncio", specifier = ">=1.0" }, + { name = "ruff", specifier = ">=0.12" }, + { name = "types-psutil", specifier = ">=7.2" }, +] [[package]] name = "packaging" -version = "25.0" +version = "26.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload_time = "2025-04-19T11:48:59.673Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412 } wheels = [ - { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload_time = "2025-04-19T11:48:57.875Z" }, + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956 }, ] [[package]] name = "pathspec" -version = "0.12.1" +version = "1.1.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043, upload_time = "2023-12-10T22:30:45Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/82/42f767fc1c1143d6fd36efb827202a2d997a375e160a71eb2888a925aac1/pathspec-1.1.1.tar.gz", hash = "sha256:17db5ecd524104a120e173814c90367a96a98d07c45b2e10c2f3919fff91bf5a", size = 135180 } wheels = [ - { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191, upload_time = "2023-12-10T22:30:43.14Z" }, + { url = "https://files.pythonhosted.org/packages/f1/d9/7fb5aa316bc299258e68c73ba3bddbc499654a07f151cba08f6153988714/pathspec-1.1.1-py3-none-any.whl", hash = "sha256:a00ce642f577bf7f473932318056212bc4f8bfdf53128c78bbd5af0b9b20b189", size = 57328 }, ] [[package]] name = "platformdirs" -version = "4.3.8" +version = "4.11.8" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fe/8b/3c73abc9c759ecd3f1f7ceff6685840859e8070c4d947c93fae71f6a0bf2/platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc", size = 21362, upload_time = "2025-05-07T22:47:42.121Z" } +sdist = { url = "https://files.pythonhosted.org/packages/53/18/f3bb8ef0d3b930692343da8aa4d3cbcd6749477c053959395ac81965a6e9/platformdirs-4.11.8.tar.gz", hash = "sha256:f23abafea7dd4276d1f29104b83598d7dcc567cafd07c9c951e66665645437fc", size = 37182 } wheels = [ - { url = "https://files.pythonhosted.org/packages/fe/39/979e8e21520d4e47a0bbe349e2713c0aac6f3d853d0e5b34d76206c439aa/platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4", size = 18567, upload_time = "2025-05-07T22:47:40.376Z" }, + { url = "https://files.pythonhosted.org/packages/f4/e1/5b7b8bbb55084d1425bcb9bc823ff519e1b2be05f6ebb0089e2eacc38413/platformdirs-4.11.8-py3-none-any.whl", hash = "sha256:52f2f181bbfde907966932cc8312d967d02976422d66d537ea16092b8e291081", size = 24027 }, ] [[package]] name = "pluggy" version = "1.6.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload_time = "2025-05-15T12:30:07.975Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412 } wheels = [ - { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload_time = "2025-05-15T12:30:06.134Z" }, + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538 }, ] [[package]] name = "psutil" -version = "7.0.0" +version = "7.2.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2a/80/336820c1ad9286a4ded7e845b2eccfcb27851ab8ac6abece774a6ff4d3de/psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456", size = 497003, upload_time = "2025-02-13T21:54:07.946Z" } +sdist = { url = "https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-7.2.2.tar.gz", hash = "sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372", size = 493740 } wheels = [ - { url = "https://files.pythonhosted.org/packages/ed/e6/2d26234410f8b8abdbf891c9da62bee396583f713fb9f3325a4760875d22/psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25", size = 238051, upload_time = "2025-02-13T21:54:12.36Z" }, - { url = "https://files.pythonhosted.org/packages/04/8b/30f930733afe425e3cbfc0e1468a30a18942350c1a8816acfade80c005c4/psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da", size = 239535, upload_time = "2025-02-13T21:54:16.07Z" }, - { url = "https://files.pythonhosted.org/packages/2a/ed/d362e84620dd22876b55389248e522338ed1bf134a5edd3b8231d7207f6d/psutil-7.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fcee592b4c6f146991ca55919ea3d1f8926497a713ed7faaf8225e174581e91", size = 275004, upload_time = "2025-02-13T21:54:18.662Z" }, - { url = "https://files.pythonhosted.org/packages/bf/b9/b0eb3f3cbcb734d930fdf839431606844a825b23eaf9a6ab371edac8162c/psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b1388a4f6875d7e2aff5c4ca1cc16c545ed41dd8bb596cefea80111db353a34", size = 277986, upload_time = "2025-02-13T21:54:21.811Z" }, - { url = "https://files.pythonhosted.org/packages/eb/a2/709e0fe2f093556c17fbafda93ac032257242cabcc7ff3369e2cb76a97aa/psutil-7.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5f098451abc2828f7dc6b58d44b532b22f2088f4999a937557b603ce72b1993", size = 279544, upload_time = "2025-02-13T21:54:24.68Z" }, - { url = "https://files.pythonhosted.org/packages/50/e6/eecf58810b9d12e6427369784efe814a1eec0f492084ce8eb8f4d89d6d61/psutil-7.0.0-cp37-abi3-win32.whl", hash = "sha256:ba3fcef7523064a6c9da440fc4d6bd07da93ac726b5733c29027d7dc95b39d99", size = 241053, upload_time = "2025-02-13T21:54:34.31Z" }, - { url = "https://files.pythonhosted.org/packages/50/1b/6921afe68c74868b4c9fa424dad3be35b095e16687989ebbb50ce4fceb7c/psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553", size = 244885, upload_time = "2025-02-13T21:54:37.486Z" }, + { url = "https://files.pythonhosted.org/packages/51/08/510cbdb69c25a96f4ae523f733cdc963ae654904e8db864c07585ef99875/psutil-7.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2edccc433cbfa046b980b0df0171cd25bcaeb3a68fe9022db0979e7aa74a826b", size = 130595 }, + { url = "https://files.pythonhosted.org/packages/d6/f5/97baea3fe7a5a9af7436301f85490905379b1c6f2dd51fe3ecf24b4c5fbf/psutil-7.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e78c8603dcd9a04c7364f1a3e670cea95d51ee865e4efb3556a3a63adef958ea", size = 131082 }, + { url = "https://files.pythonhosted.org/packages/37/d6/246513fbf9fa174af531f28412297dd05241d97a75911ac8febefa1a53c6/psutil-7.2.2-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1a571f2330c966c62aeda00dd24620425d4b0cc86881c89861fbc04549e5dc63", size = 181476 }, + { url = "https://files.pythonhosted.org/packages/b8/b5/9182c9af3836cca61696dabe4fd1304e17bc56cb62f17439e1154f225dd3/psutil-7.2.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:917e891983ca3c1887b4ef36447b1e0873e70c933afc831c6b6da078ba474312", size = 184062 }, + { url = "https://files.pythonhosted.org/packages/16/ba/0756dca669f5a9300d0cbcbfae9a4c30e446dfc7440ffe43ded5724bfd93/psutil-7.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:ab486563df44c17f5173621c7b198955bd6b613fb87c71c161f827d3fb149a9b", size = 139893 }, + { url = "https://files.pythonhosted.org/packages/1c/61/8fa0e26f33623b49949346de05ec1ddaad02ed8ba64af45f40a147dbfa97/psutil-7.2.2-cp313-cp313t-win_arm64.whl", hash = "sha256:ae0aefdd8796a7737eccea863f80f81e468a1e4cf14d926bd9b6f5f2d5f90ca9", size = 135589 }, + { url = "https://files.pythonhosted.org/packages/81/69/ef179ab5ca24f32acc1dac0c247fd6a13b501fd5534dbae0e05a1c48b66d/psutil-7.2.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:eed63d3b4d62449571547b60578c5b2c4bcccc5387148db46e0c2313dad0ee00", size = 130664 }, + { url = "https://files.pythonhosted.org/packages/7b/64/665248b557a236d3fa9efc378d60d95ef56dd0a490c2cd37dafc7660d4a9/psutil-7.2.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7b6d09433a10592ce39b13d7be5a54fbac1d1228ed29abc880fb23df7cb694c9", size = 131087 }, + { url = "https://files.pythonhosted.org/packages/d5/2e/e6782744700d6759ebce3043dcfa661fb61e2fb752b91cdeae9af12c2178/psutil-7.2.2-cp314-cp314t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1fa4ecf83bcdf6e6c8f4449aff98eefb5d0604bf88cb883d7da3d8d2d909546a", size = 182383 }, + { url = "https://files.pythonhosted.org/packages/57/49/0a41cefd10cb7505cdc04dab3eacf24c0c2cb158a998b8c7b1d27ee2c1f5/psutil-7.2.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e452c464a02e7dc7822a05d25db4cde564444a67e58539a00f929c51eddda0cf", size = 185210 }, + { url = "https://files.pythonhosted.org/packages/dd/2c/ff9bfb544f283ba5f83ba725a3c5fec6d6b10b8f27ac1dc641c473dc390d/psutil-7.2.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c7663d4e37f13e884d13994247449e9f8f574bc4655d509c3b95e9ec9e2b9dc1", size = 141228 }, + { url = "https://files.pythonhosted.org/packages/f2/fc/f8d9c31db14fcec13748d373e668bc3bed94d9077dbc17fb0eebc073233c/psutil-7.2.2-cp314-cp314t-win_arm64.whl", hash = "sha256:11fe5a4f613759764e79c65cf11ebdf26e33d6dd34336f8a337aa2996d71c841", size = 136284 }, + { url = "https://files.pythonhosted.org/packages/e7/36/5ee6e05c9bd427237b11b3937ad82bb8ad2752d72c6969314590dd0c2f6e/psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486", size = 129090 }, + { url = "https://files.pythonhosted.org/packages/80/c4/f5af4c1ca8c1eeb2e92ccca14ce8effdeec651d5ab6053c589b074eda6e1/psutil-7.2.2-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979", size = 129859 }, + { url = "https://files.pythonhosted.org/packages/b5/70/5d8df3b09e25bce090399cf48e452d25c935ab72dad19406c77f4e828045/psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9", size = 155560 }, + { url = "https://files.pythonhosted.org/packages/63/65/37648c0c158dc222aba51c089eb3bdfa238e621674dc42d48706e639204f/psutil-7.2.2-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e", size = 156997 }, + { url = "https://files.pythonhosted.org/packages/8e/13/125093eadae863ce03c6ffdbae9929430d116a246ef69866dad94da3bfbc/psutil-7.2.2-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8", size = 148972 }, + { url = "https://files.pythonhosted.org/packages/04/78/0acd37ca84ce3ddffaa92ef0f571e073faa6d8ff1f0559ab1272188ea2be/psutil-7.2.2-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc", size = 148266 }, + { url = "https://files.pythonhosted.org/packages/b4/90/e2159492b5426be0c1fef7acba807a03511f97c5f86b3caeda6ad92351a7/psutil-7.2.2-cp37-abi3-win_amd64.whl", hash = "sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988", size = 137737 }, + { url = "https://files.pythonhosted.org/packages/8c/c7/7bb2e321574b10df20cbde462a94e2b71d05f9bbda251ef27d104668306a/psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee", size = 134617 }, ] [[package]] name = "pygments" -version = "2.19.1" +version = "2.21.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7c/2d/c3338d48ea6cc0feb8446d8e6937e1408088a72a39937982cc6111d17f84/pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f", size = 4968581, upload_time = "2025-01-06T17:26:30.443Z" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329 } wheels = [ - { url = "https://files.pythonhosted.org/packages/8a/0b/9fcc47d19c48b59121088dd6da2488a49d5f72dacf8262e2790a1d2c7d15/pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c", size = 1225293, upload_time = "2025-01-06T17:26:25.553Z" }, + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147 }, ] [[package]] name = "pytest" -version = "8.3.5" +version = "9.1.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, { name = "iniconfig" }, { name = "packaging" }, { name = "pluggy" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, + { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ae/3c/c9d525a414d506893f0cd8a8d0de7706446213181570cdbd766691164e40/pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845", size = 1450891, upload_time = "2025-03-02T12:54:54.503Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369 } wheels = [ - { url = "https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820", size = 343634, upload_time = "2025-03-02T12:54:52.069Z" }, + { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536 }, +] + +[[package]] +name = "pytest-asyncio" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/03/e2/08a497ef684b88559c9cc5f4ad53a37e7b99e727094a86d6ea32536d5d3c/pytest_asyncio-1.4.0-py3-none-any.whl", hash = "sha256:933ca923a23075a87fb7070c0ec272a6848489824d887c85c812670932835aa1", size = 16930 }, ] [[package]] name = "rich" -version = "14.0.0" +version = "14.3.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py" }, { name = "pygments" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a1/53/830aa4c3066a8ab0ae9a9955976fb770fe9c6102117c8ec4ab3ea62d89e8/rich-14.0.0.tar.gz", hash = "sha256:82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725", size = 224078, upload_time = "2025-03-30T14:15:14.23Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e9/67/cae617f1351490c25a4b8ac3b8b63a4dda609295d8222bad12242dfdc629/rich-14.3.4.tar.gz", hash = "sha256:817e02727f2b25b40ef56f5aa2217f400c8489f79ca8f46ea2b70dd5e14558a9", size = 230524 } wheels = [ - { url = "https://files.pythonhosted.org/packages/0d/9b/63f4c7ebc259242c89b3acafdb37b41d1185c07ff0011164674e9076b491/rich-14.0.0-py3-none-any.whl", hash = "sha256:1c9491e1951aac09caffd42f448ee3d04e58923ffe14993f6e83068dc395d7e0", size = 243229, upload_time = "2025-03-30T14:15:12.283Z" }, + { url = "https://files.pythonhosted.org/packages/b3/76/6d163cfac87b632216f71879e6b2cf17163f773ff59c00b5ff4900a80fa3/rich-14.3.4-py3-none-any.whl", hash = "sha256:07e7adb4690f68864777b1450859253bed81a99a31ac321ac1817b2313558952", size = 310480 }, ] [[package]] name = "ruff" -version = "0.11.12" +version = "0.16.7" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/15/0a/92416b159ec00cdf11e5882a9d80d29bf84bba3dbebc51c4898bfbca1da6/ruff-0.11.12.tar.gz", hash = "sha256:43cf7f69c7d7c7d7513b9d59c5d8cafd704e05944f978614aa9faff6ac202603", size = 4202289, upload_time = "2025-05-29T13:31:40.037Z" } +sdist = { url = "https://files.pythonhosted.org/packages/82/bb/5a449b9162e49b139d72f61672bd3ac1d790221f796d3304e2241fff4c58/ruff-0.16.7.tar.gz", hash = "sha256:5f71d004ac1263b22fa39462ac5ae618a4b77d58981af2cc79bf79a29c12b1a6", size = 4924184 } wheels = [ - { url = "https://files.pythonhosted.org/packages/60/cc/53eb79f012d15e136d40a8e8fc519ba8f55a057f60b29c2df34efd47c6e3/ruff-0.11.12-py3-none-linux_armv6l.whl", hash = "sha256:c7680aa2f0d4c4f43353d1e72123955c7a2159b8646cd43402de6d4a3a25d7cc", size = 10285597, upload_time = "2025-05-29T13:30:57.539Z" }, - { url = "https://files.pythonhosted.org/packages/e7/d7/73386e9fb0232b015a23f62fea7503f96e29c29e6c45461d4a73bac74df9/ruff-0.11.12-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:2cad64843da9f134565c20bcc430642de897b8ea02e2e79e6e02a76b8dcad7c3", size = 11053154, upload_time = "2025-05-29T13:31:00.865Z" }, - { url = "https://files.pythonhosted.org/packages/4e/eb/3eae144c5114e92deb65a0cb2c72326c8469e14991e9bc3ec0349da1331c/ruff-0.11.12-py3-none-macosx_11_0_arm64.whl", hash = "sha256:9b6886b524a1c659cee1758140138455d3c029783d1b9e643f3624a5ee0cb0aa", size = 10403048, upload_time = "2025-05-29T13:31:03.413Z" }, - { url = "https://files.pythonhosted.org/packages/29/64/20c54b20e58b1058db6689e94731f2a22e9f7abab74e1a758dfba058b6ca/ruff-0.11.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3cc3a3690aad6e86c1958d3ec3c38c4594b6ecec75c1f531e84160bd827b2012", size = 10597062, upload_time = "2025-05-29T13:31:05.539Z" }, - { url = "https://files.pythonhosted.org/packages/29/3a/79fa6a9a39422a400564ca7233a689a151f1039110f0bbbabcb38106883a/ruff-0.11.12-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f97fdbc2549f456c65b3b0048560d44ddd540db1f27c778a938371424b49fe4a", size = 10155152, upload_time = "2025-05-29T13:31:07.986Z" }, - { url = "https://files.pythonhosted.org/packages/e5/a4/22c2c97b2340aa968af3a39bc38045e78d36abd4ed3fa2bde91c31e712e3/ruff-0.11.12-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:74adf84960236961090e2d1348c1a67d940fd12e811a33fb3d107df61eef8fc7", size = 11723067, upload_time = "2025-05-29T13:31:10.57Z" }, - { url = "https://files.pythonhosted.org/packages/bc/cf/3e452fbd9597bcd8058856ecd42b22751749d07935793a1856d988154151/ruff-0.11.12-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:b56697e5b8bcf1d61293ccfe63873aba08fdbcbbba839fc046ec5926bdb25a3a", size = 12460807, upload_time = "2025-05-29T13:31:12.88Z" }, - { url = "https://files.pythonhosted.org/packages/2f/ec/8f170381a15e1eb7d93cb4feef8d17334d5a1eb33fee273aee5d1f8241a3/ruff-0.11.12-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4d47afa45e7b0eaf5e5969c6b39cbd108be83910b5c74626247e366fd7a36a13", size = 12063261, upload_time = "2025-05-29T13:31:15.236Z" }, - { url = "https://files.pythonhosted.org/packages/0d/bf/57208f8c0a8153a14652a85f4116c0002148e83770d7a41f2e90b52d2b4e/ruff-0.11.12-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:692bf9603fe1bf949de8b09a2da896f05c01ed7a187f4a386cdba6760e7f61be", size = 11329601, upload_time = "2025-05-29T13:31:18.68Z" }, - { url = "https://files.pythonhosted.org/packages/c3/56/edf942f7fdac5888094d9ffa303f12096f1a93eb46570bcf5f14c0c70880/ruff-0.11.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:08033320e979df3b20dba567c62f69c45e01df708b0f9c83912d7abd3e0801cd", size = 11522186, upload_time = "2025-05-29T13:31:21.216Z" }, - { url = "https://files.pythonhosted.org/packages/ed/63/79ffef65246911ed7e2290aeece48739d9603b3a35f9529fec0fc6c26400/ruff-0.11.12-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:929b7706584f5bfd61d67d5070f399057d07c70585fa8c4491d78ada452d3bef", size = 10449032, upload_time = "2025-05-29T13:31:23.417Z" }, - { url = "https://files.pythonhosted.org/packages/88/19/8c9d4d8a1c2a3f5a1ea45a64b42593d50e28b8e038f1aafd65d6b43647f3/ruff-0.11.12-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:7de4a73205dc5756b8e09ee3ed67c38312dce1aa28972b93150f5751199981b5", size = 10129370, upload_time = "2025-05-29T13:31:25.777Z" }, - { url = "https://files.pythonhosted.org/packages/bc/0f/2d15533eaa18f460530a857e1778900cd867ded67f16c85723569d54e410/ruff-0.11.12-py3-none-musllinux_1_2_i686.whl", hash = "sha256:2635c2a90ac1b8ca9e93b70af59dfd1dd2026a40e2d6eebaa3efb0465dd9cf02", size = 11123529, upload_time = "2025-05-29T13:31:28.396Z" }, - { url = "https://files.pythonhosted.org/packages/4f/e2/4c2ac669534bdded835356813f48ea33cfb3a947dc47f270038364587088/ruff-0.11.12-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:d05d6a78a89166f03f03a198ecc9d18779076ad0eec476819467acb401028c0c", size = 11577642, upload_time = "2025-05-29T13:31:30.647Z" }, - { url = "https://files.pythonhosted.org/packages/a7/9b/c9ddf7f924d5617a1c94a93ba595f4b24cb5bc50e98b94433ab3f7ad27e5/ruff-0.11.12-py3-none-win32.whl", hash = "sha256:f5a07f49767c4be4772d161bfc049c1f242db0cfe1bd976e0f0886732a4765d6", size = 10475511, upload_time = "2025-05-29T13:31:32.917Z" }, - { url = "https://files.pythonhosted.org/packages/fd/d6/74fb6d3470c1aada019ffff33c0f9210af746cca0a4de19a1f10ce54968a/ruff-0.11.12-py3-none-win_amd64.whl", hash = "sha256:5a4d9f8030d8c3a45df201d7fb3ed38d0219bccd7955268e863ee4a115fa0832", size = 11523573, upload_time = "2025-05-29T13:31:35.782Z" }, - { url = "https://files.pythonhosted.org/packages/44/42/d58086ec20f52d2b0140752ae54b355ea2be2ed46f914231136dd1effcc7/ruff-0.11.12-py3-none-win_arm64.whl", hash = "sha256:65194e37853158d368e333ba282217941029a28ea90913c67e558c611d04daa5", size = 10697770, upload_time = "2025-05-29T13:31:38.009Z" }, + { url = "https://files.pythonhosted.org/packages/e3/b2/c80aeeb7f9e469c0d63a85d2f1ab6e1ebfbe10ea7a8d2438b7e09e3ff09e/ruff-0.16.7-py3-none-linux_armv6l.whl", hash = "sha256:727307773e7c7f9181d3ed3a2484186e56c1fa1874255911c74585eb2c7c19f9", size = 10048917 }, + { url = "https://files.pythonhosted.org/packages/7b/96/20bb7bcae008004df52afcb7ac83432d4a467f2c17b672fe46d26be231c5/ruff-0.16.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:9d61c258deabf58f34c67bd4bb4d939c7f2e6b5f0e59c1cdd1cf771b11cde929", size = 10242929 }, + { url = "https://files.pythonhosted.org/packages/90/b2/f184b0d5abec02db69cfd7e49b688ae0237554528ca777136c613bf36bee/ruff-0.16.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7ab81118df8945e0193d0240712aa4496573595b75185c3636ed825592a0f728", size = 9847245 }, + { url = "https://files.pythonhosted.org/packages/eb/2d/db1633a641866ed801e34cc6b60ef236c5e16f9b2124ab1d49cc24a5fe4f/ruff-0.16.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c196c968874fc8019da8e7163de7a1a370f111e2309b4b7dfea0fce950198d0", size = 9961780 }, + { url = "https://files.pythonhosted.org/packages/4d/98/edea21e1a3e38dbbc3bf6bb068b863b3b06184cf8533a4c7dbbe208a89d5/ruff-0.16.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ac8c3bd0a7e10ad31e6ce51e7a99f3cb772e69aecdd6b9ea7e99b362f62a62c0", size = 9866337 }, + { url = "https://files.pythonhosted.org/packages/0b/11/a15e60d4c87b214646f116ca9d204475bf993ee1047459bc9a360fd4d6d1/ruff-0.16.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:398d3988edde000b5c75dc1b3f584708da9bc990de069c18909142580fec1af9", size = 10562512 }, + { url = "https://files.pythonhosted.org/packages/29/42/eaff4c9b6d0c7cdf56df313a17e89ae854f5bbc0b0c8f9cce19be0ab7a8f/ruff-0.16.7-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce05b62b770a8217c4646a9c4139fca00efe8fe5d71f87df2b243ff20d4584d1", size = 11302938 }, + { url = "https://files.pythonhosted.org/packages/5d/43/c75aa59a4ec181fe2ec06cab30e198c1c6d107229a9f008ae3a7c16cabd8/ruff-0.16.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:af1b576fddb9d9ef2ececfb5fadcd6a624b25070ed85e3cfcfe449fc3ff6a7b9", size = 10840857 }, + { url = "https://files.pythonhosted.org/packages/21/33/81f3da371942ea031105ba679d8d6e28ec1660ccd690a45f42d381161356/ruff-0.16.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ce7f8f22df67c93ed96c717f9128eadb797144ac2bad475cf536f31d6100c55", size = 10370001 }, + { url = "https://files.pythonhosted.org/packages/fa/0b/6345fb4dbf6dd0ed1cfe5d18391dc9c3f59cc81622a7b0a65b84b3e730ba/ruff-0.16.7-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:06d0e93d04f392996435ebd600c153f65b47d73fbec2415aa99c5ee5756b3a5f", size = 10548735 }, + { url = "https://files.pythonhosted.org/packages/3f/4d/c5576adf511f92a328e5569dda190ecdd430da51f1a649f3a4a2fd73e21e/ruff-0.16.7-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:142151a5e7b93c1b11111337142f89dd2fbfee92161225c99a97222f22e32656", size = 10108496 }, + { url = "https://files.pythonhosted.org/packages/ff/8c/667d83c16199a17a56adc6b0bd4c3beb5b767a2babcd16a56f76f9be7fd6/ruff-0.16.7-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:e6651f97a342d8b35d54d8991544ca22169b86dc54111cb604666940c431b750", size = 9860136 }, + { url = "https://files.pythonhosted.org/packages/99/75/78d401106731999a1dd20cc5a6961e37e1eb9397a3b589f73f3a5ce146a3/ruff-0.16.7-py3-none-musllinux_1_2_i686.whl", hash = "sha256:ef140c6eb935fa9a84c9c607dfb2cb1b85843c192e79265b0c54f35f557ea8e5", size = 10286290 }, + { url = "https://files.pythonhosted.org/packages/68/49/56f9c3a8b755df93a0ad318b2147bf4ef5dae9a7e5ec61c460109c67957f/ruff-0.16.7-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:53e39506a730fadeee0d998ed5946f30671f0db240c6c7c73bdabbe33604bb6f", size = 10745048 }, + { url = "https://files.pythonhosted.org/packages/5f/ea/7f9b938a63ece4bec677ad7f9f7fa02df3383db1949ed93a382441c09a87/ruff-0.16.7-py3-none-win32.whl", hash = "sha256:2ea3470fcebcbc5df2fb0c6f3b90333fa9084c534e0111c038fa4a6ab9f1c4b7", size = 10059082 }, + { url = "https://files.pythonhosted.org/packages/39/11/480a6973a927aa653e1cead6a6416008640e03a99d05b34c0434b8c6c366/ruff-0.16.7-py3-none-win_amd64.whl", hash = "sha256:7ac26aca826e9e21d0f1cb25b54ac660760a9fdd094d3e4df9848232be98cfc6", size = 10593368 }, + { url = "https://files.pythonhosted.org/packages/8b/4b/51327018d056f0dad2c2238f26d1fb0f53707a9d91b75dea6d1b3039f136/ruff-0.16.7-py3-none-win_arm64.whl", hash = "sha256:aab7f39e2c9df6c596216070f98eef1207b94f8516cca20c808826974971855b", size = 10412401 }, ] [[package]] name = "textual" -version = "3.3.0" +version = "8.2.8" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "markdown-it-py", extra = ["linkify", "plugins"] }, + { name = "markdown-it-py", extra = ["linkify"] }, + { name = "mdit-py-plugins" }, { name = "platformdirs" }, + { name = "pygments" }, { name = "rich" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/6d/96/02751746cf6950e9e8968186cb42eed1e52d91e2c80cc52bb19589e25900/textual-3.3.0.tar.gz", hash = "sha256:aa162b92dde93c5231e3689cdf26b141e86a77ac0a5ba96069bc9547e44119ae", size = 1618996, upload_time = "2025-06-01T14:01:40.336Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/78/c2/c8be0b51bfce3278e057e1563a477bf128097bf5ce82ab21b0bbbcb30986/textual-3.3.0-py3-none-any.whl", hash = "sha256:463809791fd2c979c91ff0b54e25f2e57874828815e51a6503f32cb2e21e4eb0", size = 687997, upload_time = "2025-06-01T14:01:37.654Z" }, -] - -[[package]] -name = "tomli" -version = "2.2.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175, upload_time = "2024-11-27T22:38:36.873Z" } +sdist = { url = "https://files.pythonhosted.org/packages/00/21/39a76b01bd5eea82a04baaca7580e105d8c59450df03998345bb2cfb307b/textual-8.2.8.tar.gz", hash = "sha256:3f106a9fbc73e39dd266c9712432087de78a6d644084c7c241d6a25c3169115b", size = 1860502 } wheels = [ - { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077, upload_time = "2024-11-27T22:37:54.956Z" }, - { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429, upload_time = "2024-11-27T22:37:56.698Z" }, - { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067, upload_time = "2024-11-27T22:37:57.63Z" }, - { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030, upload_time = "2024-11-27T22:37:59.344Z" }, - { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898, upload_time = "2024-11-27T22:38:00.429Z" }, - { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894, upload_time = "2024-11-27T22:38:02.094Z" }, - { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319, upload_time = "2024-11-27T22:38:03.206Z" }, - { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273, upload_time = "2024-11-27T22:38:04.217Z" }, - { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310, upload_time = "2024-11-27T22:38:05.908Z" }, - { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309, upload_time = "2024-11-27T22:38:06.812Z" }, - { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762, upload_time = "2024-11-27T22:38:07.731Z" }, - { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453, upload_time = "2024-11-27T22:38:09.384Z" }, - { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486, upload_time = "2024-11-27T22:38:10.329Z" }, - { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349, upload_time = "2024-11-27T22:38:11.443Z" }, - { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159, upload_time = "2024-11-27T22:38:13.099Z" }, - { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243, upload_time = "2024-11-27T22:38:14.766Z" }, - { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645, upload_time = "2024-11-27T22:38:15.843Z" }, - { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584, upload_time = "2024-11-27T22:38:17.645Z" }, - { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875, upload_time = "2024-11-27T22:38:19.159Z" }, - { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418, upload_time = "2024-11-27T22:38:20.064Z" }, - { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708, upload_time = "2024-11-27T22:38:21.659Z" }, - { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582, upload_time = "2024-11-27T22:38:22.693Z" }, - { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543, upload_time = "2024-11-27T22:38:24.367Z" }, - { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691, upload_time = "2024-11-27T22:38:26.081Z" }, - { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170, upload_time = "2024-11-27T22:38:27.921Z" }, - { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530, upload_time = "2024-11-27T22:38:29.591Z" }, - { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666, upload_time = "2024-11-27T22:38:30.639Z" }, - { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954, upload_time = "2024-11-27T22:38:31.702Z" }, - { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724, upload_time = "2024-11-27T22:38:32.837Z" }, - { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383, upload_time = "2024-11-27T22:38:34.455Z" }, - { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257, upload_time = "2024-11-27T22:38:35.385Z" }, + { url = "https://files.pythonhosted.org/packages/fb/be/35261223d9416a0751cdff1c7b4a6f881387218a12d439fe22fefebc8c04/textual-8.2.8-py3-none-any.whl", hash = "sha256:267375fd402dc8d981457212efa71f0e3365fd17bba144ba9bb3ed7563cb374a", size = 731418 }, ] [[package]] name = "types-psutil" -version = "7.0.0.20250601" +version = "7.2.2.20260906" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c8/af/767b92be7de4105f5e2e87a53aac817164527c4a802119ad5b4e23028f7c/types_psutil-7.0.0.20250601.tar.gz", hash = "sha256:71fe9c4477a7e3d4f1233862f0877af87bff057ff398f04f4e5c0ca60aded197", size = 20297, upload_time = "2025-06-01T03:25:16.698Z" } +sdist = { url = "https://files.pythonhosted.org/packages/97/0a/f48b9b0ab5ba8599fd117309e345152bf82c756c72be2ff0f635780c2792/types_psutil-7.2.2.20260906.tar.gz", hash = "sha256:93abf22cf9a62b915f724e433bde702995ac274865425fd4a76d1d9b5828da1a", size = 27396 } wheels = [ - { url = "https://files.pythonhosted.org/packages/8d/85/864c663a924a34e0d87bd10ead4134bb4ab6269fa02daaa5dd644ac478c5/types_psutil-7.0.0.20250601-py3-none-any.whl", hash = "sha256:0c372e2d1b6529938a080a6ba4a9358e3dfc8526d82fabf40c1ef9325e4ca52e", size = 23106, upload_time = "2025-06-01T03:25:15.386Z" }, + { url = "https://files.pythonhosted.org/packages/eb/8d/81a86107486e1c23f5ca21bea1e9e5b18a50754242e7a0b82f41f9ae8384/types_psutil-7.2.2.20260906-py3-none-any.whl", hash = "sha256:db00baf7f96c3f63421c4d3d68d373923094a0dfddf13e922c5c5fbc42488159", size = 33383 }, ] [[package]] name = "typing-extensions" -version = "4.13.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967, upload_time = "2025-04-10T14:19:05.416Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806, upload_time = "2025-04-10T14:19:03.967Z" }, -] - -[[package]] -name = "uc-micro-py" -version = "1.0.3" +version = "4.16.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/91/7a/146a99696aee0609e3712f2b44c6274566bc368dfe8375191278045186b8/uc-micro-py-1.0.3.tar.gz", hash = "sha256:d321b92cff673ec58027c04015fcaa8bb1e005478643ff4a500882eaab88c48a", size = 6043, upload_time = "2024-02-09T16:52:01.654Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555 } wheels = [ - { url = "https://files.pythonhosted.org/packages/37/87/1f677586e8ac487e29672e4b17455758fce261de06a0d086167bb760361a/uc_micro_py-1.0.3-py3-none-any.whl", hash = "sha256:db1dffff340817673d7b466ec86114a9dc0e9d4d9b5ba229d9d60e5c12600cd5", size = 6229, upload_time = "2024-02-09T16:52:00.371Z" }, + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571 }, ]