Skip to content
All projects
Core engineering libraryEngineer

MANAGER.py — Manager.io Accounting API Client

BCHPR · medical supply chain · 2023 – present

15,894-line Manager.io accounting client with Polars-optimised retrieval, server-side filtering, denormalisation strategies, and full CRUD across Costs / Projects / Transactions / Contacts / Assets — integrating medical supply chain, inventory, procurement, and payments across 7 regions of Cameroon.

Highlights

  • Server-side filtering reducing data transfer by 99.5% (from ~100 MB to ~0.5 MB per run).
  • Polars-first with streaming mode for 100k+ row datasets; 5-10× speedup over pandas.
  • Exponential backoff with jitter, rate limiting (100 ms), chunked updates / deletes (default 100).
  • Denormalisation of nested objects (Project → Budget, Contact → Email) into columnar format.
  • Days of manual inventory reporting replaced with automated incremental timestamp-based sync.