python

Back Open Paginator
22.12.2025 20:36
RodStephens (@RodStephens@hachyderm.io)

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





Show Original Post


22.12.2025 20:02
habr (@habr@zhub.link)

Сравнил тоже! Нашел на Python разницу между «Бородино» и «Ледовым побоищем»

С помощью предобученной мультиязычной модели LaBSE и методов снижения размерности выяснил, что поэмы Лермонтова и Симонова, несмотря на столетнюю дистанцию, семантически близки. Подтвердил гипотезу, что русская патриотическая поэзия сохраняет устойчивое смысловое ядро, даже когда меняется стиль и идеология.

habr.com/ru/articles/979488/

#python #transformers #nlp #nltk #scikitlearn #нейросети #huggingface #torch #литература #поэзия




Show Original Post


22.12.2025 19:17
mertssmnoglu (@mertssmnoglu@mastodon.social)

The most challenging topic for me was package imports. Thank you

What's a Python Namespace Package, and What's It For? realpython.com/python-namespac




Show Original Post


22.12.2025 19:14
AlbertDavid (@AlbertDavid@mastodon.social)

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.


medium.com/@AlbertoSC24/speed-




Show Original Post


22.12.2025 18:50
zumuta (@zumuta@mastodon-belgium.be)

This week at Zumuta! zumuta.be/thisweek/week-2025-1
Fighting with access tokens and cookies in FastAPI #python that are used in TemplateResponse and REST API's.




Show Original Post


22.12.2025 18:15
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

Đườ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)"
```

dev.to/nazanin_ashrafi/windows




Show Original Post


22.12.2025 18:02
hunleyd (@hunleyd@fosstodon.org)

How to use #UUIDv7 in #Python, #Django and #PostgreSQL paulox.net/2025/11/14/how-to-u




Show Original Post


22.12.2025 17:42
habr (@habr@zhub.link)

DDD на пальцах: как перестать проектировать таблицы и начать думать о бизнесе

Привет, Хабр! Cегодня я хочу поговорить о самом непонятном и переоцененном термине в мире архитектуры — Domain-Driven Design (DDD). Я объясню его так, чтобы стало понятно даже джуну, и покажу на реальных примерах, чем он отличается от других подходов.

habr.com/ru/articles/979450/

#ddd #systemdesign #Python #sql #API #Backend #backendразработка




Show Original Post


22.12.2025 17:42
senil (@senil@gts.social.senil.me)

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.

#MorshuTalk_v2 #Python




Show Original Post


22.12.2025 17:32
borutzki (@borutzki@mastodon.social)

Out of nowhere I decided to describe briefly my approach to reuse model_validator (and any other validator) across multiple models.

Code snippet from image should do the job, full context is in the linked blog post.

borutzki.github.io/2025/12/22/





Show Original Post


22.12.2025 17:00
PythonPeak (@PythonPeak@mastodon.social)

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.

...

youtube.com/watch?v=FHO97aHyjuc




Show Original Post


22.12.2025 16:52
villares (@villares@pynews.com.br)

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: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding





Show Original Post


1 ...778 779 780 781 782 783 784 785 786 787 788 ...1578
UP