Python

[ follow ]
#europython
Python
fromThe JetBrains Blog
1 day ago

PyCharm 2025.3 - Unified IDE, Jupyter notebooks in remote development, uv as default, and more | The PyCharm Blog

PyCharm 2025.3 unifies Community users into a single free IDE and adds remote Jupyter support, uv default, proactive DataFrame fixes with AI, and Claude Agent.
Python
fromPyImageSearch
1 day ago

Grounding DINO: Open Vocabulary Object Detection on Videos - PyImageSearch

Open-set object detection enables spotting and localizing arbitrary, potentially unseen objects by grounding text prompts with aligned vision-language models like Grounding DINO.
Python
fromRealpython
1 day ago

Lazy Imports Land in Python and Other Python News for December 2025 - Real Python

Python 3.15 advances with alpha releases, UTF-8 default, new profiling and C APIs; PEP 810 accepted for explicit lazy imports; Windows installer manager updated.
fromShed-skin
4 days ago

Shed Skin restricted-Python-to-C++ compiler v0.9.11

Most importantly, it adds support for Python 3.14. It also adds support for many 3.x features that were not yet implemented, in addition to basic support for the base64 module. It also optimizes a few more common code patterns. Paul Boddie was able to add support for libpcre2, and in the process updated conan to version 2. Thanks to Shakeeb and now Paul, Shed Skin has had first-class Windows support for the last few releases.
Python
#beginner-programming
Python
fromCaktusgroup
6 days ago

LLM Basics: Ollama Function Calling | Caktus Group

Use Ollama's local Llama 3.2 model to perform function calling by providing function schemas or Python functions and executing returned tool calls.
Python
fromRaymondcamden
5 days ago

Make Your Own Spotify Unwrapped

Spotify allows users to request and download a ZIP of their listening history as JSON files, enabling custom reports without using Spotify APIs.
Python
fromRealpython
6 days ago

How to Use Google's Gemini CLI for AI Code Assistance Quiz - Real Python

Test practical knowledge of using Google's Gemini CLI for AI code assistance, including installation, authentication, permissions, interactive sessions, and secure shell command approval.
Python
fromTalkpython
5 days ago

Computer Science from Scratch

Rebuild computer science education to serve self-taught and nontraditional programmers by teaching core CS concepts through practical, career-relevant curricula.
Python
fromPycoders
6 days ago

PyCoder's Weekly | Issue #711

Python offers utilities for pairwise iteration and mocking, supports multi-agent orchestration with Temporal, and integrates with Claude Code and a new SQL Server Python driver.
#cpython
fromPython Software Foundation Blog
1 week ago
Python

Sovereign Tech Agency and PSF Security Partnership

Investment improves CPython and PyPI security and reliability via archive-module fuzz-testing and OAuth/OIDC-based verified account recovery, enhancing supply chain resilience and user experience.
fromTheregister
2 weeks ago
Python

Rust edges toward CPython and older platforms won't like it

CPython maintainers propose integrating Rust gradually, starting with optional extensions and eventually requiring Rust across the CPython codebase.
Python
fromPythonmorsels
1 week ago

Wrapping text output in Python

Use Python's textwrap module to automatically wrap text to a specified width and render wrapped lines with wrap() or fill().
Python
fromPyImageSearch
1 week ago

KV Cache Optimization via Tensor Product Attention - PyImageSearch

Tensor Product Attention factorizes Q, K, V via tensor decompositions to create low-rank contextual components, dramatically reducing KV cache and preserving RoPE positional awareness.
#django
#open-source
fromMouse Vs Python
1 week ago

ANN: Vibe Coding Video Games with Python - Mouse Vs Python

Welcome to Vibe Coding Video Games with Python. In this book, you will learn how to use artificial intelligence to create mini-games. You will attempt to recreate the look and feel of various classic video games. The intention is not to violate copyright or anything of the sort, but instead to learn the limitations and the power of AI. Instead, you will simply be learning about whether or not you can use AI to help you know how to create video games.
Python
Python
fromTalkpython
1 week ago

Python apps with LLM building blocks

Treat LLMs as standard APIs in Python apps: create focused endpoints, use wrappers for caching/validation, monitor responses, and constrain outputs with types.
fromThepythoncodingstack
1 week ago

My Life * The Autobiography of a Python Object

And that's it. I exist. I have no recollection of anything before this instant. But I'm very aware of what I am now. I'm an object. This is the line of code that brought me into existence: My first recollection from a few moments ago was of being inside Team.__new__(). And I felt an affinity with my clan right away. I was a Team instance-an object of type Team.
Python
Python
fromInfoWorld
1 week ago

Python vs. Kotlin: Which loops do you like better?

Comparisons of Python and Kotlin reveal syntax and behavior differences; preview of Python 3.15 sampling profiler, AWS Zed AI editor, and AI/ML alternatives outside Python.
Python
fromdeath and gravity
1 week ago

reader 3.20 released - we're so back

reader 3.20 adds an htmx+Bootstrap web UI, modernized project infrastructure, and a substantially rewritten entry deduplication plugin with improved heuristics and tests.
Python
fromRealpython
1 week ago

How to Convert Bytes to Strings in Python - Real Python

Use Python's bytes.decode() with the correct character encoding to convert raw byte data from files, networks, or APIs into readable strings.
Python
fromPythonbytes
2 weeks ago

Inverted dependency trees

PEP 814 adds a built-in frozendict immutable mapping to Python to prevent unintended modifications and support reliable immutable dictionaries.
Python
fromPython Software Foundation Blog
1 week ago

PSF Code of Conduct Working Group Shares First Transparency Report

The PSF Code of Conduct Working Group will publish annual transparency reports starting with a 2024 report, backed by improved record keeping and public access.
Python
fromPyImageSearch
2 weeks ago

Pushing Docker App to AWS ECR for Lambda Deployment Using AWS CLI - PyImageSearch

Configure AWS CLI, build and push a Docker image of a FastAPI ONNX inference app to AWS ECR for Lambda deployment.
fromRealpython
2 weeks ago

How to Properly Indent Python Code - Real Python

Most editors and integrated development environments (IDEs) can indent Python code correctly with little to no input from the user. You'll see examples of this in the sections that follow. Python-Aware Editors In most cases, you'll be working in a Python-aware environment. This might be a full Python IDE such as PyCharm, a code editor like Visual Studio Code, the Python REPL, IPython, IDLE, or even a Jupyter notebook. All these environments understand Python syntax and indent your code properly as you type.
Python
fromTreyhunner
2 weeks ago

Python Black Friday & Cyber Monday sales (2025)

Python Morsels: I'm offering lifetime access for the second time ever (more details below) Data School: a new subscription to access all of Kevin's 7 courses plus all upcoming courses Talk Python: AI Python bundle, the Everything Bundle, and Michael's Talk Python in Production Reuven Lerner: get 20% off your first year of the LernerPython+data tier (code BF2025) : get 50% off all his books including his all books bundle (code BF202550) Mike Driscoll: get 50% off all his Python books and courses (code BLACKISBACK)
Python
fromMathspp
2 weeks ago

Generalising itertools.pairwise

itertools.pairwise is an iterable from the standard module itertools that lets you access overlapping pairs of consecutive elements of the input iterable. That's quite a mouthful, so let me translate: You give pairwise an iterable, like "ABCD", and pairwise gives you pairs back, like ("A", "B"), ("B", "C"), and ("C", "D"). In loops, it is common to unpack the pairs directly to perform some operation on both values.
Python
Python
fromTall, Snarky Canadian
2 weeks ago

Should I rewrite the Python Launcher for Unix in Python?

Pure Python can replace Rust for the Python Launcher for Unix because I/O-bound behavior keeps Python performance acceptable for practical use.
Python
fromdaniel.feldroy.com
2 weeks ago

TIL: Default code block languages for mkdocs

Set default_lang: python in mkdocs.yml using pymdownx.highlight so code blocks without language tags are highlighted as Python.
fromTreyhunner
2 weeks ago

Python Morsels Lifetime Access Sale

When you sign up for Python Morsels, you'll choose your current Python skill level, from novice to advanced. Based on your skill level, each Monday I'll send you a personalized routine with: a short screencast to watch (or read) a multi-part exercise to move you outside your comfort zone a mini exercise that you can accomplish in just 10 minutes links to dive deeper into subsequent screencasts and exercises
Python
#fastapi
fromRealpython
2 weeks ago
Python

Episode #275: Building a FastAPI Application & Exploring Python Concurrency - The Real Python Podcast

fromRealpython
2 weeks ago
Python

Episode #275: Building a FastAPI Application & Exploring Python Concurrency - The Real Python Podcast

Python
fromPython GUIs
2 weeks ago

First Steps With the DearPyGui Library for Desktop GUI Development

DearPyGui is a GPU-accelerated, cross-platform Python GUI framework offering modern widgets, themes, developer tools, and a clear app lifecycle for high-performance desktop interfaces.
Python
fromTall, Snarky Canadian
2 weeks ago

The varying strictness of TypedDict

TypedDict now controls both key requiredness and whether extra keys are allowed, with Python 3.15 adding closed TypedDict behavior to restrict unknown keys.
#mcp
Python
fromRealpython
2 weeks ago

Build a Python MCP Client to Test Servers From Your Terminal Quiz - Real Python

Five-question quiz tests building a Python MCP client covering chat interface, AI handler initialization, runtime error handling, and command-line entry-point updates.
#dataclasses
Python
fromRealpython
3 weeks ago

Break Out of Loops With Python's break Keyword - Real Python

The break statement immediately exits the innermost loop, stopping further iterations; continue skips the current iteration but does not exit the loop.
Python
fromPyImageSearch
1 month ago

Build a VLC Playlist Generator with SmolVLM for Video Highlight Tagging - PyImageSearch

A VLC Playlist Generator uses SmolVLM2 to detect video highlights and generate XSPF playlists for direct navigation in VLC.
#kv-cache
fromPyImageSearch
4 weeks ago

Converting a PyTorch Model to ONNX for FastAPI (Docker) Deployment - PyImageSearch

In this lesson, you will learn how to convert a pre-trained ResNetV2-50 model using PyTorch Image Models (TIMM) to ONNX, analyze its structure, and test inference using ONNX Runtime. We'll also compare inference speed and model size against standard PyTorch execution to highlight why ONNX is better suited for lightweight AI inference. This prepares the model for integration with FastAPI and Docker, ensuring environment consistency before deploying to AWS Lambda.
Python
fromPyImageSearch
2 months ago

Building a Streamlit Python UI for LLaVA with OpenAI API Integration - PyImageSearch

In this tutorial, you'll learn how to build an interactive Streamlit Python-based UI that connects seamlessly with your vLLM-powered multimodal backend. You'll write a simple yet flexible frontend that lets users upload images, enter text prompts, and receive smart, vision-aware responses from the LLaVA model - served via vLLM's OpenAI-compatible interface. By the end, you'll have a clean multimodal chat interface that can be deployed locally or in the cloud - ready to power real-world apps in healthcare, education, document understanding, and beyond.
Python
Python
fromNedbatchelder
3 weeks ago

Why your mock breaks later

Patch mocks where the object is used, not where it's defined, to avoid unintended, global effects on other libraries and test infrastructure.
fromMathspp
3 weeks ago

Floodfill algorithm in Python

ctx = canvas.getContext("2d") URL = "/blog/floodfill-algorithm-in-python/_python.txt" async def load_bitmap(url: str) -> list[list[int]]: # Fetch the text file from the URL response = await fetch(url) text = await response.text() bitmap: list[list[int]] = [] for line in text.splitlines(): line = line.strip() if not line: continue row = [int(ch) for ch in line if ch in "01"] if row: bitmap.append(row) return bitmap
Python
Python
fromMedium
4 weeks ago

How to activate virtual environment in python3

Use virtual environments to avoid pip 'externally-managed-environment' errors and prevent altering the system Python or other projects' dependencies.
Python
fromPythonbytes
3 weeks ago

Tapping into HTTP

Tools and techniques: httptap for detailed HTTP timing, Python performance hacks to speed code, and FastRTC for real-time Python audio/video streaming.
Python
fromInfoWorld
3 weeks ago

Python vs. Mojo (and Java, Go, Rust, and .NET)

Mojo, alternative data-science languages, Python dataclasses, and a new PyTorch-related distributed-processing framework are current focal points for Python practitioners.
Python
fromMicrosoft for Python Developers Blog
3 weeks ago

Python in Visual Studio Code - November 2025 Release - Microsoft for Python Developers Blog

Python extension November 2025 adds Copilot 'Add as docstring', localized hover summaries, Convert wildcard imports code action, and debugger support for multiple interpreters.
Python
fromPythonmorsels
3 weeks ago

Unnecessary parentheses in Python

Parentheses in Python serve three roles—calling callables, creating empty tuples, and grouping—while grouping can be optional, misplaced, or enable implicit line continuation.
Python
fromEfficient Coder
4 weeks ago

The Anatomy of a Scalable Python Project | EfficientCoder

Organize Python projects with a balanced folder structure, centralized config, fast tests, and predictable boundaries to scale code, team, environments, and speed.
Python
frompythontest.com
4 weeks ago

Explore Python dependencies with `pipdeptree` and `uv pip tree`

pipdeptree and uv pip tree reveal Python package dependency trees; pipdeptree runs with --python auto while uv pip tree integrates with uv-managed virtual environments.
fromdaniel.feldroy.com
4 weeks ago

Visiting Tokyo, Japan from November 12 to 24

I'm excited to announce that me and Audrey will be visiting Japan from November 12 to November 24, 2025! This will be our first time in Japan, and we can't wait to explore Tokyo. Yes, we'll be in Tokyo for most of it, near the Shinjuku area, working from coffee shops, meeting some colleagues, and exploring the city during our free time.
Python
Python
fromRealpython
4 weeks ago

Python Operators and Expressions - Real Python

Python operators enable computation and data manipulation using arithmetic, comparison, Boolean, identity, membership, bitwise, concatenation, repetition, and augmented assignment operators.
fromNedbatchelder
4 weeks ago

Three releases, one new organization

To measure your code, coverage.py needs to know what code got executed. To know that, it collects execution events from the Python interpreter. CPython now has two mechanisms for this: trace functions and sys.monitoring. Coverage.py has two implementations of a trace function (in C and in Python), and an implementation of a sys.monitoring listener. These three components are the measurement cores, known as "ctrace", "pytrace", and "sysmon".
fromThepythoncodingstack
4 weeks ago

The Misunderstood Hashable Types and Why Dictionaries Are Called Dictionaries * [Club]

Pick up a dictionary. No, not that one. The real dictionary you have on your bookshelf, the one that has pages made of paper, which you use to look up the meaning of English words. Or whatever other language. But let's assume it's an English dictionary. Now, look up zymology. I'll wait... Done? It probably didn't take you too long to find zymology.
Python
#python-314
Python
fromRealpython
1 month ago

Episode #273: Advice for Writing Maintainable Python Code - The Real Python Podcast

Use clear comments, expressive names, avoid magic numbers, design for future changes, and adopt modern tooling (like Ruff) to make Python code maintainable and refactorable.
fromRealpython
1 month ago

Python MarkItDown: Convert Documents Into LLM-Ready Markdown - Real Python

The MarkItDown library lets you quickly turn PDFs, Office files, images, HTML, audio, and URLs into LLM-ready Markdown. In this tutorial, you'll compare MarkItDown with Pandoc, run it from the command line, use it in Python code, and integrate conversions into AI-powered workflows. By the end of this tutorial, you'll understand that: You can install MarkItDown with pip using the specifier to pull in optional dependencies.
Python
fromTreehouse Blog
1 month ago

From Excel to Python: A Beginner's Guide

Excel gives you a huge toolbox of functions ( SUM, IF, VLOOKUP, INDEX, etc.), but eventually, you hit a wall. Maybe you want to do something more custom than Excel allows. Maybe your file slows down with too many rows. Or maybe there simply isn't a built-in function for exactly what you need. Python solves this by letting you build your own custom functions. That's why it's so powerful for data analysis-it's Excel without limits.
Python
#__slots__
Python
The Python Software Foundation withdrew a $1.5M NSF grant proposal because funding conditions required denying support for diversity across all PSF activities.
#lazy-imports
fromTheregister
1 month ago
Python

Python will offer lazy imports, adding code after startup

PEP 810 introduces opt-in explicit lazy imports to defer module loading until needed, improving Python startup times while preserving backward compatibility.
fromPycoders
1 month ago
Python

PyCoder's Weekly | Issue #705

Lazy importing, Python descriptors, REPL customization, AI agent token security, and Celery async integration are key Python ecosystem topics.
Python
fromMathspp
1 month ago

A generator, duck typing, and a branchless conditional walk into a bar

Generators provide lazy evaluation in Python, enabling iterable objects like range to create values on demand and avoid upfront computation.
Python
fromMedium
1 month ago

From Chaos to Coordination: The Power of Multi AI Agent Systems with CrewAI

CrewAI uses multiple specialized AI agents organized into crews and processes to manage complex, multi-step projects more reliably than a single AI.
Python
fromPythonbytes
1 month ago

Gilded Python and Beyond

Cyclopts replaces Typer's proxy-default CLI design with annotations to fix usability issues, while Python 3.14's free-threaded interpreter reduces GIL-related penalties to about 5–10%.
Python
fromRealpython
1 month ago

Using Python Optional Arguments When Defining Functions Quiz - Real Python

Understand Python parameter handling: default values, mutable-default pitfalls, argument unpacking (*args/**kwargs), and using Boolean flags for clearer function calls.
Python
fromPythontest
1 month ago

Polite lazy imports for Python package maintainers | PythonTest

Minimize package import time by lazily loading subcomponents via __init__.py so importing the package doesn't load unused parts.
fromRealpython
1 month ago

Episode #272: Michael Kennedy: Managing Your Own Python Infrastructure - The Real Python Podcast

How do you deploy your Python application without getting locked into an expensive cloud-based service? This week on the show, Michael Kennedy from the Talk Python podcast returns to discuss his new book, "Talk Python in Production." Michael runs multiple Python applications online, including a training site, blog, and two podcasts. While searching for the best solution for hosting his business, he documented his findings in a book.
Python
Python
fromDEV Community
1 month ago

Scratching the Itch, Paying the Debt: How Community Keeps Legacy Open Source Projects Alive

FastKML and PyGeoIf grew from personal tools into widely used geospatial Python libraries that now need modernization due to technical debt and ecosystem changes.
Python
fromQuansight
1 month ago

Exploring & Improving the Thread Safety of NumPy's Test Suite

NumPy's test suite was improved for thread-safety to prepare for free-threaded Python by fixing tests, updating CI, and applying OSS practices.
Python
fromAntocuni
1 month ago

Inside SPy, part 1: Motivations and Goals - Antonio Cuni's blog

SPy is a statically typed Python variant combining an interpreter and compiler focused on performance, deliberately sacrificing full Python compatibility for optimization.
Python
fromPycon
1 month ago

PyCon US 2026 - Call for Proposals Now Open!

PyCon US 2026 will take place in Long Beach, CA, May 13–19, 2026, with the Call for Proposals and website now open.
Python
fromPythonmorsels
1 month ago

__dict__: where Python stores attributes

Python stores attributes for instances, classes, and modules in their __dict__ dictionaries, mapping attribute names to values.
Python
fromESPN.com
1 month ago

Nebraska's black alternate uniforms headline best Week 10 threads in college football

Nebraska will wear a monochromatic black uniform with a white helmet featuring a black "N" emblem when No. 23 USC visits in Week 10.
Python
fromMathspp
1 month ago

TIL 135 - Build the Python documentation

Fixing a single leading-space in a reStructuredText comment corrected a misrendered 'See also' callout in Python documentation.
Python
fromThepythoncodingstack
1 month ago

Impostors * How Even The Python Docs Get This Wrong* * [Club]

zip(), enumerate(), and range() are common Python loop tools; mastering them enables exploring itertools, and examples of range() in for loops can be misleading.
fromGrahamdumpleton
1 month ago

Detecting object wrappers - Graham Dumpleton

The best example of this and the reason that wrapt was created in the first place, is to instrument existing Python code to collect metrics about its performance when run in production. Since one cannot expect a customer for an application performance monitoring (APM) service to modify their code, as well as code of the third party dependencies they may use, transparently reaching in and monkey patching code at runtime is the best one can do.
Python
fromRubyflow
1 month ago

Resolving the 'rest_framework' Module Not Found Error

The ModuleNotFoundError: No module named 'rest_framework' is a common issue faced by developers working with Django REST Framework (DRF).
fromRealpython
1 month ago

What Can I Do With Python? Quiz - Real Python

How well do you know the different areas where Python shines? In this quiz, you'll revisit web apps and APIs, GUI apps, CLI tools, machine learning, and more. You'll also check what Python isn't suited for and which alternatives work better. Get ready to explore the wide scope of what you can do with Python.
Python
Python
fromReuven Lerner
1 month ago

Your personal mentor for Python and Pandas

LernerPython.com delivers structured, mentored Python, Pandas, and Git training with courses, exercises, live mentorship, community lectures, and member perks.
[ Load more ]