Shared pure-Python logic for Nauro: parsing, validation, context assembly, constants.
Project description
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
format— compiled regexes and parse/format functions for the Nauro markdown protocol (decision titles, metadata fields, section headers)constants— limits, thresholds, valid values, file paths shared across all Nauro surfacesparsing— purestr → dictfunctions:parse_decision,parse_questions,extract_stack_summary,decisions_summary_linescontext—build_l0/build_l1/build_l2context assembly from pre-loaded files and parsed decisionsvalidation— structural screening, hash dedup, Jaccard similarity for decision conflict detectionpending—PendingStorefor the propose/confirm decision workflow
Design principles
- Zero runtime dependencies — pure Python, no I/O, no filesystem, no network
- 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 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nauro_core-0.1.0.tar.gz.
File metadata
- Download URL: nauro_core-0.1.0.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d7ca4abd6ac00bddf535873031f6b5386959406676eb0561b0b78eaf48adeb3
|
|
| MD5 |
5bb17be8e0745157e950bcc8b0c95cc2
|
|
| BLAKE2b-256 |
46a39a41b7c800d94f29aeccd36cb2d9f9c917117c18e33ce1bf48a1da2bf4f0
|
Provenance
The following attestation bundles were made for nauro_core-0.1.0.tar.gz:
Publisher:
publish-nauro-core.yml on Nauro-AI/nauro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nauro_core-0.1.0.tar.gz -
Subject digest:
5d7ca4abd6ac00bddf535873031f6b5386959406676eb0561b0b78eaf48adeb3 - Sigstore transparency entry: 1301899729
- Sigstore integration time:
-
Permalink:
Nauro-AI/nauro@0a9a13287c7e609d3f8ed64b7a541a9e01884f4b -
Branch / Tag:
refs/tags/nauro-core-v0.1.0 - Owner: https://github.com/Nauro-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-nauro-core.yml@0a9a13287c7e609d3f8ed64b7a541a9e01884f4b -
Trigger Event:
push
-
Statement type:
File details
Details for the file nauro_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nauro_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697d85967dd87eeca940a31a20c59855a9480268ab6729fe6e582479d68b5c2c
|
|
| MD5 |
9688bc17b6fdfc8a3ea77c1b2c782d2e
|
|
| BLAKE2b-256 |
71d49358e1c4c4fbe9ddd4137801d5d1a5335c27470eed75b716127420cf260d
|
Provenance
The following attestation bundles were made for nauro_core-0.1.0-py3-none-any.whl:
Publisher:
publish-nauro-core.yml on Nauro-AI/nauro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nauro_core-0.1.0-py3-none-any.whl -
Subject digest:
697d85967dd87eeca940a31a20c59855a9480268ab6729fe6e582479d68b5c2c - Sigstore transparency entry: 1301899803
- Sigstore integration time:
-
Permalink:
Nauro-AI/nauro@0a9a13287c7e609d3f8ed64b7a541a9e01884f4b -
Branch / Tag:
refs/tags/nauro-core-v0.1.0 - Owner: https://github.com/Nauro-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-nauro-core.yml@0a9a13287c7e609d3f8ed64b7a541a9e01884f4b -
Trigger Event:
push
-
Statement type: