python

Back Open Paginator
03.03.2026 08:12
habr (@habr@zhub.link)

Я сделал Telegram-бота, который собирает корзину в ВкусВилл по одному сообщению. Вот как это работает

Каждую неделю я трачу 15-20 минут на заказ продуктов во «ВкусВилл». Сценарий обычно один и тот же: открыть каталог, найти молоко среди 15 похожих карточек, добавить, искать хлеб, сомневаться между бородинским и чиабаттой, снова добавить, потом сыр, потом что-то к чаю. К пятой позиции я уже не уверен, кто тут клиент: я или бесконечная лента товаров. В какой-то момент поймал себя на мысли: я трачу больше времени на поиск гречки, чем гречка потом варится. По данным Platforma (2021), россияне в среднем проводят от 19 до 49 минут в месяц на выбор продуктов онлайн с мобильного (жители Москвы — в 2,5 раза больше). При этом 65% покупателей называют экономию времени главной причиной онлайн-покупки продуктов (РБК, 2022) - данные несколько устаревшие, но все же. Парадокс понятный: мы идём в онлайн, чтобы сэкономить время, и там же это время сливаем в рутину. Я решил проверить простую гипотезу: если человек обычно заказывает одно и то же, можно ли собрать корзину по одной фразе вроде: > «Собери завтрак на двоих» Спойлер: можно. Я сделал Telegram-бота, который понимает обычный язык, сам ищет товары в каталоге «ВкусВилл» и отдаёт готовую ссылку на корзину. > Дисклеймер: это личный open-source проект. Я не связан с компаниями ВкусВилл или Яндекс. Бот использует публичный API ВкусВилл и Yandex Cloud AI Studio на общих условиях. Код доступен на GitHub под лицензией Apache 2.0. Кому будет полезно: разработчикам, которые думают о ботах с ИИ; тем, кто хочет разобраться в function calling или MCP; и всем, кому интересно, как LLM может автоматизировать рутину. Как «угнать за 60 секунд» завтрак

habr.com/ru/articles/1000734/

#mcp #telegrambot #python #aiogram #functioncalling #owen #вкусвилл




Show Original Post


03.03.2026 07:46
Python4DataScience (@Python4DataScience@mastodon.social)

… and now we have also moved the pytest configuration to the pyproject.toml file: python-basics-tutorial.readthe




Show Original Post


03.03.2026 07:07
tinoeberl (@tinoeberl@mastodon.online)

#Steady #Klimacrew

Wie lassen sich #Wechselrichterdaten vom APsystems EZ1 lokal speichern?

Für statistische Auswertungen müssen alle Daten kontinuierlich gespeichert werden. Wie das mithilfe von #Python und Vibe Coding mit diesem #Wechselrichter funktioniert, erfahrt Ihr in diesem Artikel. Als smarter Datensammler im #WLAN-Netzwerk dient ein #Raspberry Pi 4.

tino-eberl.de/vibe-coding/ez1-

#Wechselrichter #RaspberryPi #PythonSkript #SmartHome #Datenanalyse #VibeCoding




Show Original Post


03.03.2026 06:51
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Guido van Rossum Interviews Thomas Wouters (Python Core Dev)

gvanrossum.github.io/interview

#github #python




Show Original Post


03.03.2026 06:41
keira_reckons (@keira_reckons@aus.social)

My partner is looking for work. I'd appreciate boosts.

He's looking to move into #appsec, but will accept short #webdev or #devops contracts (<12 months). Location: Melbourne Australia, or remote. For a short enough contract he'd go anywhere though.

He's a senior full stack web dev (Linux/python/django/js/elm, ~12 years).

Experienced in dev ops, dev sec ops and automation (ansible, selenium, etc etc).

He has experience with OWASP ZAP, bandit and Snyk, and is part way through the PortSwigger academy.

FOSS contributions include writing a django authentication function for OWASP ZAP, making a wrapper to improve accessibility and usability for selenium (Elemental), and other bits and bobs.

He isn't on any socials, but if you want to get in touch I can share his email or signal ID (or give him yours).

He and I have been the security people for little apps without any dedicated security team, for the last decade or so. If you're in security you might have met him (or me) at conferences (Disobey, BSides, CCC, Defcon and Ruxmon), because we've been attending since we launched our own app in 2014, picking up everything we can to protect our users.

(Yep, he is aware a move to security from senior dev roles will be a step down in seniority and $. He just really likes security.)

#python #fedihired #getfedihired #jobs #cyber




Show Original Post


03.03.2026 06:14
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 6 Part 4 - Your First Steps - Concatenation and f Strings - in Python





Show Original Post


03.03.2026 06:12
habr (@habr@zhub.link)

Часть 3: Архитектура нейросети для распознавания голосовых команд

def get_features_all(y, sr): """ Получаем различные параметры аудио которые в сумме дадут уникальный набор признаков """ # Частота цветности chst = librosa.feature.chroma_stft(y=y, sr=sr) # Среднеквадратичные колебания (энергия сигнала) rmse = librosa.feature.rms(y=y) # Пересечения нуля (частота смены знака сигнала) zcr = librosa.feature.zero_crossing_rate(y) # Центр масс звука (спектральный центр) spe_c = librosa.feature.spectral_centroid(y=y, sr=sr) # Ширина полосы частот spe_b = librosa.feature.spectral_bandwidth(y=y, sr=sr) # Спектральный спад частоты rol = librosa.feature.spectral_rolloff(y=y, sr=sr) # Значимые для обработки частоты (MFCC) mfcc = librosa.feature.mfcc(y=y, sr=SR, n_mfcc=50, n_mels=50, hop_length=1024) return chst, rmse, zcr, spe_c, spe_b, rol, mfcc

habr.com/ru/articles/1005320/

#искусственный_интеллект #исследование #исходный_код #нейронные_сети #CNN #распознавание_голоса #обработка_аудио #умный_дом #Python #MFCC




Show Original Post


03.03.2026 05:54
stib (@stib@aus.social)

*beads of sweat foming on my brow, teeth clenched with the effort* Must … not … fiddle with python scripts for Krita because something is annoying me while I'm working on a rather time crunched project.
The best thing about open source software like Krita is that it's relatively easy to pop the lid, look inside and tinker with the works if something doesn't suit you. Also the worst thing about open source software is that it's relatively easy to pop the lid, look inside and tinker with the works if something doesn't suit you.
#Krita #FOSS #python




Show Original Post


03.03.2026 04:10
lobsters (@lobsters@mastodon.social)

PEP 827 – Type Manipulation lobste.rs/s/bkfg6b
peps.python.org/pep-0827/




Show Original Post


03.03.2026 04:09
treyhunner (@treyhunner@mastodon.social)

Python Tip #61 (of 365):

When passing the same object(s) to different functions, consider a class.

Compare this code:

server = get_connection(host, username, password)
messages = [
get_message(server, u)
for u in get_message_uids(server)
]
close_connection(server)

To this:

server = IMAPChecker(host)
server.authenticate(username, password)
messages = [
server.get_message(u)
for u in server.get_message_uids()
]
server.quit()

🧵 (1/2)




Show Original Post


03.03.2026 03:34
feed (@feed@igeek.gamer-geek-news.com)

🤖 Warning: Trae IDE's New Token Pricing Destroyed My Workflow Overnight – Don't Get Caught Off Guard

Hey everyone, I've been a Trae IDE user for over a year now, relying on it for custom agents, coding (PHP, Python, JS, etc.), and even casual sanity-keeping chats. The old Pro plan ($10/mo) gave me...

📰 Source: Artificial Intelligence (AI)
🔗 Link: https://www.reddit.com/r/artificial/comments/1rjd7dy/warning_trae_ides_new_token_pricing_destroyed_my/

#Python




Show Original Post


03.03.2026 01:08
jemonat (@jemonat@fosstodon.org)

New Blog Post: Prioritizing Drug-Like 💊 ChEMBL Compounds Within Target 🎯 Profiles

In this post, I go through how to use the #Python #ChEMBL #API and #SQLite to:
• Retrieve compound and target activity data programmatically
• Build a local database of molecules and their associated targets
• Rank compounds based on Lipinski Rule of Five violations

Read it at bertiewooster.github.io/2026/0. Marimo and Jupyter notebooks too!

#cheminformatics #drugDiscovery #chemistry #medChem #medicinalChemistry




Show Original Post


1 ...393 394 395 396 397 398 399 400 401 402 403 ...1592
UP