Skip to main content

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:

  1. Network Construction — Build networks from economic data
  2. Centrality Analysis — Identify key actors and bottlenecks
  3. Community Detection — Discover economic clusters
  4. Shock Propagation — Model cascading effects
  5. 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

  1. Coverage gap to 80% — Close but not quite at target
  2. 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

  1. Economic focus — Designed for economic networks, not generic graphs
  2. Supply chain analysis — Built-in vulnerability detection
  3. Shock modeling — Cascade effect simulation
  4. 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


Last updated: December 14, 2025 — Forensic audit verified 79.7% coverage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krl_network_analysis-0.2.0.tar.gz (89.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krl_network_analysis-0.2.0-py3-none-any.whl (74.2 kB view details)

Uploaded Python 3

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

Hashes for krl_network_analysis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 04938b76c0203c61c30baccc0a05bd31d118ce01e70d660273a2f3e39482bd51
MD5 78dd4997e3a65f4cce7a5ea9e93576f9
BLAKE2b-256 98d21c4ef7f2b39e9467dbaa384cba249d4cda6340312ecfd7266114506efba9

See more details on using hashes here.

File details

Details for the file krl_network_analysis-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for krl_network_analysis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77fa1fca39068cf37f9df6fe50e1e558bc62f43e67e0a7c5d01a63b9b9684608
MD5 e62d861c75ce28a14c997e0606595759
BLAKE2b-256 3973773470aeee6ef6b682cb3cd812e0958c2494eec6e7924f5fe0cb4c67a364

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page