love uv, quickly generate a bcrypt password on the command line
uv run --with bcrypt python -c "import bcrypt; print(bcrypt.hashpw(b'your_password_here', bcrypt.gensalt()).decode('utf-8'))"
Wrote a little piece about using UV on Fedora Linux, for handling many tasks like installing common tools to managing your own projects dependencies.
https://fedoramagazine.org/enhancing-your-python-workflow-with-uv-on-fedora/
- https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment/
Sharing single-file Python scripts with external dependencies is now easy thanks to uv and PEP 723, which enable embedding dependency metadata directly within scripts. This approach eliminates the need for complex setup tools like requirements.txt or package managers, making script distribution and execution seamless and simplifying deployment while maintaining flexibility and efficiency.
I'm in love with uv. Seriously, the tool is small yet packs a punch with features.
I'm writing an article for Fedora Magazine about the cool things you can do with uv, here is the source code (with the article in markdown) for your enjoyment:
https://github.com/josevnz/tutorials/tree/main/docs/Enhancing_Your_Python_Workflow_with_UV_on_Fedora
Exploring UV: self-contained Python scripts made easy
https://hleb.dev/post/exploring-uv/
"Share Python Scripts Like a Pro: uv and PEP 723 for Easy Deployment"
https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment/
Single file #python scripts with inline dependency meta data - #uv ftw
https://thisdavej.com/share-python-scripts-like-a-pro-uv-and-pep-723-for-easy-deployment/
Initially, I was using #Tify, which looks nice and was easy enough. But it doesn’t seem to support continuous display. I tried #UV #UniversalViewer as well, but it also seems to ignore the behavior. #Mirador, otoh, actually does what I want (yay!), but it feel more like embedding an application into my page rather than a simple viewer component (and it ignores sizing of the container).
Pythonの開発用適当ツールの作成・実行はuvを使うのがオススメ
https://qiita.com/ssc-ksaitou/items/9da75058489ebe8c2009?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
Porównajmy backendy #PEP517 dla paczek napisanych w samym Pythonie:
#flit-core: 51 KiB archiwum źródłowe, bez zależności, instaluje się 0,05 s, ~150 KiB po zainstalowaniu, działa wszedzie
#UvBuild: 300 KiB archiwum, wymaga ~250 zależności crate (54 MiB pobierania, ~600 MiB w .cargo), buduje się 1 min 20 s (na 12-wątkowym procesorze), 4,2 MiB po zainstalowaniu, wspiera kilkanaście platform
I oczywiście, że flit-core ma szerszą funkcjonalność. Ale jestem przekonany, że gdzieś ktoś potrzebuje zaoszczędzić te kilka milisekund budowania paczek Pythona.
Let's compare #PEP517 backends for pure #Python packages:
#flit-core: 51 KiB sdist, no dependencies, 0.05 s to install, ~150 KiB after installing, works everywhere
#UvBuild: 300 KiB sdist, requires ~250 crates (54 MiB download, ~600 MiB .cargo directory), 1 min 20 s to install (on a 12-thread system), 4.2 MiB after installing, supports a dozen platforms
And yes, you guessed right, flit-core has more functionality. But I'm sure that there are performance-critical wheel building workflows that will benefit from these few milliseconds shaved off wheel building time.
un article du blog "bite code" (que je vous recommande de suivre ou de fouiller - plein de choses intéressantes sur les #tests aussi, par exemple) sur un retour d'expérience sur https://github.com/astral-sh/uv, le gestionnaire de projet #Python de @charliermarsh, après un an d'utilisation de #uv dans différents contextes : https://www.bitecode.dev/p/a-year-of-uv-pros-cons-and-should
> A year of uv: pros, cons, and should you migrate
> Yes, probably.
À suivre : un billet dédié à ses conseils d'utilisation de uv.
A year of #uv: pros, cons, and should you migrate #python
https://www.bitecode.dev/p/a-year-of-uv-pros-cons-and-should
Great news for #python developers! #dependabot now supports #uv #astraluv . Nothing stands between your codebase and almost-instant #dependencymanagement!
We also have lightning talks! @tero is showing us how to write single-file executable Python scripts with dependencies using uv.