|
Hi Tip-Sheeters, This week brings one of the most exciting times of the year for me: the National Football League kicks off its regular season. I'm a fan of the Kansas City Chiefs, and they'll be playing their opener in São Paolo, Brazil (in Arena Corinthians if there are any serious soccer fans out there). This also means Fantasy Football Season begins!! I'm a huge fantasy football fanatic, and I'll be managing five teams this year. What is fantasy football, you ask? Here is a succinct definition from the FantasyPros Fantasy Football 101: In fantasy football, you select and manage a team of real NFL players. The players on your team earn points for your team based on their real-life performance in games each week. These points are then totaled and compared to your opponent’s team each week to determine the winner.
-- FantasyPros.com
Fantasy Football, APIs, and AI: A perfect teamSince I enjoy this hobby so much, it was only natural to use it for the examples in my book that came out in April: Hands-on APIs for AI and Data Science. The book's been a success, hitting Amazon #1 New Release when it launched. I've had fun this year speaking and sharing tips from the book. So how exactly does the book use fantasy football to teach about APIs and AI? Glad you asked. Every Imaginary Business needs a WebsitePart 1 of my book walks readers through the API Product Management Lifecycle: understanding user needs and designing and building a FastAPI REST API to serve them. The business scenario is built on an imaginary website named SportsWorldCentral: Based on this business scenario, readers design and build the SportsWorldCentral API. This contains API endpoints providing data about players, teams, and scoring: You'll also learn to deploy the API using Docker, Render, and Amazon Web Services. Building Data Analytics for FootballWith a running API, you're ready to start using it for data science. One of the first projects is building a data app using Streamlit. You'll build a multi-page app with charts and data filters, sourced from the API you built. (Or based on one you can launch with the code repo if you're in a hurry.) Here's the team stats page you'll create: Developing Your Own Custom MetricsPossibly the most fun I had in writing the book was developing a metric that had been bouncing around my head for many years: The Shark League Score. This Metric used a variety of data features to answer the question: Is my fantasy league as tough as I think? The chapter uses sub-metrics like the League Balance Score and League Juice Score to make the final product: The Big Finish: Using Your API with Generative AIPart Three of the book gives readers the skills to develop custom AI agents that consume APIs. You'll use products like ChatGPT, LangChain, and Anthropic APIs to chat with your data. Here is a look at the Custom GPT you will develop: If you really want to get technical, you'll learn to build an AI Agent using LangChain. Here's the architecture you'll implement:
Are You Ready for Football, AI, and APIs?If you haven't checked checked out the book yet, I'd be flattered if you took a look at it! Here are two easy options:
Hope your fantasy football season is a good one! Keep coding, Ryan Day 👉 https://tips.handsonapibook.com/ -- no spam, just a short email every week. |
This is my weekly newsletter where I share some useful tips that I've learned while researching and writing the book Hands-on APIs for AI and Data Science, a #1 New Release from O'Reilly Publishing
Hi Tip-Sheeters, This week I'm sharing highlights of virtual chat I had with Ricardo Heredia Joya, a Madrid data scientist with a background as a medical doctor. He is active in the Football analytics community, and shares his thoughts and tips in the Underdoc substack. (If you're enjoying the Tip Sheet I'm sure you'll get a lot from Ricardo's newsletter.) You are your best asset, so never stop learning. - Ricardo Heredia Joya Q1: Thanks for having a virtual chat with the Tip Sheet...
Hi Tip-Sheeters, I've been looking forward to this week's newsletter for a while -- The One Where I Deploy to FastAPI Cloud (fans of TV's Friends may appreciate the title). Since I began using FastAPI, some of the best improvements I have seen have been in the "fastapi" command line interface program. CLIs have become pretty important in their own right lately so if you're interested in the code for the FastAPI CLI you can see it here: https://github.com/fastapilabs. The CLI is built with...
Hi Tip-Sheeters, Model Context Protocol is a fast-growing standard for providing data and other context to LLM apps. This is an area that Python is really leading the way, namely FastMCP. According to the FastMCP PyPi page, 70% of all MCP servers (in any programming language) are written with some version of FastMCP. Yesterday [Feb. 18, 2026], the FastMCP team released FastMCP 3.0 into production with quite a few new features. I had a chance to chat with Jeremiah Lowin, the creator of FastMCP...