Python

[ follow ]
#geopandas
Python
fromRealpython
2 days ago

Episode #282: Testing Python Code for Scalability & What's New in pandas 3.0 - The Real Python Podcast

Automated tests should verify algorithmic scaling (Big-O) to detect performance regressions as data grows; pandas 3.0 adds a string dtype, column operations, and Copy-on-Write.
Python
fromThepythoncodingstack
1 day ago

Planning Meals, Weekly Shop, Alternative Constructors Using Class Methods

Use alternative constructors via class methods to build Meal and WeeklyMealPlanner objects and protect internal state with read-only properties and shallow copies.
Python
fromPythonSpeed
in 3 weeks

Speeding up NumPy with parallelism

Combine CPU-core parallelism and algorithmic optimization (e.g., Numba) to substantially speed up NumPy computations and reduce memory usage.
Python
fromThe JetBrains Blog
5 months ago

The Most Popular Python Frameworks and Libraries in 2025 | The PyCharm Blog

FastAPI leads Python framework usage in 2024 with 38%, offering high-performance async APIs, type safety, auto-generated docs, and strong ML deployment support.
Python
fromThe JetBrains Blog
4 days ago

Google Colab Support Is Now Available in PyCharm 2025.3.2 | The PyCharm Blog

PyCharm now integrates Google Colab, enabling full-featured IDE workflows with Colab-hosted Jupyter notebooks inside PyCharm.
Python
fromInfoWorld
3 days ago

CPython vs. PyPy: Which Python runtime has the better JIT?

PyPy remains far faster for raw numerical workloads, but CPython's new native JIT and no-GIL builds close the gap in other workloads and enable threading.
Python
fromPythonmorsels
4 days ago

All iteration is the same in Python

All Python iteration forms use the same iterator protocol; iterating over an object yields its defined iteration items (e.g., dictionary yields keys, string yields characters).
#volunteering
#django
fromPybites
4 days ago

The Missing 66% Of Your Skillset - Pybites

Bob and I have spent many years as Python devs, and 6 years coaching with Pybites and we can safely say that being a Senior Developer is only about 1/3 Python knowledge. The other 60% is the ecosystem. It's the tooling. It's all of the tech around Python that makes you stand out from the rest. This is the biggest blind spot keeping developers stuck in Tutorial Hell. You spend hours memorising obscure library features, but you crumble when asked to configure a CI/CD pipeline.
Python
Python
fromRealpython
4 days ago

Create Callable Instances With Python's .__call__() - Real Python

Define __call__ in a class to make its instances callable, enabling objects to behave like functions for flexible, reusable behavior.
Python
fromInfoWorld
5 days ago

Visual Studio Code previews incoming/outgoing changes graph

Visual Studio Code 1.91 adds an experimental incoming/outgoing changes graph and a Rust-based python-environment-tools for faster Python environment discovery.
Python
fromPyImageSearch
5 days ago

SAM 3: Concept-Based Visual Understanding and Segmentation - PyImageSearch

SAM 3 enables open-vocabulary concept-driven detection, segmentation, and tracking across images and videos using natural language prompts and visual exemplars.
Python
fromPythonbytes
5 days ago

Toads in my AI

Security, AI tooling, and developer ergonomics converge: GreyNoise IP checks, TOAD terminal AI front-end, tprof profiler, FastAPI AI guidelines, and container startup optimizations.
Python
fromKushal Das
5 days ago

Kushal Das

replyfast is a Python module for sending and receiving Signal messages with device registration, demo bot, scheduling support, and a Rust-based presage backend.
fromNedbatchelder
6 days ago

Testing: exceptions and caches

Kacper Borucki blogged about parameterizing exception testing, and linked to pytest docs and a StackOverflow answer with similar approaches. The common way to test exceptions is to use pytest.raises as a context manager, and have separate tests for the cases that succeed and those that fail. Instead, this approach lets you unify them. I tweaked it to this, which I think reads nicely: One parameterized test that covers both good and bad outcomes. Nice.
Python
fromRaymondcamden
1 week ago

Building a UI for Gemini File Stores

Gemini File Stores provide persistent file stores with metadata filtering to simplify RAG workflows and support GenAI-powered searches via a simple local Flask app.
#ollama
Python
fromReuven Lerner
1 week ago

Build YOUR data dashboard - join my next 8-week HOPPy studio cohort

Create shareable interactive data dashboards in Python using Marimo; HOPPy cohort teaches dashboard building with mentorship, live instruction, and modern distribution tools.
fromInfoWorld
1 week ago

How to use Pandas for data analysis in Python

When it comes to working with data in a tabular form, most people reach for a spreadsheet. That's not a bad choice: Microsoft Excel and similar programs are familiar and loaded with functionality for massaging tables of data. But what if you want more control, precision, and power than Excel alone delivers? In that case, the open source Pandas library for Python might be what you are looking for.
Python
Python
fromPython Software Foundation Blog
1 week ago

Departing the Python Software Foundation (Staff)

Ee is stepping down as Director of Infrastructure at the Python Software Foundation, expressing gratitude and leaving the organization in strong technical condition.
Python
fromRealpython
1 week ago

uv vs pip: Python Packaging and Dependency Management - Real Python

Choose pip for broad compatibility and ecosystem support; choose uv for faster installs, reproducible environments, cleaner uninstalls, and streamlined new-project workflows.
fromPython Software Foundation Blog
1 week ago

Announcing Python Software Foundation Fellow Members for Q4 2025!

The PSF is pleased to announce its fourth batch of PSF Fellows for 2025 ! Let us welcome the new PSF Fellows for Q4 ! The following people continue to do amazing things for the Python community: Chris Brousseau Dave Forgac Inessa Pawson Karen Dalton Tatiana Andrea Delgadillo Garzofino Thank you for your continued contributions. We have added you to our Fellows Roster .
Python
Python
fromPyImageSearch
1 week ago

Grounded SAM 2: From Open-Set Detection to Segmentation and Tracking - PyImageSearch

Grounded SAM 2 extends Grounding DINO by adding pixel-level segmentation and video-aware tracking to convert language-driven detections into precise, persistent object masks.
Python
fromRealpython
1 week 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.
fromhttps://daniel.feldroy.com
2 weeks ago

Writing tools to download everything

Using AI to help download photos so we can consolidate all our images into one place. Over the years, [Audrey](https://audrey.feldroy.com) and I have accumulated photos across a variety of services. Flickr, SmugMug, and others all have chunks of our memories sitting on their servers. Some of these services we haven't touched in years, others we pay for but rarely use. It was time to bring everything home.
Python
Python
fromTechzine Global
2 weeks ago

Anthropic invests in Python ecosystem security

Anthropic is funding the Python Software Foundation $1.5 million over two years to strengthen CPython and PyPI security, tooling, and community support.
Python
fromTheregister
2 weeks ago

Anthropic funds Python Foundation to help improve security

Anthropic donated $1.5 million to the Python Software Foundation to fund CPython and PyPI security improvements and broader open-source package ecosystem protections.
Python
fromPycoders
2 weeks 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
fromPythonbytes
2 weeks ago

Stack Overflow is Cooked

Cross-platform port management, major Python packaging speedups, and AI-driven impacts on developer companies exemplified by Tailwind's deep revenue and staff losses.
#python-package-management
Python
fromPython Software Foundation Blog
2 weeks ago

Anthropic invests $1.5 million in the Python Software Foundation and open source security

Anthropic funds PSF $1.5M over two years to strengthen Python ecosystem security, improve CPython and PyPI defenses, and develop proactive malware-detection tools.
Python
fromTalkpython
2 weeks ago

diskcache: Your secret Python perf weapon

DiskCache provides a SQLite-backed, dictionary-like persistent cache that speeds Python applications, supports cross-process use, and avoids running separate services like Redis.
Python
fromRealpython
2 weeks 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.
Python
fromWingware
2 weeks ago

Wing Python IDE Version 11.0.7 - January 12, 2026 - Wing Python IDE

Wing Python IDE 11.0.7 improves AI features and multi-provider support, boosts performance, fixes stdout.writelines in unit tests, reduces package-rescan CPU usage, and corrects analysis errors.
#streamlit
Python
fromThepythoncodingstack
2 weeks ago

Need a Constant in Python? Enums Can Come in Useful

Python has no built-in constants; immutable objects and UPPERCASE naming do not prevent reassignment of identifiers.
Python
fromPython GUIs
2 weeks ago

What does @pyqtSlot() do?

Use @pyqtSlot to create native Qt slots for threaded contexts and to reduce memory usage and slightly improve performance; otherwise plain Python callables work.
Python
fromMouse Vs Python
3 weeks ago

How to Switch to ty from Mypy - Mouse Vs Python

Ty is a fast Rust-based Python type checker installable locally or in CI, configurable via pyproject.toml, and integrable in GitHub Actions.
fromRealpython
3 weeks ago

Episode #279: Coding Python With Confidence: Beginners Live Course Participants - The Real Python Podcast

We speak with course instructor Stephen Gruppetta about building a course where the participants start using their knowledge as soon as possible. He describes how he's evolved his teaching techniques over years of working with beginners. We explore the advantages of having a curated collection of written tutorials, video courses, and a forum for asking those nagging questions. We also speak with students Louis and Andrew about their experiences learning
Python
Python
fromInfoWorld
3 weeks ago

Python starts 2026 with a bang

2026 brings major Python advancements: Astral's ultrafast 'ty' type checker (beta), Django 6, and Python-driven C code generation for faster applications.
Python
fromThepythoncodingstack
3 weeks ago

Parkruns, Python's enumerate and zip, and Why Python Loops Are Different from Other Languages * [Club]

Python encourages iterating directly over items instead of manually indexing, producing clearer, safer, and more idiomatic code.
Python
fromLondon Business News | Londonlovesbusiness.com
3 weeks ago

Automating the mundane: Leveraging Rpa and Python developers to streamline your workflow - London Business News | Londonlovesbusiness.com

Hiring both RPA developers and Python programmers eliminates repetitive operational friction and enables scalable automation that combines surface-level UI tasks with complex backend integrations.
fromMathspp
3 weeks ago

Recursive structural pattern matching

Structural pattern matching excels at... matching the structure of your objects! For the two examples in this article, we'll be using a number of dataclasses that you can use to build abstract Boolean expressions: from dataclasses import dataclass class Expr: pass @dataclass class And(Expr): exprs: list[Expr] @dataclass class Or(Expr): exprs: list[Expr] @dataclass class Not(Expr): expr: Expr @dataclass class Var(Expr): name: str
Python
Python
fromRealpython
3 weeks ago

How to Properly Indent Python Code Quiz - Real Python

Consistent indentation using spaces, proper editor settings, and code formatters ensures correct Python code structure and behavior.
fromRealpython
3 weeks ago

How to Build a Personal Python Learning Roadmap - Real Python

If you want to learn Python or improve your skills, a detailed plan can help you gauge your current status and navigate toward a target goal. This tutorial will help you craft a personal Python learning roadmap so you can track your progress and stay accountable to your goals and timeline: The steps in this tutorial are useful for Python developers and learners of all experience levels. While you may
Python
Python
fromInfoQ
3 weeks 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.
fromRealpython
3 weeks ago

How to Convert Bytes to Strings in Python Quiz - Real Python

In this quiz, you'll test your understanding of the Convert Python Bytes to Strings tutorial.
Python
Python
fromPycoders
3 weeks ago

PyCoder's Weekly | Issue #716

Python performance metrics, async web-app tradeoffs, uv's speed from engineering choices, and tools for building long-running, fault-tolerant AI agents.
Python
fromPatrick Muller
1 month ago

Static Protocols in Python: Behaviour Over Inheritance

Protocols enable structural typing in Python by validating object behavior (methods/attributes) rather than relying on inheritance.
Python
fromThe JetBrains Blog
1 month ago

Next Edit Suggestions: Now Generally Available | The JetBrains AI Blog

Next edit suggestions (NES) are enabled by default in JetBrains IDEs for AI Pro, AI Ultimate, and AI Enterprise and do not consume AI quota.
fromPythonmorsels
3 weeks ago

Debugging with f-strings

If you're using print calls to debug your Python code, consider using f-strings with self-documenting expressions instead. A broken Python program Here we have a program that makes a random math prompt and then validates whether the answer give by the user is correct: This program doesn't work right now: $ python3 check_mult.py What's 9 multiplied by 8? 72 That's incorrect Our program always tells us that our answer is incorrect.
Python
Python
fromEuroPython Blog
4 weeks ago

Humans of EuroPython: Marina Moro Lopez

Volunteers handle program curation, speaker coordination, scheduling, and logistics, gaining communication and organizational skills while strengthening the EuroPython community.
Python
fromPythonmorsels
1 month ago

Implicit string concatenation

Python automatically concatenates adjacent string literals (implicit string concatenation), allowing literal fragments to join across lines without plus signs or commas.
fromThepythoncodingstack
1 month ago

Mulled Wine, Mince Pies, and More Python

And there's another thing I can never remember, especially at this time of year when large-ish gatherings are more common. How many people are needed in a group to have a probability greater than 50% that two people share a birthday? This could be an ice-breaker in some awkward gatherings, but only if you're with a geeky crowd. Although the analytical proof is cool, writing Python code to explore this problem is just as fun. Here's my article from February exploring the Birthday Paradox:
Python
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #715

2025 highlights include Python dataclass internals, pylock.toml lockfiles for reproducible dependencies, Django vs FastAPI comparisons, Loguru logging, and Narwhals unified DataFrame functions.
Python
fromTalkpython
1 month ago

2025 Python Year in Review

Python in 2025 is rapidly evolving: the GIL is being phased out, packaging and tooling are improving, and type checking and AI-related tooling are rapidly proliferating.
Python
fromShed-skin
1 month ago

A (biased) Pure Python Performance Comparison

Shed Skin achieves about 29× average speedup over CPython 3.10 across many examples, outperforming PyPy's ~16× average with some workload exceptions.
fromInfoWorld
1 month ago

Get started with Python's new native JIT

sys._jit.is_available(): Lets you know if the current build of Python has the JIT. Most binary builds of Python shipped will now have the JIT available, except the "free-threaded" or "no-GIL" builds of Python. sys._jit.is_enabled(): Lets you know if the JIT is currently enabled. It does not tell you if running code is currently being JITted, however.
Python
Python
fromInfoQ
1 month ago

Python Workers Redux: Wasm Snapshots and Native uv Tooling

Cloudflare's Python Workers use Wasm memory snapshots to enable near-instant cold starts, significantly reducing startup times and expanding package compatibility.
Python
fromRealpython
1 month ago

LlamaIndex in Python: A RAG Guide With Examples - Real Python

Retrieval-augmented generation feeds LLMs relevant external documents at query time, improving accuracy and enabling answers from private data without fine-tuning models.
fromRealpython
1 month ago

LlamaIndex in Python: A RAG Guide With Examples Quiz - Real Python

In this quiz, you'll test your understanding of the LlamaIndex in Python: A RAG Guide With Examples tutorial. By working through this quiz, you'll revisit how to create and persist an index to disk, review how to reload it, and see why persistence improves performance, lowers costs, saves time, and keeps results consistent.
Python
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #714

Macroscope detected the most real-world AI code-review bugs with fewer false positives, particularly excelling on Python.
Python
fromRealpython
1 month ago

Reading User Input From the Keyboard With Python - Real Python

Use Python's input() to read keyboard input as strings, enabling interactive, personalized programs that react to user-provided data.
fromPyImageSearch
1 month ago

Mistral OCR 3 Technical Review: SOTA Document Parsing at Commodity Pricing - PyImageSearch

The commoditization of Optical Character Recognition (OCR) has historically been a race to the bottom on price, often at the expense of structural fidelity. However, the release of Mistral OCR 3 signals a distinct shift in the market. By claiming state-of-the-art accuracy on complex tables and handwriting-while undercutting AWS Textract and Google Document AI by significant margins-Mistral is positioning its proprietary model not just as a cheaper alternative, but as a technically superior parsing engine for RAG (Retrieval-Augmented Generation) pipelines.
Python
Python
fromReuven Lerner
1 month ago

Reuven's 2025 in review

LernerPython launched a customized site in 2025 with Discord and Bamboo Weekly integration, monthly live office hours, members-only lectures, and Python Institute exam discounts.
Python
fromEuroPython Society
1 month ago

EPS Board 2025-2026

EPS board 2025–2026: Artur Czepiel (Chair), Mia Bajić (Vice Chair), Anders Hammarquist, Angel Ramboi, Aris Nivorlis, Ege Akman, Yuliia Barabash; EuroPython 2026 preparations begin.
Python
fromInfoQ
1 month ago

Toad: A Unified CLI Tool for All Your LLMs That Promises Improved UX From Existing Ones

Toad provides a unified, beautiful terminal GUI that runs multiple ACP-enabled coding agents and improves terminal UX with rich Markdown and project-aware features.
fromNedbatchelder
1 month ago

Generating data shapes with Hypothesis

I couldn't get Hypothesis to generate usable data for my test. I wanted to assert that two equal data items would hash equally, but Hypothesis was finding pairs like[0] and [False]. These are equal but hash differently because the hash takes the types into account.
Python
fromMedium
2 months ago

uv: The Blazing-Fast Python Package Manager Changing the Game

uv delivers extremely fast, Rust-based Python dependency resolution and installation with aggressive caching, automatic virtual environments, and integrated Python version and tool management.
fromTalkpython
1 month ago

Talk Python in Production

Have you ever thought about getting your small product into production, but are worried about the cost of the big cloud providers? Or maybe you think your current cloud service is over-architected and costing you too much? Well, in this episode, we interview Michael Kennedy, author of "Talk Python in Production," a new book that guides you through deploying web apps at scale with right-sized engineering.
Python
fromCogito, Ergo Sumana
1 month ago

Python Software Foundation, National Science Foundation, And Integrity

I know, from personal experience, that it takes a significant amount of effort to research, write, revise, and submit a decently plausible funding proposal to the US government's National Science Foundation. A successful NSF proposal is as tightly structured as a sonnet, even beyond the explicit requirements given in the solicitation; every diagram or chart, every paragraph, every sentence of those 20-30 pages has to hit a particular mark.
Python
fromThe JetBrains Blog
1 month ago

Meet the Islands Theme - The New Default Look for JetBrains IDEs | The JetBrains Platform Blog

Islands theme is now the default across JetBrains IDEs, offering a softer, clearer, and more cohesive UI to support focus and comfort.
fromRealpython
1 month ago

How to Build the Python Skills That Get You Hired - Real Python

Web development roles often emphasize frameworks like Flask, Django, and, more recently, FastAPI, along with database knowledge and REST API design. Employers often seek full-stack engineers who feel comfortable working on the backend as well as frontend, including JavaScript, HTML, and CSS. Data science positions highlight libraries like NumPy, pandas, Polars, and Matplotlib, plus an understanding of statistical concepts. Machine learning jobs typically add PyTorch or TensorFlow to the mix. Test automation roles likely require familiarity with frameworks such as Selenium, Playwright, or Scrapy.
Python
fromPythonmorsels
1 month ago

Embrace whitespace

Your code is easiest to read just after you've written it. Your future self will find your code far less readable days, weeks, or months after you've written it. When it comes to code readability, whitespace is your friend. Whitespace around operators Compare this: To this: I find that second one more readable because the operations we're performing are more obvious (as is the order of operations). Too much whitespace can hurt readability though: This seems like a step backward because we've lost those three groups we had before. With both typography and visual design, more whitespace isn't always better.
Python
Python
fromMedium
2 months ago

uv: The Blazing-Fast Python Package Manager Changing the Game

uv provides extremely fast Python dependency resolution and environment management using a Rust-based installer, aggressive caching, parallel downloads, and integrated tooling replacing multiple tools.
fromSebastian Polsterl
1 month ago

scikit-survival 0.26.0 released | Sebastian Polsterl

I am pleased to announce that scikit-survival 0.26.0 has been released. This is a maintainance release that adds support for Python 3.14 and includes updates to make scikit-survival compatible with new versions of pandas and osqp. It adds support for the pandas string dtype, and copy-on-write, which is going to become the default with pandas 3. In addition,sksurv.preprocessing.OneHotEncoder now supports converting columns with the object dtype.
Python
Python
fromInfoWorld
1 month ago

Django tutorial: Get started with Django 6

Django 6.0 provides a full-featured, scalable Python web framework with routes, views, templates, migration tools, and a strong ecosystem for building and evolving web applications.
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #713

Deprecation warnings often fail to reach downstream users; Python 3.14 relocates compression to a new module with zstd, pandas 3.0.0rc0 is out, and functional programming resources and WASI PEP exist.
Python
fromRealpython
1 month ago

Exploring Asynchronous Iterators and Iterables - Real Python

Asynchronous iterators and iterables enable non-blocking iteration over awaitable objects in Python, supporting async for loops, async generator expressions, and use within async loops and comprehensions.
fromPythonbytes
1 month ago

LinkedIn Cringe

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am 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. Brian #1: Deprecations via warnings Michael #2: docs
Python
fromRealpython
1 month ago

Writing DataFrame-Agnostic Python Code With Narwhals - Real Python

Narwhals is intended for Python library developers who need to analyze DataFrames in a range of standard formats, including Polars, pandas, DuckDB, and others. It does this by providing a compatibility layer of code that handles any differences between the various formats. In this tutorial, you'll learn how to use the same Narwhals code to analyze data produced by the latest versions of two very common data libraries. You'll also discover how Narwhals utilizes the efficiencies of your source data's underlying library when analyzing your data.
Python
#pricing
fromThepythoncodingstack
1 month ago

If You Love Queuing, Will You Also Love Priority Queuing? * [Club]

You provide three tiers to your customers: Gold, Silver, and Bronze. And one of the perks of the higher tiers is priority over the others when your customers need you. Gold customers get served first. When no Gold customers are waiting, you serve Silver customers. Bronze customers get served when there's no one in the upper tiers waiting. How do you set up this queue in your Python program?
Python
[ Load more ]