FastAPI: 5 практичных архитектурных решений, о которых я пожалел, что не узнал раньше
Привет, Хабр! Когда начинаешь новый проект на FastAPI, всё кажется простым: пара моделей Pydantic, несколько эндпоинтов — и готово. Но через полгода и 20 000 строк кода оказывается, что базовая валидация размазана по всему приложению, бизнес-логика перемешана с обращениями к БД, а тесты пишутся со скрипом. Сегодня я хочу поделиться конкретными архитектурными паттернами и приёмами , которые я неоднократно использовал в своих проектах. Они не усложняют простые задачи, но делают жизнь в долгосрочной перспективе несоизмеримо легче.
https://habr.com/ru/articles/983254/
#backend #python #FastAPI #sqlalchemy #Redis
"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
Permission Denied Error
A Python developer conversation about permission denied error
#python #coding #developer #programming #bug #error
https://www.youtube.com/watch?v=V-bx5BNxe9E
🚀 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: https://pretalx.com/djangocon-us-2026/cfp

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. #Gradio #Python #KDnuggets #Interface
🔗 https://aidailypost.com/news/gradio-autocreates-text-input-submit-button-output-from-spec

**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
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.
https://towardsdatascience.com/ray-distributed-computing-for-all-part-1/
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!
#jobs #getFediHired #python #devops #science
🚀 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á
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.
🔗 https://theforecaster.substack.com/p/automatic-trend-change-point-detection
#Rstats #Python #timeseries #forecasting #DataScience
PEP 820: PySlot: Unified slot system for the C API
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. #LegalTech #Python #Xiliux
