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
Installing both this and the JS package (
@pypl100/runevia npm globally) on the same machine means only onerunecommand ends up on yourPATH— whichever your shell finds first, not whichever you installed most recently. Runwhich -a runeto see if you have both; if so, invoke the one you want by its full path rather than relying on the barerunecommand.
For local development from source:
cd python
pip install -e .
Quickstart
cd your-project
rune init
rune watch & # keeps the understanding current in the background as you work
rune serve
Same CLI shape as the JS version: rune init [dir], rune scan [dir], rune watch [dir], rune serve [dir], rune explain <id>, rune --version.
Requirements
- Python 3.10+
- The
mcppackage (installed automatically as a dependency) forrune 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
mcpSDK's tools are defined as explicit@mcp.tool()-decorated functions (src/rune/mcp/server.py), not a dynamically-built list like the JS side'stools.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.
rune watchis polling-based here (checks file mtimes on an interval), not event-based like the JS side'sfs.watch. Python's standard library has no portable recursive file-system-event API, and pulling in a dependency (e.g.watchdog) just for this didn't seem worth it for v1. Functionally equivalent, just less immediate — changes are detected within one poll interval (0.5s by default) rather than instantly.
Metadata
Release files for north-rune 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| north_rune-0.2.0.tar.gz | 18.7 kB | Without provenance | Details for north_rune-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| north_rune-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for north_rune-0.2.0-py3-none-any.whl |
Total release size: 39.4 kB
Release files / north_rune-0.2.0.tar.gz
| Download URL | north_rune-0.2.0.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b169ee057152a875d00dc464ff9e0ad75e7bf8859f95f9fdb64008fdcc753f5
|
|
BLAKE2b-256 checksum How to use checksums |
792728d1f9edb5b93fa35d9ad712586f270811609700f5211b3f23bb3bf4033d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / north_rune-0.2.0-py3-none-any.whl
| Download URL | north_rune-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f26883d5e8f29fc21cb1ae9577544d8c3c9fac977175ddf00d5a7defc90844d
|
|
BLAKE2b-256 checksum How to use checksums |
9198c572d623789d2739f1f35353881f105499141fb6e8e2b031af6de923d0b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for north-rune 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.