nauro-core
Shared pure-Python library for the Nauro ecosystem. Provides parsing, validation, context assembly, and constants used by both the Nauro CLI and the remote MCP server.
Installation
pip install nauro-core
What's inside
decision_model: the PydanticDecisionmodel plus compiled regexes andparse_decision/format_decisionfor the Nauro markdown protocol (decision titles, metadata fields, section headers)constants: limits, thresholds, valid values, file paths shared across all Nauro surfacesparsing: pure markdown→data helpers such asextract_stack_summaryanddecisions_summary_lines(decision parsing lives indecision_model.parse_decision, which returns a validatedDecision)context:build_l0/build_l1/build_l2context assembly from pre-loaded files and parsed decisionsvalidation: structural screening, hash dedup, and BM25 retrieval of related decisions
Design principles
- No I/O: no filesystem, no network; callers inject pre-loaded data. Runtime dependencies are compute-only (BM25, parsing, validation); embeddings are an optional extra (
nauro-core[embeddings]) - Function injection: callers pass pre-loaded data (
files: dict[str, str],decisions: list[dict]); nauro-core never reads files or calls APIs - Import isolation: enforced via
import-linter, so nauro-core cannot import fromnauroormcp_server
Usage
from nauro_core import parse_decision, build_l0, compute_hash
# Parse a decision markdown file
decision = parse_decision(markdown_content, "042-use-s3.md")
# Build L0 context from pre-loaded files
context = build_l0(files={"state.md": state, "stack.md": stack}, decisions=decisions)
# Check for duplicate decisions
hash_val = compute_hash(title="Use S3 for storage", rationale="...")
License
Apache 2.0
Metadata
Release files for nauro-core 1.17.1
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 | |
|---|---|---|---|---|
| nauro_core-1.17.1.tar.gz | 292.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nauro_core-1.17.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 449.4 kB
Release files / nauro_core-1.17.1.tar.gz
| Download URL | nauro_core-1.17.1.tar.gz |
|---|---|
| Size | 292.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1d99bd1119abe3c77acf30a8f677598196346a80fecd8a71d02be437031e434
|
|
BLAKE2b-256 checksum How to use checksums |
7a1ff5ceefa88b583152851c646644f7432bb1de6cfe14ea5baca2aed35d23c3
|
| 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 Oct 16, 2026.
Transparency logRelease files / nauro_core-1.17.1-py3-none-any.whl
| Download URL | nauro_core-1.17.1-py3-none-any.whl |
|---|---|
| Size | 156.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e612e9e14826c93fbf3b6830fbd137c422973dd8e333919ce964dd32e95d94c6
|
|
BLAKE2b-256 checksum How to use checksums |
b156498c7ddc72024c8039f8d8ebb194dd0ad1b114e47f021262a41a0b3f1820
|
| 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 Oct 16, 2026.
Transparency logSecurity for nauro-core 1.17.1
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 2 files in this release have been uploaded with provenance metadata.
Attestation for nauro_core-1.17.1.tar.gz
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 Oct 16, 2026.
Transparency logA 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.