this post was submitted on 08 Jul 2024
74 points (93.0% liked)

Python

6422 readers
46 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
[โ€“] thesporkeffect 4 points 4 months ago (1 children)

Rye

By the creator of Flask and many other things

[โ€“] [email protected] 2 points 4 months ago* (last edited 4 months ago)

It comes with built-in ruff and uv, and can handle Python versioning for you!

Not sure if they want to eventually dissolve Rye into uv or what, but for now it's one of the best (better than Poetry, IMO)

edit: it also uses the pypoetry.toml standard, something Poetry doesn't (because Poetry predates pyproject.toml becoming a standard).

One possible downside: I've heard Rye doesn't honor XDG, which means it has its own location for its config. I don't mind, but perhaps you do.

A second possible downside is that Rye doesn't let you centralize your venvs, so each .venv goes into each project folder, so no using virtualenvwrapper with workon to jump between projects. zoxide can alleviate that problem, or presuming you have a ~/dev folder or similar, you could write a bash function that ls' that folder and lets you select a folder via fzf? Go ask ChatGPT about it or something.

edit2: link: https://rye.astral.sh/guide/installation/