#llms-and-pydantic

[ follow ]
#python
Python
fromGrahamdumpleton
3 days ago

Free Python decorator workshops - Graham Dumpleton

Interactive workshops on Python decorators are available for free, covering fundamentals to advanced topics, emphasizing hands-on learning.
Python
fromRealpython
1 week ago

Python Modules and Packages: An Introduction Quiz - Real Python

The quiz tests understanding of Python modules and packages through 10 questions.
Python
fromMouse Vs Python
2 months ago

How to Switch to ty from Mypy - Mouse Vs Python

Python supports type hinting, but type checking requires external tools like mypy, Pyright, and the new ty.
Python
fromGrahamdumpleton
3 days ago

Free Python decorator workshops - Graham Dumpleton

Interactive workshops on Python decorators are available for free, covering fundamentals to advanced topics, emphasizing hands-on learning.
Web frameworks
fromInfoWorld
4 days ago

PEP 816: How Python is getting serious about Wasm

Python will now formally support WebAssembly standards through PEP 816, enhancing its usability in browser applications.
Python
fromMouse Vs Python
1 week ago

The Python Show - Python Illustrated - Mouse Vs Python

Two sisters collaborated on a beginner's book about Python, with one writing and the other illustrating.
Python
fromMouse Vs Python
2 months ago

How to Switch to ty from Mypy - Mouse Vs Python

Python supports type hinting, but type checking requires external tools like mypy, Pyright, and the new ty.
#django
Django
fromPycoders
5 days ago

PyCoder's Weekly | Issue #728

Django projects can be improved with Alpine AJAX and friendly classes for better code quality and maintainability.
fromLoopwerk
2 months ago
Web frameworks

Django 6.0 Tasks: a framework without a worker

Django 6.0 adds a built-in tasks framework but lacks scheduling, retries, persistence, worker processes, and a production-ready backend.
fromPycoders
2 months ago
Python

PyCoder's Weekly | Issue #719

Django 6 adds a general tasks framework enabling migration from Celery to a unified asynchronous task mechanism.
Django
fromPycoders
5 days ago

PyCoder's Weekly | Issue #728

Django projects can be improved with Alpine AJAX and friendly classes for better code quality and maintainability.
Django
fromRealpython
1 week ago

Getting Started With Django: Building a Portfolio App Quiz - Real Python

The quiz tests understanding of core Django concepts essential for building a portfolio app.
Django
fromLoopwerk
1 week ago

Building modern Django apps with Alpine AJAX, revisited

Simplifying the web development stack with an all-Django approach and Alpine AJAX improves efficiency and reduces unnecessary complexity.
Online learning
fromwww.businessinsider.com
4 days ago

Inside the OpenAI project where freelancers train ChatGPT on everything from farming to commercial flying

Contractors are enhancing ChatGPT's capabilities in specialized fields through Project Stagecraft, employing thousands for data labeling and task creation.
Software development
fromInfoWorld
4 days ago

Meta shows structured prompts can make LLMs more reliable for code review

Code review is evolving towards machine-led verification, improving accuracy but introducing tradeoffs like increased latency and workflow overhead.
Python
fromRealpython
5 days ago

Test-Driven Development With pytest Quiz - Real Python

The quiz tests understanding of Test-Driven Development with pytest through 8 questions.
Software development
fromZDNET
4 days ago

How AI has suddenly become much more useful to open-source developers

AI tools are becoming increasingly useful for open-source maintainers, but legal and quality issues remain.
#ollama
Python
fromPycoders
1 week ago

PyCoder's Weekly | Issue #727

Jazzband is winding down due to the overwhelming number of AI submissions affecting its cooperative model.
Python
fromTalkpython
1 week ago

Updates from Talk Python - March 2026

Talk Python has introduced a new dashboard, volume control, and is developing a course on Python web app security and agentic AI.
Django
fromRealpython
3 weeks ago

Introduction to Python SQL Libraries Quiz - Real Python

A 9-question interactive quiz assesses proficiency in Python SQL libraries for database connectivity, query execution, and cross-database scripting with SQLite, MySQL, and PostgreSQL.
fromInfoQ
1 month ago

Platforms for Secure API Connectivity With Architecture as Code

Building APIs is so simple. Caveat, it's not. Actually, working with tools with no security, you've got a consumer and an API service, you can pretty much get that up and running on your laptop in two or three minutes with some modern frameworks. Then, authentication and authorization comes in. You need a way to model this.
Web frameworks
Python
fromDEV Community
2 weeks ago

I Compared 5 Python Text Analysis Libraries - Then Built a REST API Instead

Multiple specialized Python NLP libraries handle different tasks, creating dependency management challenges that led to building a unified REST API solution.
Python
fromInfoWorld
2 weeks ago

OpenAI buys Python tools builder Astral

OpenAI acquires Astral to integrate widely-used Python developer tools into Codex, enabling AI agents to participate in complete software development workflows beyond code generation.
Python
fromRealpython
3 weeks ago

Pydantic AI: Build Type-Safe LLM Agents in Python - Real Python

Pydantic AI is a Python framework for building LLM agents that return validated, structured outputs using Pydantic models with automatic type safety and validation.
Python
fromRealpython
3 weeks ago

Pydantic AI: Build Type-Safe LLM Agents in Python Quiz - Real Python

An interactive quiz assesses knowledge of Pydantic AI, covering type-safe LLM agents, model providers, structured outputs, tool registration, dependency injection, and production trade-offs.
#fastapi
fromPybites
1 month ago
Web frameworks

How Dependency Injection Makes Your FastAPI Code Better Testable - Pybites

fromPybites
1 month ago
Web frameworks

How Dependency Injection Makes Your FastAPI Code Better Testable - Pybites

Python
fromRealpython
3 weeks ago

Working With APIs in Python: Reading Public Data - Real Python

Python with the Requests library enables efficient consumption of REST, SOAP, and GraphQL APIs through HTTP communication, supporting various authentication methods like API keys and OAuth.
Artificial intelligence
fromInfoWorld
1 month ago

First look: Run LLMs locally with LM Studio

LM Studio provides integrated model discovery, in-app download and management, memory-aware filtering, and configurable inference settings for CPU threads and GPU layer offload.
Python
fromRealpython
3 weeks ago

Python Gains frozendict and Other Python News for March 2026 - Real Python

Python 3.15 will include frozendict as a built-in immutable, hashable dictionary type, with PEP 814 accepted by the Steering Council in February.
fromMedium
1 month ago

Fire-and-Forget REST APIs: A TDD Journey.

The request for its API val request = Request[IO](Method.POST, uri"/jobs")val api = new AsyncJobApi // this will not compile since AsyncJobApi is not defined yet Minimal implementation to make it green: class AsyncJobApi Red test: The API should return a 202 Accepted response: "POST /jobs returns Accepted" in { val request = Request[IO](Method.POST, uri"/jobs") val api = new AsyncJobApi api.routes.orNotFound.run(request).asserting : response => response.status shouldBe Status.Accepted} Make it green: class AsyncJobApi { val routes: HttpRoutes[IO] = HttpRoutes.of[IO] : case req @ POST -> Root / "jobs" => Accepted()} 5.2 Add headers (Trivial Implementation) Red test: add X-Total-Count and Location headers with job ID (only the assertion is shown)
Scala
fromwww.sitepoint.com
2 months ago

Software Development

1. What Are the Key Features Every Modern Business Website Should Have Today? Perfect for UX, performance, and custom web development discussion.
Web design
Artificial intelligence
fromInfoQ
1 month ago

Building LLMs in Resource-Constrained Environments: A Hands-On Perspective

Prioritize small, resource-efficient models and iterative, human-in-the-loop data creation to build practical, improvable AI under infrastructure and data constraints.
fromThepythoncodingstack
1 month ago

The Journey From LBYL to EAFP * [Club]

LBYL came more naturally to me in my early years of programming. It seemed to have fewer obstacles in those early stages, fewer tricky concepts. And in my 10+ years of teaching Python, I also preferred teaching LBYL to beginners and delaying EAFP until later. But over the years, as I came to understand Python's psyche better, I gradually shifted my programming style-and then, my teaching style, too.
Software development
Web development
fromTalkpython
2 months ago

PyView: Real-time Python Web Apps

PyView brings Phoenix LiveView-style real-time, server-driven UI updates to Python using async WebSockets and server-side rendering to simplify modern web stacks.
Python
fromRealpython
4 weeks ago

Python Stacks, Queues, and Priority Queues in Practice Quiz - Real Python

An 11-question quiz tests understanding of Python stacks, queues, priority queues, and their real-world applications in traversal and system architecture.
Python
fromRealpython
1 month ago

How to Use the OpenRouter API to Access Multiple AI Models via Python - Real Python

OpenRouter provides a unified API to access thousands of AI models from multiple providers through a single Python interface, eliminating the need to manage separate APIs and authentication schemes.
Artificial intelligence
fromTheregister
2 months ago

Python libraries in AI/ML models can be poisoned w metadata

Hydra instantiate() vulnerabilities let attackers embed malicious metadata in popular AI libraries so code executes automatically when poisoned files are loaded.
Python
fromRealpython
1 month ago

Duck Typing in Python: Writing Flexible and Decoupled Code Quiz - Real Python

An interactive quiz assesses understanding of duck typing in Python, covering its definition, advantages, disadvantages, behavior-based interfaces, protocols, special methods, and alternative approaches.
fromPycoders
2 months ago

PyCoder's Weekly | Issue #720

subprocess module relies on busy-loop polling to determine whether a process has completed yet. Modern operating systems have callback mechanisms to do this, and Python 3.15 will now take advantage of these.
Web frameworks
Django
fromPycoders
2 months ago

PyCoder's Weekly | Issue #718

pandas 3.0 adds pd.col expressions, Copy-on-Write semantics, and PyArrow-backed strings for significantly faster, more predictable dataframe and string operations.
fromInfoQ
1 month ago

Building Embedding Models for Large-Scale Real-World Applications

What happens under the hood? How is the search engine able to take that simple query, look for images in the billions, trillions of images that are available online? How is it able to find this one or similar photos from all that? Usually, there is an embedding model that is doing this work behind the hood.
Artificial intelligence
fromthenewstack.io
2 months ago

Why Most APIs Fail in AI Systems and How To Fix It

Over the past few years, I've reviewed thousands of APIs across startups, enterprises and global platforms. Almost all shipped OpenAPI documents. On paper, they should be well-defined and interoperable. In practice, most fail when consumed predictably by AI systems. They were designed for human readers, not machines that need to reason, plan and safely execute actions. When APIs are ambiguous, inconsistent or structurally unreliable, AI systems struggle or fail outright.
Software development
fromChris Warrick
1 month ago

Deploying Python Web Applications with Docker

The main promise is isolation: a Docker container that works on an x86_64 Linux machine will work on any x86_64 Linux machine in the same way. Want to quickly set up PostgreSQL for testing? Just run docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d --restart=unless-stopped postgres and wait a few seconds. Docker is great for deployment as well as production deployments, and it even supports Windows Server containers these days.
Software development
fromLoopwerk
2 months ago

Django's test runner is underrated

Readable failures. When something breaks, I want to understand why in seconds, not minutes. Predictable setup. I want to know exactly what state my tests are running against. Minimal magic. The less indirection between my test code and what's actually happening, the better. Easy onboarding. New team members should be able to write tests on day one without learning a new paradigm.
Web frameworks
Software development
fromThegreenplace
1 month ago

Rewriting pycparser with the help of an LLM

pycparser replaced its PLY-based parser with a hand-written recursive-descent parser using LLM-assisted development, removing the PLY dependency and improving maintainability.
Software development
fromInfoWorld
2 months ago

AI use may speed code generation, but developers' skills suffer

Using AI coding assistants can enable task performance but inhibit developers' acquisition of underlying skills needed to validate and debug code.
Python
fromThe JetBrains Blog
1 month ago

LangChain Python Tutorial: 2026's Complete Guide | The PyCharm Blog

LangChain provides a high-level framework for building LLM-powered agents that combine models and tools, supporting multiple providers and static or dynamic agent models.
Python
fromPycoders
2 months ago

PyCoder's Weekly | Issue #717

Test and monitor code performance scaling, optimize Docker builds with BuildKit cache mounts, use AI coding tools like Cursor, and apply recursive structural pattern matching.
Python
fromRealpython
2 months ago

How to Integrate ChatGPT's API With Python Projects - Real Python

Obtain an OpenAI API key, store it securely using environment variables or key management, and install the OpenAI Python library before making ChatGPT API calls.
fromPythonbytes
2 months ago

A bolt of Django

About the show Sponsored by us! Support our work through: Connect with the hosts Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 11am PT. Older video versions available there too. Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Python
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #721

Text classification and compression converge via incremental compressors; Python 3.14's zstd support enables experimenting with ML through compression.
Python
fromPybites
1 month ago

We're Launching 60 Rust Exercises Designed For Python Devs - Pybites

Rust is not inherently harder than Python; with Python-to-Rust concept bridges and focused exercises, Python developers can learn Rust faster.
fromPybites
1 month ago

Building Useful AI With Asif Pinjari - Pybites

Asif on the other hand, is doing something else: He's doing things the Pybites way! He's building with a focus on providing value. We spent a lot of time discussing a problem I'm seeing quite often now: developers who limit themselves with AI. That is, they learn how to make an API call to OpenAI and call it a day. But as Asif pointed out during the show, that's not engineering. That's just wrapping a product.
Python
Python
fromInfoQ
2 months ago

Facebook Survey Reveals Growing Adoption of Typed Python for Improved Code Quality and Flexibility

Python developers widely adopt type hints, citing readability, tooling, and bug detection, despite challenges with libraries, complexity, and tool fragmentation.
fromMouse Vs Python
2 months ago

How to Switch to ty from Mypy - Mouse Vs Python

The newest type checker on the block is Astral's ty, the maker of Ruff. Ty is another super-fast Python utility written in Rust. To install ty with uv, run the following: uv tool install ty@latest If you do not want to use uv, you can use the standalone installer. Instructions vary depending on your platform, so it is best to refer to the documentation for the latest information. Note: Technically, you can use pip or pipx to install ty as well.
Python
Python
fromRealpython
2 months ago

Intro to Object-Oriented Programming (OOP) in Python - Real Python

Object-oriented programming fundamentals in Python: defining classes, instantiating objects, and basic inheritance to write maintainable, less redundant code.
fromThe JetBrains Blog
1 month ago

Python Unplugged on PyTV - A Free Online Python Conference for Everyone | The PyCharm Blog

Join us on March 4th 2026, for an unforgettable, non-stop event, streamed from our studio in Amsterdam. We'll be joined live by 15 well-known and beloved speakers from Python communities around the globe, including Carol Willing, Deb Nicholson, Sheena O'Connell, Paul Everitt, Marlene Mhangami, and Carlton Gibson. They'll be speaking about topics such as core Python, AI, community, web development and data science.
Python
Python
fromRealpython
1 month ago

Improving Your Tests With the Python Mock Object Library - Real Python

unittest.mock enables creation, inspection, configuration, and substitution of mock objects to simplify testing of complex logic and unpredictable dependencies.
[ Load more ]