Nuno Bispo (aka Developer Service) (@DevAsService)

Nuno Bispo (aka Developer Service) @DevAsService 2026-05-11T07:05:55.000Z

I'm Nuno Bispo, a Senior Software Engineer and Solutions Architect with 15+ years building Python systems, AI integrations, and production backends. I write for Real Python and Unstract. I build and ship hardware. I've seen what breaks in production and what doesn't. I take on a small number of advisory engagements with teams that are serious about getting their Python and AI stack right.

4 0 437 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-27T07:43:17.000Z

โณ Last day tomorrow. Every Python app has the same weak spot: data that arrives messy. An API sends a string where you expected a number. A config value is missing. An LLM returns JSON that is almost right. The fix is a checkpoint at the edge, so everything behind it can trust what it gets. That's what Practical Pydantic is about, with real examples. The PyCon Ireland 2026 coupon ends this Saturday, November 28: ๐Ÿ‘‰ $16.24 with code 2026pyconie ๐Ÿ”— https://leanpub.com/practical-pydantic/c/2026pyconie After that, the price goes back up. You don't need to be at the conference to use it. #PyConIE2026 #Python #Pydantic #Leanpub #PythonDev

0 0 27 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-27T07:39:48.000Z

Most AI features I see are shipped, but not finished. The demo works, the stakeholders are happy, and the team moves on to the next project. Nobody decides to leave the gaps, because the next deadline simply arrives first. The difference between the two states is rarely about talent. Finished means failures are visible, secrets are handled properly, outputs are validated, the reasoning is written down, and someone owns the system after launch. None of that shows up in a demo, which is why it so often gets skipped. Working and safe are not the same thing. The teams that learn that early spend an afternoon on it. The teams that learn it late spend a quarter. Which side of that line is your AI feature on? #SoftwareEngineering #AI #TechLeadership #CTO #Python

0 0 17 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-26T07:38:01.000Z

"We have logs" is the most common answer I hear when I ask a team how they monitor their AI agent. And it's usually true. Every request is recorded somewhere. The trouble is that nobody can answer simple questions from those logs without an afternoon of digging. Is the average cost per request going up? Did the share of low-confidence answers change after Tuesday's deploy? Which tool call is responsible for the slowest 5% of runs? Logs hold the raw material for those answers, but observability is the work of structuring that data so the questions take seconds, not hours. For agents, that means treating each run as a trace with typed inputs, typed outputs, token counts, latency, and cost attached. Once that's in place, drift stops being a vague feeling and becomes a chart you can point at. That's one of the practical threads in Production AI Agents with PydanticAI, alongside typed contracts, evals in CI, and safe rollouts. Free sample chapters: https://leanpub.com/production-ai-agents-with-pydantic-ai #PydanticAI #LLMOps #AIEngineering #PythonEngineering

2 0 37 3 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-26T07:35:46.000Z

โณ 2 days left. The PyCon Ireland 2026 coupon for Practical Pydantic ends this Saturday, November 28. If you've been meaning to learn how to stop bad data at the edges of your Python apps (API inputs, settings, LLM output), this is the cheapest it will be. ๐Ÿ‘‰ $16.24 with code 2026pyconie ๐Ÿ”— https://leanpub.com/practical-pydantic/c/2026pyconie2 After Saturday, the price goes back up. You don't need to be at the conference to use it. #PyConIE2026 #Python #Pydantic #Leanpub

0 0 27 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-25T07:52:43.000Z

A habit that pays off in Python AI integrations is making every LLM call idempotent where you can. Retries, queue redeliveries, and impatient users clicking twice all mean the same request can reach your code more than once. If each call creates a record, sends an email, or charges a card, the duplicates stop being a nuisance and become real incidents. The fix is to attach a stable request ID to each operation and check it before doing anything with side effects. Store the ID alongside the result, return the stored result if the same ID arrives again, and keep the model call itself separate from the action it triggers. That way a retry can safely repeat the expensive, harmless part without repeating the part that matters. It's a small piece of design that makes retry logic, background workers, and failure recovery much safer to build on top of. #Python #AI #FastAPI #LLM #SoftwareEngineering

0 0 23 1 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-25T07:50:01.000Z

Is Practical Pydantic for you? Quick check. โœ… You write Python APIs and keep finding bad input deep inside your code โœ… Your app breaks in production because a config value was missing or wrong โœ… You're using LLMs and need their output to be reliable data, not "almost right" JSON โœ… You've used Pydantic a little and want to understand it properly If you ticked even one, the book is for you. It's hands-on, with real examples instead of toy ones. The PyCon Ireland 2026 coupon ends this Saturday: ๐Ÿ‘‰ $16.24 with code 2026pyconie ๐Ÿ“… Until November 28, 2026 ๐Ÿ”— https://leanpub.com/practical-pydantic/c/2026pyconie After that, the price goes back up. You don't need to be at the conference to use it. #PyConIE2026 #Python #Pydantic #Leanpub #PythonDev

0 0 24 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-25T07:48:07.000Z

Most Python bugs I see in production aren't bugs. They're habits. Logs full of print() and no context. os.getenv() scattered across forty files. Tests that fail "sometimes," so everyone learns to ignore them. Reviews spent arguing about commas. None of this is hard to fix. It's just never urgent until it is. So I wrote five short Python Field Guides: about five pages each, one problem, one fix, ready to apply the same afternoon. Guide No. 01 is free: dependency drift, uv, and a lockfile CI won't let you skip. The other four cover quality gates, logging, typed config, and flaky tests. Pick the one that hurts most ๐Ÿ‘‰ https://python-field-guides.developer-service.blog/ #Python #SoftwareEngineering #BackendDevelopment #CleanCode #DevOps #Testing #PythonTips #uv

1 0 22 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-24T07:52:12.000Z

LLMs are great at producing text. They're less great at producing text that your application can safely use. A model returns JSON that is almost right. A field is missing. A number comes back as a string. A date is in a format you've never seen. Without a checkpoint, that data walks straight into your system. The fix is the same one that has worked in Python for years: define what valid data looks like, and reject everything else at the door. Pydantic makes that simple, and it's the foundation of Practical Pydantic, my hands-on guide to validating data, managing settings, and modeling your domain with real examples. If you're heading to PyCon Ireland 2026, I made a coupon for you: ๐Ÿ‘‰ $16.24 with code 2026pyconie ๐Ÿ“… November 17 to 28, 2026 only ๐Ÿ”— https://leanpub.com/practical-pydantic/c/2026pyconie After November 28, the price goes back up. Not attending? The coupon works for you too. #PyConIE2026 #Python #Pydantic #LLM #Leanpub

0 0 27 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-24T07:50:31.000Z

The vendor switch that should take a month takes two quarters because your data is shaped like their API. Most lock-in gets built into the code long before it shows up in a contract. Your services read the vendor's response format directly, so their field names, enum values, and date formats end up in your billing logic, your reports, and your database. Nobody decided that. It piled up one integration at a time. Then the renewal quote arrives, or the vendor gets acquired, or a competitor offers half the price. The migration estimate comes back at six months, and most of that is separating vendor-specific assumptions from your own business rules. A layer you own fixes this. Each vendor's response is validated and translated into your own models at the edge, and the rest of the system only ever sees those. Switching vendors then means writing one new translation for one boundary. It also strengthens your hand at renewal, because your switching cost becomes a number you can state. Practical Pydantic shows how to build that layer in Python systems. The PyCon Ireland price of $16.24 ends November 28: ๐Ÿ‘‰ https://leanpub.com/practical-pydantic/c/2026pyconie #EngineeringLeadership #TechStrategy #SoftwareArchitecture #VendorManagement #Python

0 0 18 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-23T07:54:51.000Z

A question that rarely gets asked before an AI feature launches is what it would take to turn it off. Not retire it, just switch it off quickly, for one customer or for everyone, without a deployment and without a meeting. If the model starts producing something embarrassing or a vendor reports a security issue, the team that can disable the feature in minutes is in a very different position from the team that needs a release. That capability is cheap to build early and awkward to retrofit. A feature flag, a documented owner who can use it, and a sensible fallback behaviour, such as hiding the feature or returning a plain non-AI answer, are usually enough. The real work is agreeing in advance who is allowed to pull the lever and what counts as a reason to do it, so nobody is debating authority during an incident. If your team couldn't switch off your AI feature in the next ten minutes, that's worth fixing before you need it. #AI #CTO #TechLeadership #SoftwareEngineering #Python

1 0 39 3 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-23T08:21:01.000Z

The most common way a Model Context Protocol (MCP) server gets built: someone opens the OpenAPI spec, writes one tool per endpoint, and ships it. get_task, list_tasks, create_task, update_task, delete_task, then the same for projects, sections, labels, comments, and so on down the list. It works, in the sense that the agent can technically do anything the API can do. Itโ€™s also usually the wrong design, because an API is built for programs and an MCP server is used by a language model. Programs are fine with hundreds of narrow endpoints, opaque IDs, and dozens of calls in a row. Models do badly with all three. Iโ€™ll use Todoist as a case study. Iโ€™ll compare a 1:1 endpoint wrapper with a tool built around what people actually ask for (โ€œplan my dayโ€), and walk through how the agent behaves with each. Nothing here is specific to Todoist. Swap in Jira, Gmail, HubSpot or your own internal API and the principles are the same. https://developer-service.blog/why-most-mcp-servers-are-bad-api-wrappers-and-how-to-design-tools-around-workflows/ #MCP #AI #Python #FastMCP

3 1 149 5 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-23T07:59:56.000Z

PyCon Ireland 2026 is almost here. ๐Ÿ‡ฎ๐Ÿ‡ช Conference weeks are great for learning, but most of what you pick up fades by the following Monday unless you have something practical to build on. If one of your takeaways is "I should finally handle my data properly," Practical Pydantic is made for that moment. It walks you through validating inputs, managing settings, and modeling your domain, using real examples you can adapt to your own projects. I set up a coupon for the conference crowd: ๐Ÿ‘‰ $16.24 with code 2026pyconie ๐Ÿ“… Valid November 17 to 28, 2026 ๐Ÿ”— https://leanpub.com/practical-pydantic/c/2026pyconie It's only on for a limited time, so if it's been on your reading list, now is the cheapest it will be. Not going to the conference? The coupon works for you too. #PyConIE2026 #Python #Pydantic #Leanpub #PythonDev

0 0 19 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-23T07:57:30.000Z

A few years ago I lost days debugging a Python project, only to find the cause was a scope misunderstanding. Scope bugs are sneaky. The logic looks right, the variable seems to exist, and it still fails or quietly uses the wrong value. So I put together a concise, free PDF guide covering: โ€ข The LEGB rule (Local, Enclosing, Global, Built-in) โ€ข Local and global variables โ€ข Practical examples you can reuse It takes minutes to read and should save you hours of debugging. Get it here: https://python-variable-scope.developer-service.blog/ #Python #Programming #SoftwareDevelopment

0 0 14 0 0
Nuno Bispo (aka Developer Service) @DevAsService 2026-11-20T07:58:10.000Z

Your CI shouldnโ€™t spend minutes on pip install. Iโ€™ve been using Astralโ€™s uv in CI pipelines for a while, and I put everything Iโ€™ve learned into a practical PDF booklet: uv for CI: fast, reproducible Python pipelines Inside: โ†’ Lockfiles that act as the source of truth (uv sync --locked) โ†’ GitHub Actions with setup-uv and cache persistence โ†’ GitLab CI, CircleCI, Azure Pipelines and Jenkins patterns โ†’ Caching deep dive: keys, UV_LINK_MODE, safe sharing โ†’ Trusted publishing from GitHub Actions โ†’ Supply-chain hygiene: pin uv, SHA-pin actions, exclude-newer โ†’ Migrating from pip, pip-tools and Poetry Written for teams tired of slow installs, drifting dependencies, and โ€œpasses locally, fails in CIโ€. Covers uv 0.13.x and setup-uv v10.x (November 2026 edition). $19, instant PDF download. ๐Ÿ‘‰ https://uv-for-ci.developer-service.blog/ #Python #uv #CICD #GitHubActions #DevOps

1 0 17 1 0