Economic network analysis tools for the Khipu Intelligence Suite
Project description
KRL Network Analysis
Version: 1.0.0
License: Apache-2.0
Python: ≥3.9
Status: Production ✅
SECTION A — Executive & Strategic Overview
What This Repository Does
KRL Network Analysis provides economic network analysis tools. It implements:
- Network Construction — Build networks from economic data
- Centrality Analysis — Identify key actors and bottlenecks
- Community Detection — Discover economic clusters
- Shock Propagation — Model cascading effects
- Supply Chain Risk — Identify vulnerabilities
Current Maturity Level: PRODUCTION ✅
| Criterion | Status |
|---|---|
| Core network methods | ✅ Yes |
| Centrality analysis | ✅ Yes |
| Test coverage | ✅ 79.7% (2166/2718 lines) |
| Branch coverage | ✅ 73.5% (929/1264 branches) |
| Documentation | ✅ Yes |
This is the best-tested repository in the KRL suite.
Strategic Dependencies
- Upstream: krl-premium-backend (API access)
- Downstream: None
- Peer: krl-geospatial-tools (network + spatial overlap)
Known Gaps
- Coverage gap to 80% — Close but not quite at target
- Branch coverage 73.5% — Good but could improve
SECTION B — Product, Marketing & Sales Intelligence
Network Capabilities (Verified)
| Capability | Status |
|---|---|
| Economic network construction | ✅ |
| Centrality measures | ✅ |
| Community detection | ✅ |
| Temporal network analysis | ✅ |
| Shock propagation modeling | ✅ |
| Supply chain vulnerability | ✅ |
| Network visualization | ✅ |
Capabilities Safe to Reference in Sales
✅ Can claim:
- "Economic network analysis"
- "Supply chain risk assessment"
- "Shock propagation modeling"
- "Input-output network analysis"
- "Trade network analysis"
- "~80% test coverage"
Differentiators
- Economic focus — Designed for economic networks, not generic graphs
- Supply chain analysis — Built-in vulnerability detection
- Shock modeling — Cascade effect simulation
- High quality — Best test coverage in KRL suite
SECTION C — Engineering & Development Brief
Tech Stack
| Component | Technology |
|---|---|
| Language | Python ≥3.9 |
| Graphs | networkx |
| Visualization | plotly, matplotlib |
| Data | pandas, numpy |
| Testing | pytest |
How to Run
pip install -e ".[dev]"
pytest tests/ -v --cov=src
Key Modules
| Module | Purpose |
|---|---|
construction/ |
Build networks from data |
centrality/ |
Centrality measures |
community/ |
Community detection |
dynamics/ |
Temporal analysis |
risk/ |
Vulnerability assessment |
visualization/ |
Network plots |
Quality Metrics
Coverage: 79.7% (2166/2718 lines)
Branch: 73.5% (929/1264 branches)
SECTION D — Operational & Governance Notes
Maintenance Risks
| Risk | Severity | Mitigation |
|---|---|---|
| Coverage gap to 80% | LOW | Add edge case tests |
| Branch coverage gap | LOW | Improve conditional coverage |
Ownership
- Team: KR-Labs Engineering
- Escalation: engineering@krlabs.dev
Last updated: December 14, 2025 — Forensic audit verified 79.7% coverage
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 krl_network_analysis-0.2.0.tar.gz.
File metadata
- Download URL: krl_network_analysis-0.2.0.tar.gz
- Upload date:
- Size: 89.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04938b76c0203c61c30baccc0a05bd31d118ce01e70d660273a2f3e39482bd51
|
|
| MD5 |
78dd4997e3a65f4cce7a5ea9e93576f9
|
|
| BLAKE2b-256 |
98d21c4ef7f2b39e9467dbaa384cba249d4cda6340312ecfd7266114506efba9
|
File details
Details for the file krl_network_analysis-0.2.0-py3-none-any.whl.
File metadata
- Download URL: krl_network_analysis-0.2.0-py3-none-any.whl
- Upload date:
- Size: 74.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77fa1fca39068cf37f9df6fe50e1e558bc62f43e67e0a7c5d01a63b9b9684608
|
|
| MD5 |
e62d861c75ce28a14c997e0606595759
|
|
| BLAKE2b-256 |
3973773470aeee6ef6b682cb3cd812e0958c2494eec6e7924f5fe0cb4c67a364
|