Use a color matrix to remove red, green, and blue color components from images in Python
https://rodstephensbooks.com/image_filters_v5.html
#Python #ImageProcessing #PIL #SepiaTone #Sepia

Сравнил тоже! Нашел на Python разницу между «Бородино» и «Ледовым побоищем»
С помощью предобученной мультиязычной модели LaBSE и методов снижения размерности выяснил, что поэмы Лермонтова и Симонова, несмотря на столетнюю дистанцию, семантически близки. Подтвердил гипотезу, что русская патриотическая поэзия сохраняет устойчивое смысловое ядро, даже когда меняется стиль и идеология.
https://habr.com/ru/articles/979488/
#python #transformers #nlp #nltk #scikitlearn #нейросети #huggingface #torch #литература #поэзия
The most challenging topic for me was #Python package imports. Thank you #RealPython
What's a Python Namespace Package, and What's It For? https://realpython.com/python-namespace-package/
Speed or Power? With Django, you don’t have to choose. 🚀
Albert David
2 min read
Just now
While Django is famous for getting projects up and running in minutes, its real strength lies in its “batteries-included” philosophy. It provides a stable, scalable foundation for professional-grade web development.
#Django #Python #WebDevelopment #Backend
https://medium.com/@AlbertoSC24/speed-or-power-with-django-you-dont-have-to-choose-93328d08d47e
This week at Zumuta! https://www.zumuta.be/thisweek/week-2025-12-22/
Fighting with access tokens and cookies in FastAPI #python that are used in TemplateResponse and REST API's.
Đường dẫn Windows có khoảng trắng gây lỗi trong Python? 🐍 Sử dụng `r` trước chuỗi hoặc `\\` để thoát backslash là cách giải quyết. Lập trình viên Python lưu ý ngay nhé!
#Python #Programming #Coding #PythonTips #LapTrinh
Code mẫu:
```python
import os
# Cách 1: Dùng r
path = r"F:\python\New folder (2)"
# Cách 2: Thoát backslash
path_escaped = "F:\\python\\New folder (2)"
```
https://dev.to/nazanin_ashrafi/windows-paths-with-spaces-in-pythons-os-2kl4
How to use #UUIDv7 in #Python, #Django and #PostgreSQL https://www.paulox.net/2025/11/14/how-to-use-uuidv7-in-python-django-and-postgresql/
DDD на пальцах: как перестать проектировать таблицы и начать думать о бизнесе
Привет, Хабр! Cегодня я хочу поговорить о самом непонятном и переоцененном термине в мире архитектуры — Domain-Driven Design (DDD). Я объясню его так, чтобы стало понятно даже джуну, и покажу на реальных примерах, чем он отличается от других подходов.
https://habr.com/ru/articles/979450/
#ddd #systemdesign #Python #sql #API #Backend #backendразработка
Content warning:re: morshutalk-v2 dev thread
Today's goal is to figure out audio transcoding in Python so I can always have this thing output a smaller file for uploading elsewhere. I don't want to rely on subprocess because that makes things too OS-specific (I at least want to know this works on Windows and Linux) and I don't want to deal with any kind of external calls that I can't guarantee will stay the same between systems or (major) versions.
I at least want to be able to output to one other audio format - and if I can get away with feeding the encoder the bytearray (and thus not writing a wav file), even better. Target bitrate is going to be "good enough for speech" (so Low) and sample rate is going to also be "good enough for speech" (still low).
I did wonder if it'd be possible to use a different bit-depth, but after digging into things yesterday it looks like Python doesn't like that - unless I went from 16-bit to 32-bit, but that's way more than I need and thus a much larger file than warranted.
Anyways. Y'all will find out what ends up happening today.
Out of nowhere I decided to describe briefly my approach to reuse model_validator (and any other validator) across multiple #Pydantic models.
Code snippet from image should do the job, full context is in the linked blog post.
#Python #DailyPythonista #programming

This Python Move Crushes Demo Compare Transpose Matrix
This Python Move Crushes Demo Compare Transpose Matrix This content explores interesting aspects of this topic. The information provided offers valuable insights and perspectives. Understanding this reveals how everyday things are more thoughtful than they appear. Next time you'll notice this detail. This fascinating detail shows how much thought goes into things we take for granted.
#python ...
https://www.youtube.com/watch?v=FHO97aHyjuc
I still have to work out what I want to do with the overlapping path edges... While I don't, moving a bit on Z gives a cool result and avoids the flickering superposition of edges. Find the sketch-a-day archives and tip jar at: https://abav.lugaralgum.com/sketch-a-day
Code for this sketch at: https://github.com/villares/sketch-a-day/tree/main/2025/sketch_2025_12_22 #Processing #Python #py5 #CreativeCoding