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: extract_stack_summary, decisions_summary_lines (decision parsing lives in decision_model.parse_decision, which returns a validated Decision)
  • contextbuild_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: 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

Download files

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

Source Distribution

nauro_core-1.15.0.tar.gz (283.1 kB view details)

Uploaded Source

Built Distribution

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

nauro_core-1.15.0-py3-none-any.whl (151.5 kB view details)

Uploaded Python 3

File details

Details for the file nauro_core-1.15.0.tar.gz.

File metadata

  • Download URL: nauro_core-1.15.0.tar.gz
  • Upload date:
  • Size: 283.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nauro_core-1.15.0.tar.gz
Algorithm Hash digest
SHA256 f713c5cb77ef9c84ec3c604a578d5ca8d7c83f4ef90a9b87b741099a8c9b2121
MD5 6200efe91c08452e1a05529ba0c4f277
BLAKE2b-256 e606e886ba0287324956fd3a037e21b51d26814a5ceec631665b415d273c4227

See more details on using hashes here.

Provenance

The following attestation bundles were made for nauro_core-1.15.0.tar.gz:

Publisher: publish-nauro-core.yml on Nauro-AI/nauro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nauro_core-1.15.0-py3-none-any.whl.

File metadata

  • Download URL: nauro_core-1.15.0-py3-none-any.whl
  • Upload date:
  • Size: 151.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nauro_core-1.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdac0fc9b587cbeabb9649cbd2b870607733cdf5a831204be20722d9c452aa24
MD5 b915f69ea3a3f760386dde4eb344ec40
BLAKE2b-256 f86ee0f3437b1f0e074eaf8337cda9c1cd4952e336f7da48e0b76229cbefe975

See more details on using hashes here.

Provenance

The following attestation bundles were made for nauro_core-1.15.0-py3-none-any.whl:

Publisher: publish-nauro-core.yml on Nauro-AI/nauro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.16.0

2 files

This release

1.15.0 This release

2 files

1.14.1

2 files

1.14.0

2 files

1.13.0

2 files

1.12.0

2 files

1.11.0

2 files

1.10.0

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.13.12

2 files

0.13.11

2 files

0.13.10

2 files

0.13.9

2 files

0.13.8

2 files

0.13.7

2 files

0.13.6

2 files

0.13.5

2 files

0.13.4

2 files

0.13.3

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.0

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

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