python

Back Open Paginator
06.08.2025 18:02
habr (@habr@zhub.link)

Как я писал тусобота на Python: от идеи к работающему коду

Нейропомощников появилось превеликое множество и применение у них самое разное. Повсеместно начинаю замечать, что многие коллеги и друзья, так или иначе, пользуются текстовыми помощниками. Мне захотелось не просто рассмотреть эти технологии, но и сделать что-то полезное для себя — чтобы помогало в повседневной жизни. Меня зовут Михаил — я разработчик компании БАРС Груп. В этой статье расскажу, как родилась идея бота для поиска тусовок в городах России, с какими проблемами я столкнулся и к чему пришел.

habr.com/ru/companies/barsgrou

#боты_для_мессенджеров #мессенджеры #программирование #python




Show Original Post


06.08.2025 17:44
bruno (@bruno@go.rocha.social)

Marmite! The static blog generator written in #Rust is now available on the #Python Package Index.

https://pypi.org/project/marmite/

pip install marmite

or uvx marmite will get you a full feature blog with zero config required!

#rustlang #rust #python




Show Original Post


06.08.2025 17:28
ml (@ml@mitexleo.one)

I think I will just turn off code suggestions in Zed. It's becoming pretty annoying!

#ai #coding #zededitor #zed #golang #python #llm




Show Original Post


06.08.2025 17:05
sloanlance (@sloanlance@mastodon.social)

When I want a puzzle, I go to HackerRank, LeetCode, etc. I try to solve them relatively compactly…

```
import string, sys
print(*list(map(lambda u: 'Valid' if (len((u := set(u.strip())) & alphanum) == 10 and len(u & upper) >= 2 and len(u & digit) >= 3) else 'Invalid', [(upper := set(string.ascii_uppercase)), (digit := set(string.digits)), (alphanum := set(string.ascii_letters + string.digits)), (N := int(input())), sys.stdin.readlines()[:N]][-1])), sep='\n')
```




Show Original Post


06.08.2025 17:00
Reuven (@Reuven@fosstodon.org)

Last week's US jobs report significantly reduced the estimates from previous months, leading to the firing of the head statistician.

In the latest Bamboo Weekly, we examine the government's data, calculating these changes ourselves. Were these the biggest-ever downward revisions?

Improve your #Python #Pandas skills every Wednesday with new, real-world data-analysis problems: BambooWeekly.com





Show Original Post


06.08.2025 16:48
scy (@scy@chaos.social)

Nice idea. Easily create HTML from Python code with htpy.dev

The one thing I don't like about it is that it doesn't generate XHTML, i.e. no self-closing tags and stuff. Not sure whether that's a dealbreaker for me or whether I should just finally stop my 2000s webdev attitude.

#Python #HTML #WebDev #htpy





Show Original Post


06.08.2025 16:38
brianokken (@brianokken@fosstodon.org)

pytest fixtures nuts and bolts - revisited
pythontest.com/pytest-fixtures
A series on pytest fixtures gets an update
- posts split into one concept each
- made sure all of the info was correct for modern versions of Python and pytest
- examples reran to make sure output is correct
#Python #pytest




Show Original Post


06.08.2025 16:31
darksideofyogurt (@darksideofyogurt@livellosegreto.it)

Nuovo passo per l'epopea "connessione SFTP via python".
Ho correttamente caricato un file (e segnalato via mail la cosa per evitare casini), ora devo capire come impostare il tutto per metterlo in produzione al posto di quello schifo in powershell che si rifiuta di loggare alcunché.

#python




Show Original Post


06.08.2025 15:33
bterwijn (@bterwijn@fosstodon.org)

Understanding and debugging Data Structures is easier when you can see the structure of your data using memory_graph: github.com/bterwijn/memory_gra

Here we show values being added to a Linked List in Cursor AI. When adding the last value '5' we "Step Into" the code to show more of the details: raw.githubusercontent.com/bter

🎥 See the Quick Intro video for the VS Code integration: youtu.be/23_bHcr7hqo

#Python #LinkedList #DataStructure #memory_graph #debug





Show Original Post


06.08.2025 15:28
jatkinson1000 (@jatkinson1000@hachyderm.io)

Unoptimised order of events:

1. Write clever #python util to transpose csv output of a command line program.
2. Read man mages for said program to solve unrelated problem.
3. Spot that program has optional argument `--transpose`.

🙃




Show Original Post


06.08.2025 15:17
webology (@webology@mastodon.social)

Kudos for the communication work that @riecatnor is doing for the PSF and community. Not all posts are fun or easy to write, and it speaks volumes to put your name on it. Thank you!




Show Original Post


06.08.2025 15:14
cusy (@cusy@mastodon.social)

Today, we took a closer look at the new OpenAI models and training methods. They seem promising, but their local use still needs to prove itself: cusy.io/en/blog/openai-open-we




Show Original Post


1 ...1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 ...1546
UP