Infrastructure Architect · Python · Open Source

Build it once.
Use it everywhere.

Reusable Python infrastructure — more than 20 packages on PyPI and the stories behind them.

Avi Zaguri

About me

Hi, I’m Avi 👋

I’m an Infrastructure Architect. By day I design the automation backbone for engineering teams — CI/CD pipelines, test infrastructure, E2E applications, infrastructure for functional teams, cloud deployments — and lead the move away from one-off scripts, legacy code, and hard-coded, unstable, architecture-less infrastructure — toward systems that are reusable, stable, and built to scale. That work only succeeds when you go beyond the code: I learn the systems in depth, the business logic they serve, and the way they connect across the organization — and that understanding is what shapes the architecture.

Most of my open-source work started as a fix for something that annoyed me more than twice. A logger that needed twenty lines of setup before printing anything useful. Test suites that couldn’t say “skip this test if that one failed.” API clients that made me re-implement pagination and retries in every single project. I packaged those fixes, and today I maintain 20+ Python packages on PyPI — a pytest plugin ecosystem, the “Plus” series of production-grade API clients, Django tooling, and lately AI tools for distributing agent context and powering LLM bots.

This blog is where I write about the problems behind those tools — why the standard solution wasn’t enough, what I built instead, and the patterns I keep reusing. If you’ve ever copied the same boilerplate into your fifth project in a row, you’ll feel at home here.

How a package is born

Five steps

  1. 1It annoys me twiceThe same problem shows up in a second project.
  2. 2I fix it properlyReusable and stable — not another one-off patch.
  3. 3I package itOne install instead of twenty lines of setup.
  4. 4I ship itPublished to PyPI, versioned, open source.
  5. 5I write it upThe problem, the fix, and the patterns behind it.

What I've built

Projects by category

7 categories · 33+ projects in total

  1. Core Python 01

    7 projects

    The building blocks I reuse everywhere — logging, exceptions, commands, databases, email.

    See all Core Python → Read about custom-python-logger →
  2. API clients 02

    5 projects

    The "Plus" series — GitHub, GitLab, Jira, Notion and Vault clients with retries and pagination built in.

    See all API clients → Read about python-github-plus →
  3. Testing 03

    10 projects

    pytest plugins for dependencies, markers, parametrization and HTML reports.

    See all Testing → Read about pytest-reporter-html →
  4. Django 04

    2 projects

    Versioned models and zero-boilerplate DRF CRUD.

    See all Django → Read about django-versioned-models →
  5. Dev tools 05

    1 project

    Reproducible terminal recordings, rendered to GIF and MP4.

    See all Dev tools → Read about cast-studio →
  6. AI tools 06

    3 projects

    Agent context distribution and LLM-powered bots.

    See all AI tools → Read about ai-agents-marketplace →
  7. Templates 07

    5 projects

    Production-ready starters for services, APIs, bots and MCP servers.

    See all Templates → Read about dev-template-repository →

Latest packages

Ready to install

pytest-depends-on Testing

v2.3.1

Explicit test dependencies — automatically skip dependents when prerequisites fail.

uv add pytest-depends-on
django-versioned-models Django

v4.2.0

Drop-in release management for Django — lock, branch, and ship versioned configuration datasets safely.

uv add django-versioned-models
python-databases Core Python

v2.2.0

A unified, extensible interface for interacting with multiple database types through a single API.

uv add python-databases

Latest writing

The stories behind the packages

All 29 posts →

Get in touch

Let's talk.

Copied the same boilerplate into your fifth project? Tell me about it.