Skip to content

About

Zero-dependency WHO malaria vector-control microplanner: ITN/LLIN pop/1.8 campaign & NetCALC attrition curves, IRS insecticide sachet/pump-charge & IRAC resistance rotation guard, and SMC SPAQ quantification.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

vector-plan

CI License: MIT Python 3.11+ Zero Dependencies

Zero-dependency WHO malaria vector-control microplanner: ITN/LLIN pop/1.8 campaign & NetCALC attrition curves, IRS insecticide sachet/pump-charge & IRAC resistance rotation guard, and SMC SPAQ quantification.

  • Mission Domain: Public Health & Malaria Vector Control (WHO)
  • Stack: Pure Python 3.11+ (zero runtime third-party dependencies, mypy --strict, ruff, pytest)
  • Maintainer: Codesphere Innovations (U) Limited (codesphere-u)

Problem Solved

District malaria programs lose protective impact when bed-net attrition drops coverage below 80% before Year 3 or when repeated single-class IRS spraying accelerates pyrethroid and organophosphate mosquito resistance.

Key Features

  • WHO ITN/LLIN universal-coverage mass campaign planner (population / 1.8 + buffer + 50-net bales), Weibull NetCALC 3-year survival & month-below-80% forecast, and ANC/EPI continuous top-up quantification (plan_itn_campaign).
  • WHO PQT-VC Indoor Residual Spraying (IRS) quantifier (plan_irs_campaign) computing porous mud-wall surface area, 10L Hudson pump charges, spray-operator teams, pyrethroid-resistance blocks, and 2-year IRAC Mode-of-Action rotation enforcement.
  • Seasonal Malaria Chemoprevention (SMC) age-banded (3–11m & 12–59m) SPAQ blister-pack quantification (plan_smc_campaign).

Architecture Overview

flowchart LR
  P[District Population & Structures] --> N[plan_itn_campaign<br/>pop/1.8 + NetCALC Attrition]
  P --> I[plan_irs_campaign<br/>Pump Charges + IRAC Rotation Guard]
  P --> S[plan_smc_campaign<br/>Age-Banded SPAQ Blisters]
Loading

See docs/architecture.md for module-level design details.

Installation

git clone https://github.com/codesphere-u/vector-plan.git
cd vector-plan
uv sync --extra dev

Or install in editable mode with standard pip:

pip install -e ".[dev]"

Quick Start (CLI)

vector-plan --population 180000 --structures 38000 --insecticide sumishield_50wg --prior-moa 1B 1B

Quick Start (Python API)

from vector_plan import plan_irs_campaign, plan_itn_campaign

itn = plan_itn_campaign(population=180000)
irs = plan_irs_campaign(target_structures=20000, insecticide_key='sumishield_50wg', prior_years_moa_history=['1B', '1B'])
assert itn.mass_campaign_nets_required == 110000 and not irs.resistance_rotation_warnings

Testing & Quality Gates

uv run ruff check src tests
uv run mypy src
uv run pytest -v

Security, Contributing & Roadmap

License

MIT License — see LICENSE.

Support & Contact

Open an issue on GitHub Issues or contact codesphereinnovationz@gmail.com.

About

Zero-dependency WHO malaria vector-control microplanner: ITN/LLIN pop/1.8 campaign & NetCALC attrition curves, IRS insecticide sachet/pump-charge & IRAC resistance rotation guard, and SMC SPAQ quantification.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages