🧱
🧱 Building with the Larz Stack · STK-101 · Session 5 of 8

Web, AI & Dev Tooling — the Everyday Kit

The libraries you reach for constantly — talking to the web, building AI agents, making CLIs, logging safely, running jobs — all without the usual pile of dependencies.

⏱ 9 min read📅 Updated 2026-07-26📊 Tables, charts & examples

Beyond money, data and security is the everyday kit — the libraries you touch in almost every project. The Larz Stack covers the web client you'd normally install requests for, an AI-agent framework, CLI building, structured logging, background jobs, and a long tail of utilities — each replacing a common third-party package with zero-dependency Python.

The everyday kit

A sampling of the most-reached-for tooling libraries.

LibraryReplaces / does
larzhttpA requests-style HTTP client (sessions, retries, JSON) over urllib
larzagentBuild tool-calling AI agents against any OpenAI-compatible API
larzcliTurn a function into a CLI; layered CLI > env > default config
larzlogStructured logging with automatic secret/PII redaction on by default
larztask / larzcron / larzretry / larzlimitBackground jobs, scheduling, retries, rate limiting

Each one stands in for a package you'd normally add — but with nothing pulled in behind it, and often a unique twist (larzlog redacts secrets by default; larzcli layers config).

An AI agent in a few lines

larzagent gives you the tool-calling loop — define tools as functions, and the model can call them — against any OpenAI-compatible endpoint, with a pluggable transport so you can test offline.

from larzagent import Agent, tool

@tool
def get_weather(city: str) -> str:
    """Look up the weather for a city."""
    return lookup(city)

agent = Agent(base_url="https://gateway.larzpay.com/v1", tools=[get_weather])
agent.run("What's the weather in Lagos?")   # model calls get_weather itself
🎯
The whole tail counts too. Beyond these, the stack has 40+ more small utilities — larzslug, larzuuid, larzvalidate, larztime, larzsearch, larzchart, larzfaker, larzflags and on — each replacing a familiar dependency. You rarely need to leave the stack for common jobs.

Why replace the usual packages?

These aren't different for difference's sake — each earns its place.

Instead ofUseWhy it's worth it
requestslarzhttpSame ergonomics, zero dependencies
a logging + secret-scrubberlarzlogPII/secret redaction on by default
click / argparse boilerplatelarzcliFunction → CLI, with config layering
celery + a brokerlarztaskDurable jobs with no server to run

The pattern repeats across the stack: keep the ergonomics developers expect, drop the dependencies and infrastructure they don't want.

🎯 Key takeaways

  • The everyday kit covers web (larzhttp), AI agents (larzagent), CLIs (larzcli), logging (larzlog) and jobs (larztask).
  • Each replaces a common third-party package — with zero dependencies and often a unique advantage.
  • larzagent builds tool-calling AI agents against any OpenAI-compatible API, testable offline.
  • A long tail of 40+ more utilities means you rarely need to leave the stack for everyday jobs.

Frequently asked

Can larzhttp really replace requests?

For the everyday jobs — GET/POST with params, JSON, headers, auth, timeouts, retries and a session with a base URL — yes, with the same ergonomics, built on the standard library's urllib. requests is excellent and battle-tested; larzhttp's pitch is identical convenience with nothing pulled in behind it, which matters when you're keeping a project dependency-free.

Is larzagent a full agent framework?

It's a focused one: an LLM client over urllib, a @tool decorator that builds the function-call schema from your type hints and docstring, and an agent loop that handles tool calls, bad arguments and errors defensively with a step limit. It deliberately stays small and dependency-free — and it works against any OpenAI-compatible endpoint, including the Larz AI Gateway, with a pluggable transport for offline testing.

Session 5 of 8 complete

Next up: Putting It Together with the Larz Framework

Continue to Session 6 →

Related lessons

More in this course

Course home → · Browse all courses →