Explore how to reliably compare different types of iterables in Python with this concise article, which demonstrates practical techniques for checking equality between lists, tuples, and even iterator-based objects. Learn why direct equality checks may fail and how converting iterables to lists can ensure accurate comparisons.
https://www.pythonmorsels.com/iterable-equality/
https://www.pythonmorsels.com/iterable-equality/
Pythonmorsels
Checking whether iterables are equal in Python
You can check whether iterables contain the same elements in Python with equality checks, type conversions, sets, Counter, or looping helpers.
Delve into the mechanics of NumPy's powerful einsum function in this insightful blogpost by Eli Bendersky, which breaks down its syntax, use cases, and performance benefits for array operations and tensor algebra.
https://eli.thegreenplace.net/2025/understanding-numpys-einsum/
https://eli.thegreenplace.net/2025/understanding-numpys-einsum/
This guide walks you through building a modern web application by integrating FastAPI on the backend with Svelte on the frontend, offering a step-by-step approach to creating a full-stack project with asynchronous APIs and reactive user interfaces.
https://testdriven.io/blog/fastapi-svelte/
https://testdriven.io/blog/fastapi-svelte/
testdriven.io
Building a Real-time Dashboard with FastAPI and Svelte
Learn how to build a real-time analytics dashboard using FastAPI and Svelte with server-sent events.
Valentino Gagliardi's article provides actionable advice for making Django web forms more accessible, covering best practices and practical examples to ensure your forms are usable by everyone, including people with disabilities.
https://www.valentinog.com/blog/django-accessible-web-forms/
https://www.valentinog.com/blog/django-accessible-web-forms/
Valentino Gagliardi's Blog
Building accessible web forms in Django
A step by step reference to building accessible web forms in Django.
👍1
Unlock the secrets hidden within your passport by learning how to read its NFC chip using Linux. This guide reveals the tools and techniques needed to access the data stored on your passport, offering a glimpse into the technology that secures your identity.
https://shkspr.mobi/blog/2025/06/reading-nfc-passport-chips-in-linux/
https://shkspr.mobi/blog/2025/06/reading-nfc-passport-chips-in-linux/
Terence Eden’s Blog
Reading NFC Passport Chips in Linux
For boring and totally not nefarious reasons, I want to read all the data contained in my passport's NFC chip using Linux. After a long and annoying search, I settled on roeften's pypassport. I can now read all the passport information, including biometrics.…
👍2
Dive into the world of Python logging and discover how to effectively track and debug your applications. This guide provides a comprehensive overview of Python's logging module, empowering you to implement robust logging strategies for improved code maintainability and troubleshooting.
https://www.dash0.com/guides/logging-in-python
https://www.dash0.com/guides/logging-in-python
Dash0
Application Logging in Python: Recipes for Observability · Dash0
Stop debugging with unstructured text Learn to build a robust Python logging system with structured JSON automatic context and full request lifecycle tracking
❤1
Python For Nonprofits demonstrates how to use Python to retrieve, analyze, visualize, and share nonprofit data.
https://github.com/kburchfiel/pfn
https://github.com/kburchfiel/pfn
GitHub
GitHub - kburchfiel/pfn: Python For Nonprofits demonstrates how to use Python to retrieve, analyze, visualize, and share nonprofit…
Python For Nonprofits demonstrates how to use Python to retrieve, analyze, visualize, and share nonprofit data. - kburchfiel/pfn
A Tree Search Library with Flexible API for LLM Inference-Time Scaling
https://github.com/SakanaAI/treequest
https://github.com/SakanaAI/treequest
GitHub
GitHub - SakanaAI/treequest: A Tree Search Library with Flexible API for LLM Inference-Time Scaling
A Tree Search Library with Flexible API for LLM Inference-Time Scaling - SakanaAI/treequest
Struggling with slow Python code? This guide provides practical strategies for optimizing your Python programs and achieving significant speed improvements.
https://pythonspeed.com/articles/different-ways-speed
https://pythonspeed.com/articles/different-ways-speed
Python⇒Speed
330× faster: Four different ways to speed up your code
There are many approaches to speeding up Python code; applying multiple approaches can make your code even faster.
👍1
Dive into the world of Python packaging and discover how UV and PEP 723 are revolutionizing the way we manage dependencies. This article explores the exciting possibilities these advancements bring to the Python ecosystem.
https://www.cottongeeks.com/articles/2025-06-24-fun-with-uv-and-pep-723
https://www.cottongeeks.com/articles/2025-06-24-fun-with-uv-and-pep-723
Cottongeeks
Fun with uv and PEP 723
How to use uv and the Python inline noscript metadata proposal PEP 723 to run noscripts seamlessly.
Powerful universal JSON encoder/decoder for Python objects with support for pydantic v2.
https://github.com/Pipelex/kajson
https://github.com/Pipelex/kajson
GitHub
GitHub - Pipelex/kajson: Powerful universal JSON encoder/decoder for Python objects with support for pydantic v2.
Powerful universal JSON encoder/decoder for Python objects with support for pydantic v2. - Pipelex/kajson
Learn how to enhance the clarity and robustness of your Python dataclasses by leveraging keyword-only arguments. This blog post provides a practical tip for improving code maintainability and preventing unexpected behavior.
https://chipx86.blog/2025/06/29/tip-use-keyword-only-arguments-in-python-dataclasses
https://chipx86.blog/2025/06/29/tip-use-keyword-only-arguments-in-python-dataclasses
ChipLog — Christian Hammond
Tip: Use keyword-only arguments in Python dataclasses
Python dataclasses are a really nice feature for constructing classes that primarily hold or work with data. They can be a good alternative to using dictionaries, since they allow you to add method…
Explore the nuances of Django's values() and only() methods and understand when to use each for optimal database query performance. This post helps you make informed decisions to enhance your Django application's efficiency.
https://johnnymetz.com/posts/django-values-over-only/
https://johnnymetz.com/posts/django-values-over-only/
Johnny Metz
Speed Up Django Queries with values() over only()
If your Django queries feel slow, the problem might not be your database — it might be your ORM. Recently, I was working with a query that took 25 seconds to run through the Django ORM, but the underlying SQL completed in just 2 seconds. With a single change…
Discover a method for statically checking Python dictionaries to ensure they contain all the required keys, improving code reliability and preventing runtime errors. This blog post provides a solution for enhancing the robustness of your Python projects.
https://lukeplant.me.uk/blog/posts/statically-checking-python-dicts-for-completeness/
https://lukeplant.me.uk/blog/posts/statically-checking-python-dicts-for-completeness/
Luke Plant's home page
Statically checking Python dicts for completeness
A Pythonic way to ensure that your statically-defined dicts are complete, with full source code.
❤1
CLI tool for developing and profiling GPU kernels locally. Just write, test, and profile GPU code from your laptop.
https://github.com/Herdora/chisel
https://github.com/Herdora/chisel
GitHub
GitHub - Herdora/kandc: The profiler that gives a unified view of your entire stack - from PyTorch down to GPU
The profiler that gives a unified view of your entire stack - from PyTorch down to GPU - Herdora/kandc
❤2
Delve into the world of asynchronous programming in Python with a focus on asyncio protocols, understanding how they enable efficient and scalable network applications. This article offers insights into building responsive and concurrent systems using asyncio.
https://jacobpadilla.com/articles/asyncio-protocols
https://jacobpadilla.com/articles/asyncio-protocols
Jacob Padilla
Making a Simple HTTP Server with Asyncio Protocols
Learn how to build a fast, minimal HTTP server using asyncio.Protocol, complete with routing, parsing, and response handling from scratch!
👍2
A fully open source framework for creating RL training swarms over the internet.
https://github.com/gensyn-ai/rl-swarm
https://github.com/gensyn-ai/rl-swarm
GitHub
GitHub - gensyn-ai/rl-swarm: A fully open source framework for creating RL training swarms over the internet.
A fully open source framework for creating RL training swarms over the internet. - gensyn-ai/rl-swarm
Optimize your Dockerized Flask or Django applications by switching from pip to uv for faster and more efficient Python package management. This guide provides a step-by-step approach to streamlining your development workflow.
https://nickjanetakis.com/blog/switching-pip-to-uv-in-a-dockerized-flask-or-django-app
https://nickjanetakis.com/blog/switching-pip-to-uv-in-a-dockerized-flask-or-django-app
Nick Janetakis
Switching pip to uv in a Dockerized Flask / Django App — Nick Janetakis
I noticed about a 10x speed up across a number of projects, we'll avoid using a venv and run things as a non-root user too.