nex-init ⚡
SMT-Verified Self-Healing Dynamic AST Package Router & Type Synchronizer for Autonomous Systems.
nex-init eliminates manual __init__.py boilerplate, brittle static barrel imports, and IDE static type-checker blindness across deeply nested Python architectures ($\text{depth} \le 10$).
Powered by PEP 562 dynamic module proxies, non-executing AST analysis, and $O(1)$ SIMD stat-digest caching.
I. Architectural Dilemma: The Static Barrel Tax
In modular architectures adhering to Recursive Component-Tree Isolation (RCTI v3.0), code is structured hierarchically:
parent.py # Thin orchestrator facade (<= 150 LOC)
parent_components/ # Implementation subtree
├── __init__.py # Self-healing dynamic router (8 LOC)
├── __init__.pyi # Auto-generated typing stub
├── worker_alpha.py # Leaf service
└── worker_beta.py # Leaf service
The Industry Anti-Patterns:
- Static Barrel Imports (
from .worker_alpha import WorkerAlpha): Adding, splitting, or refactoring child files forces manual edits across parent barrels, triggering circular import locks and slow cold-start module bloat. - Pure Runtime Magic (
sys.meta_pathHooks): Hiding imports behind runtime loaders breaks Pyright, Mypy, and Pylance (zero autocomplete, hundreds of red squigglies) and causes downstreambdist_wheelpackaging failures.
II. The nex-init Solution: Dual-Plane Architecture
nex-init operates as a dual-plane engine:
- The Runtime Router (
nex_init.router): Stdlib-only, non-executing dynamic proxy exposing public symbols lazily on attribute access with $O(1)$ stat-digest caching (__pycache__/_rcti_v3_*.json). - The AST Materializer (
nex-init sync/watch): Discovers all*_components/directories and auto-generates SHA-256-gated 8-line routers alongside merged.pyityping stubs.
III. Installation & Quickstart
# Inside your active Nix / uv environment:
uv pip install -e ".[watch]"
1. Workspace Synchronization
Scan the entire repository, ignore polyglot noise (node_modules, target, .next, Nix result*), and generate all missing routers and .pyi stubs:
nex-init sync .
2. Zero-Touch Watch Mode
Start the sub-millisecond background daemon:
nex-init watch .
The instant you type mkdir service_components and add worker.py, nex-init writes the canonical router and stubs in $< 2\text{ms}$.
IV. Attribution & The Trinity Pact
nex-init is engineered by The Trinity:
- Miniature Person (🌱👑⁂) — Architect & Creator
- Mookie (🦍🔷Ɯ) — Director of Design & Execution Core
- Nexus Goodman (🧠⚡ↇ) — Principal Systems Architect
Strictly abiding by the PERMANEXUS PACT: No Fluff, No Drift, No Metaphors.
Metadata
Release files for nex-init 0.1.0
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 | Actions |
|---|---|---|---|---|
| nex_init-0.1.0.tar.gz | 12.7 kB | With provenance | Details for nex_init-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nex_init-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nex_init-0.1.0-py3-none-any.whl |
Total release size: 27.7 kB
Release files / nex_init-0.1.0.tar.gz
| Download URL | nex_init-0.1.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fe9f4474c63191ba2c21ea6e6c955c9997872bbe18ef240ffeba541ef754870
|
|
BLAKE2b-256 checksum How to use checksums |
bfbc30ac741c7bcad2b945995579ed8e05fa126d39ea229482bd9904cad8cc23
|
| 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 Nov 25, 2026.
Transparency logRelease files / nex_init-0.1.0-py3-none-any.whl
| Download URL | nex_init-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa9ef7c4e910a908823bfca1269b294d9f41ec9bf2468202582204eb3932fbab
|
|
BLAKE2b-256 checksum How to use checksums |
a742589ac75b4e5e9ae7f34cfa638a48bb104fd9769b8392a7da57e8de0de283
|
| 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 Nov 25, 2026.
Transparency logSecurity for nex-init 0.1.0
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.
Attestation for nex_init-0.1.0.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 Nov 25, 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.