Skip to main content

ntoseye

Drive the ntoseye Windows kernel debugger from Python, and run it from the command line.

See docs/scripting/sdk.md for address-space-bound views and run control. The package also installs the ntoseye command (the REPL, ntoseye mcp, dap, and gdbserver), which runs Python custom commands from ~/.ntoseye/commands/: uv tool install ntoseye or pipx install ntoseye.

Install

pip install ntoseye

Or build from source into a virtualenv with maturin:

cd python
python3 -m venv .venv
source .venv/bin/activate
pip install maturin
maturin develop --release

Or build a wheel and install it:

cd python
maturin build --release --out dist
pip install dist/ntoseye-*.whl

Quick start

import ntoseye

with ntoseye.attach() as dbg:  # defaults to the kd backend
    print(dbg.inspect.version())
    for proc in dbg.processes:
        print(proc.pid, proc.name)

For read-only inspection of a paused VM, select backend="memory". Processes are handles keyed by PID (dbg.processes[pid]); memory and modules for a specific process are available through proc.memory and proc.modules.

Type stubs

ntoseye/_ntoseye.pyi is generated from the extension by PyO3's introspection: signatures come from the Rust types and docstrings from the doc comments. After changing the Rust surface, regenerate it and commit the result (CI fails when the checked-in stub differs from a fresh one):

maturin develop --release --generate-stubs

Tests

pip install pytest mypy
pytest tests                        # target-free surface tests
mypy --strict -p ntoseye            # the stub and package type-check
NTOSEYE_TEST_BACKEND=kd NTOSEYE_TEST_CONNECT=/tmp/ntoseye-kd.sock pytest tests

The last line also runs tests/test_live.py against a guest: it breaks in, steps, sets breakpoints on hot kernel functions, and resumes the guest. Add NTOSEYE_TEST_MEMORY_SOURCE=kd to read guest memory over KD instead of from the VM process: no root needed for UTM on macOS, and required for a remote target.

Releasing portable wheels

Release wheels are built by .github/workflows/release.yml with PyO3/maturin-action on native GitHub runners:

  • Linux x86-64 and ARM64 build on ubuntu-22.04 and ubuntu-24.04-arm inside the quay.io/pypa/manylinux_2_28_* images, producing manylinux_2_28 wheels.
  • Apple Silicon uses the native ARM64 macos-14 runner.

Each wheel then passes twine check and the target-free tests (tests/test_surface.py) in a clean virtual environment before upload.

To reproduce a Linux release wheel locally (from the repository root, Docker required):

docker run --rm -e CARGO_TARGET_DIR=/tmp/target -e HOST_IDS="$(id -u):$(id -g)" \
  -v "$PWD":/io -w /io/python quay.io/pypa/manylinux_2_28_$(uname -m) bash -c '
  dnf install -y clang &&
  curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal &&
  source ~/.cargo/env &&
  /opt/python/cp312-cp312/bin/pip install maturin &&
  /opt/python/cp312-cp312/bin/maturin build --release --out dist --compatibility manylinux_2_28 &&
  chown -R "$HOST_IDS" dist'

Release files for ntoseye 0.43.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ntoseye 0.43.0
File Interpreter ABI Platform
ntoseye-0.43.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
ntoseye-0.43.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
ntoseye-0.43.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 36.1 MB

Release files / ntoseye-0.43.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL ntoseye-0.43.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 12.3 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
c58536a449db590dbc5c487a424e201314f6cefadc48322f88dce152e9969e1f
BLAKE2b-256 checksum
How to use checksums
27419fe8501d7da3598083fb0cb319fcd78b1487608c8d3a65f44423f44307d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / ntoseye-0.43.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL ntoseye-0.43.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 12.7 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
ed44ddf4ed6ee3b3895a0514a7680af293f2666af508541f077735c95a6e0cb0
BLAKE2b-256 checksum
How to use checksums
0e7469b993b48cae6c2c7b80d7f46c0c58a8a070c9878d6855775c786a6c1df1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / ntoseye-0.43.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL ntoseye-0.43.0-cp39-abi3-macosx_11_0_arm64.whl
Size 11.1 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1f81eee3cf3f6fd1a4a54318a6e9fe04333438bfcb349eb2bf665aa0180ced5b
BLAKE2b-256 checksum
How to use checksums
2c931b565ac661eb0b765768041fe5d08eee2e1884828aa445fbf4e1c3392f93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.43.0 This release

3 release files

0.42.0

3 release files

0.41.0

3 release files

0.40.1

3 release files

0.40.0

3 release files

0.39.1

3 release files

0.39.0

3 release files

0.38.0

3 release files

0.37.1

3 release files

0.37.0

3 release files

0.36.0

3 release files

0.35.0

3 release files

0.34.0

3 release files

0.33.0

2 release files

0.32.0

2 release files

0.31.0

2 release files

0.30.0

2 release files

0.29.0

2 release files

0.28.1

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.0

1 release file

0.21.0

1 release file

0.20.0

1 release file

0.19.0

1 release file

0.18.1

1 release file

0.18.0

1 release file

0.17.0

1 release file

0.16.1

1 release file

0.16.0

1 release file

0.15.0

1 release file

0.14.0

1 release file

0.13.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page