APG
APG is a library of 259 independently-deployable business capabilities — each a complete, production-ready Python package implementing a specific business function, from M-Pesa payment processing to 7-country PAYE payroll computation, composable into any application.
Key Features
259 production-ready packages covering Africa-first payments, multi-country payroll, and regulatory compliance — import what you need, nothing more.
Africa-First Financial APIs
M-Pesa Daraja 2.0 (STK Push, B2C, C2B, Express), MTN MoMo (Collections, Disbursements), Airtel Money, Orange Money, Equity Bank, KCB Bank — complete, maintained, production-tested wrappers with retry logic, idempotency, and reconciliation hooks.
7-Country Payroll
Statutory payroll computation for Kenya (PAYE, NHIF, NSSF, AHL, SHIF), Uganda (PAYE, NSSF), Tanzania (PAYE, NSSF, SDL, WHT), Rwanda (PAYE, RSSB), Nigeria (PAYE, Pension), Ghana (PAYE, Tier 1/2/3), and South Africa (PAYE, UIF, SDL).
Regulatory Compliance
CBK (Central Bank of Kenya) AML/CFT reporting templates. CMA Kenya disclosure formats. NTSA vehicle levy computation. KRA VAT and WHT calculation. eCitizen payment integration. Packages update with each regulatory change.
Composable Architecture
Each package is a standalone Python module with a clean interface contract. Compose packages by importing — no framework lock-in. Works with Django, Flask, FastAPI, or raw Python. Packages publish typed events for loose coupling.
28 Business Domains
Accounting & Finance, Banking, Insurance, Telecoms, Healthcare (KEMR), Logistics, Manufacturing, Retail, Education, Real Estate, Government, NGO, Agriculture, Mining, Energy, and more — each with 5–20 purpose-built capability packages.
Always Current
Packages track regulatory changes — new statutory rates, updated API versions, new authentication flows. Subscribers get patch releases within 48 hours of official regulatory changes. M-Pesa SDK bumped within 24 hours of Safaricom API updates.
Technical Specifications
Package Stats
- 259 total packages
- 28 business domains
- Python 3.10+
- MIT License
African Payments
- M-Pesa Daraja 2.0 (KE, TZ, GH, EG)
- MTN MoMo (14 countries)
- Airtel Money (5 countries)
- Orange Money (8 countries)
Payroll Countries
- Kenya — PAYE, NHIF, NSSF, AHL, SHIF
- Uganda — PAYE, NSSF
- Tanzania — PAYE, NSSF, SDL, WHT
- Nigeria, Ghana, Rwanda, South Africa
Installation
pip install apg-fintech-mpesapip install apg-payroll-kenyapip install apg-compliance-cbk- Full catalog: pypi.org/search/?q=apg-
Browse the APG package catalog
Contact our team to discuss your requirements. We respond within 24 hours.