this post was submitted on 02 Nov 2024
268 points (98.2% liked)

Python

6400 readers
9 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] anticurrent 6 points 2 weeks ago (2 children)

Every time I open a js file from some project I have to tweak to use on my website, I get a brain aneurysm. that shit should never have been invented. python in the browser is the dream we are not allowed to have.

ps: I am just a hobbyist ! so take it lightly.

[–] [email protected] 11 points 2 weeks ago (2 children)

Idk, my only experience with python is that any app written in it doesn't fucking work, throwing some esoteric error that has nothing to do with the error at hand and then me needing to look up what unholy specific version I need and manually setting up an environment for it. I dread the day when I'll want to try some random project and yet again the only way to run it will be some shady ass python script.

JS is pure crack and has no right being the backbone of the web, but python is borderline unusable in my experience.

[–] [email protected] 3 points 2 weeks ago

I avoid anything written in Python. It's not the language at fault it's the ease of entry so you get a lot of low quality software.

[–] [email protected] 1 points 2 weeks ago (1 children)

U are not wrong.

Dependency management is tough and often frustrating. Dealing with resolving dependency conflicts is unavoidable. This area is a constant focus of development, so could see improvements over time.

Some packages to keep an eye on:

pip & setuptools

pip-tools (specifically pip-compile)

https://pypi.org/project/pip-compile-multi/

poetry

Any others i've missed?

[–] [email protected] 1 points 2 weeks ago

The new king on the block: uv. It can do everything poetry does, while also using a standard pyproject.toml (no more weird ^), and it'll handle the Python version for you, so no faffing about with manually installing anything. Just uv sync and off you go!

Downside: not compatible with virtualenvwrapper, as it'll force its .venv in the local folder.

It's also still under heavy development and breaking changes are still expected, but it's already super nice to use.

Same guys (Astral) also made ruff the formatter/linter that they intend to eventually integrate into uv, IIRC.

I'm running all my personal projects under uv and am having a blast. It's so fast.

[–] [email protected] 7 points 2 weeks ago (2 children)

Somebody should write a python to javascript transpiler for the web...

(please don't actually do that)

[–] [email protected] 12 points 2 weeks ago (2 children)

There's a Python WASM runtime, if you really want to run python in a browser for some reason...

https://github.com/wasmerio/wasmer-python

[–] [email protected] 3 points 2 weeks ago

Ooh, neat. There's also puepy, which was linked further down in this thread. It's really cool to see more WASM projects pop up.

[–] [email protected] 1 points 2 weeks ago (2 children)

Wasm feels like yet another bloat layer on top of the existing web mess :((

[–] [email protected] 6 points 2 weeks ago

at least it's not on top of js!

[–] [email protected] 1 points 2 weeks ago

At least until it gets direct dom manipulation and multithreading...