Skip to main content

pynaxs — NAXS Validator

Python validator for the Neural Architecture Exchange Specification (NAXS) v0.1.

Install

pip install pynaxs

Or from source (this repository is a monorepo):

pip install git+https://github.com/neuroarchitectures/naxs#subdirectory=pynaxs

CLI Usage

# Validate a single file
pynaxs validate path/to/architecture.json

# Validate all JSON files in a directory
pynaxs validate path/to/architectures/

# Show only errors (suppress warnings)
pynaxs validate --strict path/to/architecture.json

# JSON output for CI integration
pynaxs validate --format json path/to/architecture.json

Python API

from pynaxs import NaxsValidator

validator = NaxsValidator()
result = validator.validate_file("architecture.json")

if result.is_valid():
    print(f"Valid! ({len(result.warnings)} warnings)")
else:
    for err in result.errors:
        print(f"ERROR: {err.path}: {err.message}")
    for warn in result.warnings:
        print(f"WARN:  {warn.path}: {warn.message}")

Validation Coverage

Implements all rules from the NAXS specification:

Section Rules
§13.1 Structural Integrity Required fields, component ID uniqueness, reference integrity, connection integrity
§13.2 Consistency inputs/outputs bidirectional consistency, connections consistency
§13.3 Parameter Validity Type checking, null/nested-object rejection
§13.4 Soft Validation Warnings for custom ops with empty params, missing scope, non-standard param names, missing description
§25.11 Block Templates Unique template IDs, block_ref resolution, node uniqueness, edge references, repeat directives, $paramName resolution, $expr syntax, circular reference detection

License

Apache-2.0

Metadata

Release files for pynaxs 0.1.0

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

Source distribution (sdist)

Source distribution for pynaxs 0.1.0
File Size Uploaded
pynaxs-0.1.0.tar.gz 26.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pynaxs 0.1.0
File Interpreter ABI Platform
pynaxs-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.3 kB

Release files / pynaxs-0.1.0.tar.gz

Download URL pynaxs-0.1.0.tar.gz
Size 26.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d13e825ceda54fb05450c2df866d014716f86643886ca1f9006ffac8ebad90d9
BLAKE2b-256 checksum
How to use checksums
0a2b54a3cc38a3c36596eb705a364cea151ce50cea6407451c007f8e1b6a1fff
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 Sep 23, 2026.

Transparency log

Release files / pynaxs-0.1.0-py3-none-any.whl

Download URL pynaxs-0.1.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a842e6cc29f510599093a367ae9fa0a62b55368bbd027fbc4d48493177fd8652
BLAKE2b-256 checksum
How to use checksums
3b5e89703e3d4aac47fca1bb0c2fa4ec3d7e789e99dbfdf8cf4d45ec034db1b9
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 Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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