Skip to main content

The Software Intelligence Runtime — persistent, explainable software understanding for any AI. Python distribution.

Project description

Rune (Python distribution)

The same Software Intelligence Runtime as the JS/TS package, packaged for pip install — for teams whose tooling lives in Python (CI, monorepo scripts, internal tooling) who'd rather not require Node.js just to run Rune against a JS/TS/React/Next.js/Express codebase.

Feature parity with the JS version in v0.1: same fact/derived-understanding model, same React/Next.js/Express detection, same MCP tool surface, same documented limitations (heuristic regex-based extraction, no cross-file Express route-prefix resolution, dotfiles/secrets never scanned).

Package name

Published on PyPI as north-rune. (rune itself and short variants like rune-sdk/runesdk are unavailable — runesdk was rejected outright by PyPI as too similar to the existing runeq package.) The CLI command itself is still rune — only the package name you pip install differs, same as the JS side installs as @pypl100/rune but runs as rune.

Install

pip install north-rune

For local development from source:

cd python
pip install -e .

Quickstart

cd your-project
rune init
rune scan
rune serve

Same CLI shape as the JS version: rune init [dir], rune scan [dir], rune serve [dir], rune explain <id>, rune --version.

Requirements

  • Python 3.10+
  • The mcp package (installed automatically as a dependency) for rune serve

Testing

No pytest dependency required — the suite runs on Python's built-in unittest:

python -m unittest tests.test_scan -v

To verify the live MCP server (the one thing the unit tests can't cover, since it needs the real mcp package installed and a real subprocess handshake):

pip install -e .
python scripts/verify_mcp_server.py
# or against a real project:
python scripts/verify_mcp_server.py /path/to/your-project

Differences from the JS version worth knowing

  • The Python mcp SDK's tools are defined as explicit @mcp.tool()-decorated functions (src/rune/mcp/server.py), not a dynamically-built list like the JS side's tools.js. This was a deliberate choice: the decorator pattern is the most version-stable, best-documented part of the Python MCP SDK's API, which matters most for the one part of this port that couldn't be tested without a real install.
  • ID formatting differs cosmetically (hex counters, same scheme) but the scoping guarantee is identical: ids reset per scan and are unique within a scan.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

north_rune-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

north_rune-0.1.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file north_rune-0.1.1.tar.gz.

File metadata

  • Download URL: north_rune-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for north_rune-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f1b432cc177521f1283148fbfd8ca692e0f07d9e972a22e0d88d980300472fd
MD5 db39e3140bafb47417830c9cb9fd7bb8
BLAKE2b-256 b46db7864508f3b03739e037ba30117dee7cbd028426a0d0a6452a3a66a416e8

See more details on using hashes here.

File details

Details for the file north_rune-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: north_rune-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for north_rune-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24ba65d6d5269cc8bd42a03788a90f7553d81c9d51f5f31f7cef1de4d2eef1ed
MD5 49751907ea28023e47b8f0653ca73f93
BLAKE2b-256 c892552be5d98766257c213e21fdf24832a17a1d715f1cb201915e0e938622a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page