Test Your Pydantic AI SQL Agent with Pydantic EvalsYou've built a Pydantic AI agent that translates business questions into SQL. A user asks for total order value by region, including tax. The agent returns: SELECT region, SUM(subtotal) AS order_totalJul 26, 2026·7 min read
Building a Code-Sharing DApp with FastHTMLIntroduction FastHTML is a new Python framework for developing interactive web applications. It's based on HTMX, and purportedly "scales down to a 6-line python file, and scales up to complex production apps". I'm excited to see if I can use it to bu...Sep 23, 2024·12 min read
Box Storage in Algorand PythonIntroduction Box storage is akin to a key-value database that smart contracts can manipulate on-chain. An application can create any number of boxes, with each box storing up to 32k bytes of data. 💡 Developer docs: Smart Contract Storage Algorand...Aug 4, 2024·14 min read
Bonding Curves for Algorand AssetsIntroduction A bonding curve is a mathematical concept that describes the relationship between the price and supply of an asset. The fundamental idea behind a bonding curve is that when a person acquires an asset available in a limited quantity, eac...Jun 8, 2024·5 min read
Validating Usernames in a Smart ContractIntroduction One of the first challenges in building an application is handling user registration. We often need to allow users to choose their own username, while ensuring that each one is unique. Usernames also usually require validation, with cons...May 18, 2024·5 min read
Python & Smart ContractsIntroduction The inimitable Chris Kim recently tweeted about data types in smart contracts: https://twitter.com/chriskim_devrel/status/1787001209406251480?ref_src=twsrc%5Etfw And it got me thinking about friction points for onboarding new developer...May 7, 2024·7 min read
Proof of Exclusion: A Smart Contract Bloom FilterIntroduction Smart contracts operate in highly constrained environments. We often need to use clever data structures to achieve particular goals within the confines of the virtual machine. A common requirement is to prove membership of something. For...May 6, 2024·12 min read