Skip to main content

ntoseye

This package lets you control the ntoseye Windows kernel debugger from Python and run it from the command line.

For address-space-bound views and run control, see docs/scripting/sdk.md.

The package also installs the ntoseye command, which gives you the REPL, ntoseye mcp, dap, and gdbserver, and runs Python custom commands from ~/.ntoseye/commands/. To install the command in its own environment, run 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".

dbg.processes holds process handles keyed by PID (dbg.processes[pid]), and each process gives its own memory and modules through proc.memory and proc.modules.

Type stubs

PyO3 introspection generates ntoseye/_ntoseye.pyi from the extension, taking the signatures from the Rust types and the docstrings from the doc comments.

CI fails when the stub in the repository differs from a newly generated one, so after you change the Rust surface, regenerate the stub and commit the result. CI uses the latest maturin, and the stub needs 1.16 or later, which escapes docstrings itself:

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
NTOSEYE_TEST_BACKEND=gdb NTOSEYE_TEST_CONNECT=127.0.0.1:1234 pytest tests

The last two commands also run the tests/test_live*.py files and tests/test_stub_types.py on a guest, over KD or QEMU's GDB stub. They break in, step, set breakpoints on hot kernel functions, and resume the guest. The tests of breakpoints in the Windows hypervisor, the secure kernel, and guest partitions need the gdb backend, and skip on kd. Each file attaches once; tests/test_live_breakpoints.py and tests/test_live_detach.py check what breakpoints and a closed session leave in the guest, and write only to nt!NtShutdownSystem, which the guest does not run while it is up.

By default (auto), the tests read guest memory from the VM process when they can. Add NTOSEYE_TEST_MEMORY_SOURCE=kd to read it over KD instead, which needs no root for UTM on macOS and is required for a remote target.

Releasing portable wheels

The workflow .github/workflows/release.yml builds the release wheels with PyO3/maturin-action on native GitHub runners:

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

Before the upload, each wheel must pass twine check and the target-free tests (tests/test_surface.py) in a clean virtual environment.

To make a Linux release wheel locally, run this from the repository root (Docker is 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'

Metadata

Release files for ntoseye 0.53.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.53.0
File Interpreter ABI Platform Actions
ntoseye-0.53.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for ntoseye-0.53.0-cp39-abi3-manylinux_2_28_x86_64.whl
ntoseye-0.53.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for ntoseye-0.53.0-cp39-abi3-manylinux_2_28_aarch64.whl
ntoseye-0.53.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for ntoseye-0.53.0-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 49.6 MB

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

Download URL ntoseye-0.53.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 16.7 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2cb48a6184fbb01551d7223475298b2be860ac0753eed37ea288f71dec4eb129
BLAKE2b-256 checksum
How to use checksums
0584f3c0f97e24b63fbf145849b1a77ba36fcc7be2202af579ea3aa2ceb8d51f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

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

Download URL ntoseye-0.53.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 17.4 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
6ef090f6b14c3bd1f7d2eda1efdcb3b79c579760b9fde8c90f3edd048709fe4e
BLAKE2b-256 checksum
How to use checksums
7c3caedc11b038463bfe8b019a7776c1dd1f0f14e0eed7ac04c39529d0724e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

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

Download URL ntoseye-0.53.0-cp39-abi3-macosx_11_0_arm64.whl
Size 15.5 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
de690b9b11a96daee984998a1f4a807843cbe024c6ff85450c40c822fcaa1578
BLAKE2b-256 checksum
How to use checksums
e78193be5f8754c8342f14e0053e04a3ac8d2ecf9b2d18e23d375163c1d1dd27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Security for ntoseye 0.53.0

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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for ntoseye-0.53.0-cp39-abi3-manylinux_2_28_x86_64.whl

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 Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.53.0 This release

3 release files Full provenance

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