#Python

[ follow ]
#python
Python
fromTheregister
4 days ago

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.
Python
fromPythontest
1 week 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.
Software development
fromRealpython
4 days ago

Building UIs in the Terminal With Python Textual - Real Python

Textual is a Python framework for building interactive, visually appealing, and efficient terminal-based user interfaces using widgets, layouts, styling, and events.
fromWill's Blog
1 week ago

Open Source Project Maintenance 2025

Every October, I do a maintenance pass on all my projects. At a minimum, that involves dropping support for whatever Python version is no longer supported and adding support for the most recently released Python version. While doing that, I go through the issue tracker, answer questions, and fix whatever I can fix. Then I release new versions. Then I think about which projects I should deprecate and figure out a deprecation plan for them.
fromThepythoncodingstack
1 week ago

And Now You Know Your ABC

Here's the task. I want to create a class to represent a track and field event held in a competition. This entry allows you to enter the raw results as reported by the officials-the athlete's bib number and the time they clocked in a race. It then computes the event's full results. There's more we could add to make this class more complete. But I won't. You can create a list of athletes that are competing in the track and field meeting:
Running
fromRubyflow
2 weeks 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).
fromThepythoncodingstack
3 weeks ago

Creating a Singleton Class in Python And Why You (Probably) Don't Need It

If you spend long enough in the programming world, you'll come across the term singleton at some point. And if you hadn't seen this term yet, well, now you have! In Python, you don't need singleton classes. Almost never. But creating one is a great exercise in understanding how Python creates objects. And discussing alternatives to a singleton class helps you explore other aspects of Python.
Python
Python
frompythontest.com
3 weeks ago

Python lazy imports you can use today | PythonTest

Use explicit lazy imports now to defer heavy or side-effect-prone module loading, improving startup performance across current Python versions.
Books
fromTalkpython
3 weeks ago

Talk Python in Production Story

A decade-long website growth produced many features and users; a detailed account explains production lessons and how those differ from typical Python DevOps practices.
Python
fromPeterbe
4 weeks ago

In Python, you have to specify the type and not rely on inference - Peterbe.com

TypeScript infers literal argument types causing compile-time errors for mismatched values; Python's mypy requires explicit annotations to report the same mismatches.
fromRealpython
1 month ago

Modern Python Linting With Ruff - Real Python

Linting is essential to writing clean and readable code that you can share with others. A linter, like Ruff, is a tool that analyzes your code and looks for errors, stylistic issues, and suspicious constructs. Linting allows you to address issues and improve your code quality before you commit your code and share it with others. Ruff is a modern linter that's extremely fast and has a simple interface, making it straightforward to use.
Python
Python
fromBeauty-of-imagination
1 month ago

Abusing yahi -a log based statistic tool a la awstats- to plot histograms/date series from CSV

Yahi is a pip-installable Python module that builds a single static HTML page to aggregate and analyze logs (including CSV) using regex-based parsing and aggregations.
Software development
fromMicrosoft for Python Developers Blog
1 month ago

Simplifying Resource Management in mssql-python through Context Manager - Microsoft for Python Developers Blog

mssql‑python adds context manager support for connections and cursors, enabling automatic resource cleanup and safer, cleaner SQL Server and Azure SQL interactions in Python.
Artificial intelligence
fromNature
1 month ago

Python, the movie! The origin story of the programming language comes to the silver screen

NumPy standardized numeric array handling in Python, enabling scientific computing and AI and driving widespread adoption of Python for numerical and data-science libraries.
Python
fromPycoders
1 month ago

PyCoder's Weekly | Issue #701

Multiple Python-related tools, events, and updates cover converting Python to LaTeX, MCP considerations, Playwright testing techniques, and recent Python and Django releases.
Python
fromCreative Bloq
1 month ago

Think you've seen the weirdest place to play DOOM? Think again

DOOM can be run and played inside Blender by rendering the game to an icon using Doomviz and custom icon-scaling, caching, and input handling.
#fastapi
fromRealpython
1 month ago
Web frameworks

Get Started With FastAPI - Real Python

FastAPI provides a fast, developer-friendly Python web framework using type hints for automatic validation, serialization, interactive docs, and built-in features that reduce API boilerplate.
fromThe JetBrains Blog
2 months ago
Web frameworks

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

FastAPI is a modern, high-performance, type-safe, asynchronous Python framework ideal for building fast APIs and deploying ML models with auto-generated documentation.
Python
fromThepythoncodingstack
1 month ago

The Networking Event (#4 in The itertools Series * `combinations()` and `permutations()`)

Generate round-robin one-to-one meeting rotas from a list of participant names for pairwise networking.
Books
fromData School
1 month ago

Book preview: Master Machine Learning with scikit-learn

Master Machine Learning with scikit-learn is a near-complete book adapting a four-year course to train novices into skilled practitioners; first three chapters available for download.
Artificial intelligence
fromPythonshow
3 months ago

54 - Neural Networks and Data Visualization with Nicolas Rougier

Nicolas Rougier applies computational models, neural networks, and Python-based visualization tools like Glumpy and VisPy to study the brain and neurodegenerative diseases.
fromThe Hacker News
2 months ago

Malicious PyPI and npm Packages Discovered Exploiting Dependencies in Supply Chain Attacks

The termncolor package and its malicious dependency colorinal highlight the increasing sophistication of attacks targeting software repositories, enabling attackers to achieve remote code execution and system persistence.
Information security
Python
fromTest & Code
2 months ago

Test & Code | 238: So Long, and Thanks for All the Fish

The podcast journey spanned ten enjoyable years, focusing on software development and testing.
fromRealpython
2 months ago

Episode #261: Selecting Inheritance or Composition in Python - The Real Python Podcast

When tackling object-oriented programming problems, one must choose between inheritance and composition, as each has distinct trade-offs. Composition often leads to more flexible and reusable code.
Python
fromwww.tensorflow.org
2 months ago

Why Your tf.function Isn't Working the Way You Think (and How to Fix It)

The outputs of a tf.function must be return values, and side effects may behave unexpectedly, executing only for the first call with a set of inputs.
Python
Python
fromPaddy3118
2 months ago

Go Deh celebrations!

Milestones include fifty years of programming experience, thirty years of Python programming, and a blog achieving one million views.
Python
fromQuansight
3 months ago

Support for ABI3 packages in conda!

Point72 and Quansight funded ABI3 packages for better compatibility in the conda ecosystem.
[ Load more ]