Skip to main content

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 Pydantic Decision model plus compiled regexes and parse_decision/format_decision for the Nauro markdown protocol (decision titles, metadata fields, section headers)
  • constants: limits, thresholds, valid values, file paths shared across all Nauro surfaces
  • parsing: pure markdown→data helpers such as extract_stack_summary and decisions_summary_lines (decision parsing lives in decision_model.parse_decision, which returns a validated Decision)
  • context: build_l0/build_l1/build_l2 context assembly from pre-loaded files and parsed decisions
  • validation: 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 from nauro or mcp_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.2

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

Source distribution (sdist)

Source distribution for nauro-core 1.17.2
File Size Uploaded Provenance Actions
nauro_core-1.17.2.tar.gz 292.8 kB With provenance Details for nauro_core-1.17.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nauro-core 1.17.2
File Interpreter ABI Platform Actions
nauro_core-1.17.2-py3-none-any.whl Python 3 none any Details for nauro_core-1.17.2-py3-none-any.whl

Total release size: 449.8 kB

Release files / nauro_core-1.17.2.tar.gz

Download URL nauro_core-1.17.2.tar.gz
Size 292.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b9de8a1b26f675dbeb14e99ab96350bf896d2e48e3a77d64f44a889581cf69f
BLAKE2b-256 checksum
How to use checksums
be0f551a827c9b0356260f624f6e0ca3cb487e56c756a0df4cea6a88d2a718d5
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 Oct 29, 2026.

Transparency log

Release files / nauro_core-1.17.2-py3-none-any.whl

Download URL nauro_core-1.17.2-py3-none-any.whl
Size 157.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ab9ee270004f0fea488bdf465fc72c3b5481ebbe0c0188e9ca1df42e7f54584
BLAKE2b-256 checksum
How to use checksums
0956b5447301aaf5fa91955fbb9ca2ca3145782baa3b301d55d3602d9f84c67b
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 Oct 29, 2026.

Transparency log

Security for nauro-core 1.17.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nauro_core-1.17.2.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 29, 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

1.17.2 This release

2 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