python

Back Open Paginator
06.01.2026 17:02
habr (@habr@zhub.link)

FastAPI: 5 практичных архитектурных решений, о которых я пожалел, что не узнал раньше

Привет, Хабр! Когда начинаешь новый проект на FastAPI, всё кажется простым: пара моделей Pydantic, несколько эндпоинтов — и готово. Но через полгода и 20 000 строк кода оказывается, что базовая валидация размазана по всему приложению, бизнес-логика перемешана с обращениями к БД, а тесты пишутся со скрипом. Сегодня я хочу поделиться конкретными архитектурными паттернами и приёмами , которые я неоднократно использовал в своих проектах. Они не усложняют простые задачи, но делают жизнь в долгосрочной перспективе несоизмеримо легче.

habr.com/ru/articles/983254/

#backend #python #FastAPI #sqlalchemy #Redis




Show Original Post


06.01.2026 17:02
Reuven (@Reuven@fosstodon.org)

"round" rounds #Python numbers:

round(1.3) # 1
round(1.6) # 2
round(1.61, 1) # 1.6
round(1.66, 1) # 1.7

Remember, .5 goes to the nearest *even* value:

round(1.5) # 2
round(2.5) # 2, yes 2! 🤯
round(3.5) # 4
round(1.65, 1) # 1.6
round(2.65, 1) # 2.6 🤯
round(3.65, 1) # 3.6




Show Original Post


06.01.2026 17:01
PythonPeak (@PythonPeak@mastodon.social)

Permission Denied Error

A Python developer conversation about permission denied error

youtube.com/watch?v=V-bx5BNxe9E




Show Original Post


06.01.2026 16:46
djangocon (@djangocon@fosstodon.org)

🚀 The DjangoCon US 2026 CFP is OPEN!
We’re heading BACK to Chicago and looking for talks from all experience levels.
Got an idea about Django, Python, or the web? We want to hear it!
👉 Submit here: pretalx.com/djangocon-us-2026/

#DjangoConUS #Django #Python





Show Original Post


06.01.2026 16:39
aidailypost (@aidailypost@mastodon.social)

Gradio now auto‑creates a text input, submit button, and output from a simple spec—no extra code. It speeds up Python interface building for text, images, audio or sliders, keeping projects open‑source friendly. Check out the KDnuggets deep dive to see how you can prototype faster.

🔗 aidailypost.com/news/gradio-au





Show Original Post


06.01.2026 16:20
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

**Bài viết Mastodon:**

Phần 3: Chuẩn bị tài nguyên game 2D với Pyxel! 🚀
Hướng dẫn sử dụng Pyxel Editor để quản lý assets (2 tàu vũ trụ, 6 thiên thạch, 2 booster). Sau khi tạo file .pyxres, load vào game bằng `pyxel.load` và hiển thị sprite với `pyxel.blt`. Minh họa vẽ vật thể tại tọa độ chỉ định.

#Pyxel #GameDev #Python #Tutorial
#LapTrinhGame #HuongDanPython #PyxelEditor

dev.to/sdkfz181tiger/getting-s




Show Original Post


06.01.2026 15:38
towardsdatascience (@towardsdatascience@hachyderm.io)

Learn how to speed up your CPU-intensive #Python code by 10x with just four lines of code. Tom Reid walks you through using the Ray library to parallelize programs on your local multi-core machine.

towardsdatascience.com/ray-dis




Show Original Post


06.01.2026 15:27
bethflint (@bethflint@genomic.social)

Ensembl is hiring!!

We are on the lookout for a Senior Platform Developer to join our team.

“In this role, you will help shape the Ensembl platform’s technical direction, applying your expertise to build reliable, scalable systems and guide best practices across teams.”

Based in South Cambridgeshire, UK

Please boost or apply!

embl.wd103.myworkdayjobs.com/e

#jobs #getFediHired #python #devops #science




Show Original Post


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

🚀 Tôi đã xây dựng SmartML để giải quyết các thách thức trong benchmark ML/DL:
- Tiền xử lý không đồng nhất
- Rò rỉ dữ liệu
- Môi trường DL không ổn định

🌱 SmartML đảm bảo:
- Benchmark công bằng & tái lặp được
- Seed cố định, chia dữ liệu minh bạch
- Hỗ trợ ML cổ điển & DL
- Kiểm tra model khả dụng qua SmartML_Inspect()

🔧 Không phải AutoML, chỉ tập trung vào benchmark đáng tin cậy. Cài đặt: `pip install smarteco`

#MachineLearning #Benchmark #AI #Python
#HọcMáy #ĐánhGiá




Show Original Post


06.01.2026 15:02
ramikrispin (@ramikrispin@mstdn.social)

Automate Change Point Detection in Time Series 📈

Change points in trends matter—a lot. Get them wrong, and your forecast doesn’t stand a chance.

In my latest post for The Forecaster, I show how to automate trend change point detection using piecewise regression and grid search, with full examples in R and Python.

🔗 theforecaster.substack.com/p/a

#Rstats #Python #timeseries #forecasting #DataScience





Show Original Post


06.01.2026 14:56
feed (@feed@feedsin.space)

PEP 820: PySlot: Unified slot system for the C API

Replace type and module slots with a new, more type-safe structure that allows adding new slots in a more forward-compatible way.

python




Show Original Post


06.01.2026 14:44
isazajuancarlos (@isazajuancarlos@mastodon.social)

Impulsa tu empresa con soluciones innovadoras en tecnología y legalidad. Soy abogado y programador experto en Python/NiceGUI. Juntos, llevaremos tus proyectos al siguiente nivel.

🔗 xiliux.com





Show Original Post


1 2 3 4 5 6 7 8 9 ...878
UP