coreason-graph-nexus
The Graph Orchestration & Reasoning Engine
coreason-graph-nexus acts as the "Platinum Layer" Builder and Graph Logic Engine. It bridges the gap between persistent graph storage (Neo4j) and high-speed in-memory reasoning (NetworkX), ensuring robust data ingestion, ontology alignment, and advanced algorithmic analysis.
🚀 Features
- Hybrid Compute Architecture: Seamlessly moves data between Cold Storage (Neo4j) and Hot Compute (NetworkX) for on-demand analysis.
- Projection Engine (The Builder): Declarative ETL pipeline that transforms raw data into a semantic graph, enforcing schema constraints.
- Ontology Resolver (The Librarian): Standardizes entity identities (e.g., merging "Tylenol" and "APAP") with high-performance Redis caching.
- Graph Computer (The Thinker): Executes complex algorithms like PageRank, Betweenness Centrality, and Community Detection in memory.
- Link Predictor (The Analyst): Infers implicit relationships using both heuristic rules and semantic vector embeddings.
- Graph Logic Microservice (Service G): Exposes all engine capabilities via a high-performance REST API (FastAPI) for seamless integration into microservice architectures.
📦 Installation
pip install coreason-graph-nexus
🛠️ Usage
Here is a quick example of how to initialize the client and run a PageRank analysis:
from coreason_graph_nexus.adapters.neo4j_adapter import Neo4jClient
from coreason_graph_nexus.compute import GraphComputer
from coreason_graph_nexus.models import GraphAnalysisRequest, AnalysisAlgo
# 1. Initialize Connection
neo4j_auth = ("neo4j", "password")
with Neo4jClient(uri="bolt://localhost:7687", auth=neo4j_auth) as client:
# 2. Initialize the Graph Computer
computer = GraphComputer(client)
# 3. Define Analysis Request
request = GraphAnalysisRequest(
center_node_id="RxNorm:123",
algorithm=AnalysisAlgo.PAGERANK,
depth=2,
write_property="pagerank_score"
)
# 4. Run Analysis
results = computer.run_analysis(request)
print(f"Computed PageRank for {len(results)} nodes.")
Running as a Microservice
You can also deploy the engine as a standalone service:
# Start the API server
uvicorn coreason_graph_nexus.server:app --host 0.0.0.0 --port 8000
Refer to vignette.md for detailed API usage examples.
📄 License
This software is dual-licensed. It is available under the Prosperity Public License 3.0 for open-source and non-commercial use. Commercial use beyond a 30-day trial requires a separate license.
Copyright (c) 2025 CoReason, Inc.
Metadata
Release files for coreason-graph-nexus 0.4.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 | |
|---|---|---|---|
| coreason_graph_nexus-0.4.0.tar.gz | 22.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coreason_graph_nexus-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.4 kB
Release files / coreason_graph_nexus-0.4.0.tar.gz
| Download URL | coreason_graph_nexus-0.4.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c23a67f4f5783d07f485578b1f5ad27809287c594e46bde1b3b188049a7e0aa
|
|
BLAKE2b-256 checksum How to use checksums |
33c6a9a4d5b1302eb24e92c1714bca0d5f65927dbcd714e9ccaf56e1ad08c58a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 31, 2026.
Transparency logRelease files / coreason_graph_nexus-0.4.0-py3-none-any.whl
| Download URL | coreason_graph_nexus-0.4.0-py3-none-any.whl |
|---|---|
| Size | 32.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70529a44d990a3c443957299abd843356e919183f9334aa909a97e4851dcb73f
|
|
BLAKE2b-256 checksum How to use checksums |
7d65c2dda92929b2ff9848aa26668abfde49e40351db0212f30e31a190b75d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 31, 2026.
Transparency log