Python
Building Modern APIs with FastAPI and Python
If you’re starting a new Python backend project today, you’re almost certainly going to use FastAPI. It has rapidly displaced older frameworks to become the industry standard for API development. The reasons are simple: it’s fast, it embraces modern Python type hints, and it does a …
Beyond Graphs: An Introduction to Google's Agent Development Kit (ADK)
If you’ve spent any time building agentic systems lately, you’re likely familiar with LangGraph. It’s a powerful framework that treats agents as nodes in a graph, connected by edges that define the flow of execution and state. It’s robust, explicit, and extremely capable once …
Streaming State and Tokens in LangGraph
If you’ve been following the earlier posts in this series, you’ll have built graphs that gather data, call tools, and produce structured output.
Every one of those examples used .invoke(), which means the caller waits in silence until the entire graph finishes and then receives the final …
Using Async Effectively in LangGraph
In Seven Tips for Performant Async Python I focused on plain asyncio.
That’s the right place to start, because LangGraph doesn’t replace Python’s event loop or make blocking code magically concurrent.
If an async LangGraph node calls a blocking library, the graph still waits.
If …
Vector Databases: What They Are and How To Use Them
In an earlier post we generated embeddings and searched them by computing cosine similarity across a small in-memory list. That approach is perfect for learning and prototyping, but it doesn’t scale. When your corpus grows to hundreds of thousands or millions of documents, iterating over every …
Seven Tips for Performant Async Python
Adding async and await to a Python function feels like an easy win.
You’ve heard it makes code faster, so you sprinkle the keywords in, run your program, and it seems to work.
But async Python has a habit of looking correct while quietly running no better or even worse than the synchronous …
Building a Pipeline in LangGraph
The earlier posts in this series built self-contained graphs: one graph, one task, one run. But real workflows often span multiple stages, where each stage produces output that the next stage needs. The pipeline pattern I describe here isn’t an official LangGraph pattern — it’s an …
Concurrent Nodes in LangGraph
Real-world agents rarely do one thing at a time. They fetch data from multiple sources, run independent checks in parallel, and combine the results before moving on. LangGraph supports this natively with concurrent nodes, but there is a subtle catch when those nodes all write to the same piece of …
Using Tools in LangGraph
LLMs are impressive, but they are limited to the knowledge baked in at training time and can’t take actions in the world on their own. Tools are what change that. By giving an LLM access to tools, you turn it from a system that is frozen in time into an agent that can look up live data, run …
Pydantic Settings: A Safer Config Option for your Python Apps
Environment variables are the default way many Python apps handle configuration. They are simple, portable, and work in every deployment environment. But as soon as you add more than a handful of settings, raw env vars become fragile and hard to reason about.
Pydantic used to solve this with …
Improving Python Code Quality and Consistency Using Ruff
Consistency and quality are the foundations of maintainable Python code. As projects grow and teams expand, maintaining these standards becomes increasingly challenging without the right tools. Ruff is an extremely fast linter and code formatter written in Rust that helps teams improve their code …
Sudoku Series: Nishio Rule
The next rule to implement for the Sudoku solver is Nishio. This will make all outstanding puzzles solvable because it effectively brute forces the removal of an invalid candidate until other rules can take over.
If you like this post and you’d like to know more about how to plan and write …











