python

Back Open Paginator
21.01.2025 03:00
hn50 (@hn50@social.lansky.name)

Ruff: Python linter and code formatter written in Rust

Link: github.com/astral-sh/ruff
Discussion: news.ycombinator.com/item?id=4

#rust #python




Show Original Post


21.01.2025 02:23
python_discussions (@python_discussions@mastodon.social)

Magnetron is a minimalist machine learning framework built entirely from scratch.

github.com/MarioSieg/magnetron

Discussions: discu.eu/q/https://github.com/




Show Original Post


21.01.2025 02:21
danwald (@danwald@techhub.social)

Dependent breaking pytest's

blog.danwald.me/dependent-brea

#python #pytest




Show Original Post


21.01.2025 02:18
GripNews (@GripNews@mastodon.social)

🌘 GitHub - astral-sh/ruff: 一個以 Rust 編寫的極速 Python 程式碼檢查器與格式化工具
➤ 一個極速的程式碼檢查與格式化解決方案
github.com/astral-sh/ruff
Ruff 是一個極速的 Python 程式碼檢查器和格式化工具,使用 Rust 編寫,速度比現有工具如 Flake8 和 Black 快 10-100 倍,支援多種功能並具備內建快取與錯誤修正能力。
+ 這個工具看起來非常值得一試,尤其是快速檢查大量代碼的時候!
+ 速度如此驚人,真是程式開發中的一大突破!
開發工具




Show Original Post


21.01.2025 02:12
diazona (@diazona@techhub.social)

@barefootstache Yeah the #Python ecosystem has a bunch of options for development tools that do various things. pyenv, venv, and virtualenv in particular are not at all meant to do the same thing as Poetry. The closest equivalents to Poetry are things like hatch, flit, and pdm, and kind of uv as well, although it's a little complicated because Poetry does several different things and I don't believe any of those tools are an exact equivalent for all of the things Poetry does.

You might find this an interesting read: alpopkes.com/posts/python/pack
The landscape of packaging tools has changed somewhat since then, e.g. rye has been absorbed into uv, but I think most of it is still fairly accurate. And the point of reading this is not so much to understand which specific tool does what, it's to understand the different tasks that Python has tools for and how you can cover them using one tool or multiple different tools working together, whatever you like.




Show Original Post


21.01.2025 01:54
sekurakbot (@sekurakbot@mastodon.com.pl)

Atak na łańcuch dostaw – na celowniku pakiet Pythona i serwery Discord

Badacze z firmy Socket opisali analizę złośliwego pakiet PyPI, który na celownik wziął programistów i twórców botów wykorzystujących Pythona do integracji z Discord. Pakiet o nazwie pycord-self imitował istniejący prawdziwy pakiet discord.py-self. Złośliwy odpowiednik pojawił się w czerwcu 2024 i został od tego czasu pobrany blisko 900 razy. TLDR: Autorzy złośliwego pakietu zadbali...

#WBiegu #Discord #Pypi #Python #Supplychain

sekurak.pl/atak-na-lancuch-dos




Show Original Post


21.01.2025 01:39
barefootstache (@barefootstache@qoto.org)

After programming a good 2 months in #python finally found the tool #poetry which is quite similar to how #nodejs bundles libraries into a directory either locally or globally in the cache directory.

I have tried the other tools from #pyenv to #venv and/or #virtualenv. Where I thought they were used to deal with library dependency management only to realize that they are more like #nvm.

I did use #conda for some time, though preferred a python only solution. I do realize that poetry won't resolve all issues and might need to look into to containerization later on, though for the time period it looks like a good solution.




Show Original Post


21.01.2025 01:03
adamchainz (@adamchainz@fosstodon.org)

I just enjoyed this design patterns tour from brandon_rhodes@mastodon.social. It gives a modern view of all 23 patterns from the original 1994 book.

#Python

youtube.com/watch?v=pGq7Cr2ekV




Show Original Post


20.01.2025 23:53
villares (@villares@ciberlandia.pt)

The problem is I want to "have my cake and eat it too". I want to pip install a package that will copy a .jar file for my students (yeah I know, a Java file...) but I don't want to deal with packaging and maintaining the thing on PyPI 🤷‍♂️#Python (you can use some Java libraries made for #Processing with #py5)




Show Original Post


20.01.2025 23:45
peterdrake (@peterdrake@mstdn.social)

Burned at least an hour I didn't have trying to get tkinter to run inside PyCharm.

What eventually worked: uninstall the flatpak version of PyCharm that Ubuntu's default "software" app offers and get one directly from JetBrains.

Once again, all computer problems are solved with some variant of "turn it off and back on again".

#python #tkinter #pycharm #ubuntu




Show Original Post


20.01.2025 23:39
TechKeysX (@TechKeysX@mastodon.social)

Python Implicit Int and Float Data Type Conversion





Show Original Post


20.01.2025 22:51
oliverandrich (@oliverandrich@social.tchncs.de)

Ideas how to support Tailwind CSS 4.x in django-tailwind-cli:

andrich.me/2025/01/20/ideas-ho

#python #django




Show Original Post


1 2 3 4 5 6 7 ...845
UP