Rye: a Hassle-Free Python Experience (Rye 0.21 Demonstation)

  Рет қаралды 35,503

Armin Ronacher

Armin Ronacher

Күн бұрын

Пікірлер: 92
@kiransingh2935
@kiransingh2935 9 ай бұрын
The second I heard the quality of his keycaps I knew this would be good.
@cheiron77
@cheiron77 8 ай бұрын
Can someone identify them, based on the sound?
@_jb_
@_jb_ 8 ай бұрын
​@cheiron77 yes. Someone can
@connorkapooh2002
@connorkapooh2002 8 ай бұрын
@@cheiron77 shot in the dark but they sound like yellows, lubed, at least that's what mine sounded like. at least a linear switch
@connorkapooh2002
@connorkapooh2002 8 ай бұрын
sooooo creamy
@NostraDavid2
@NostraDavid2 7 ай бұрын
Keychron V3 with Banana switches. My man has taste! Before that he had a Filco Tenkeyless (Blue switches).
@python360
@python360 10 ай бұрын
Great project. Just looked at the Rust source code. You have put an immense amount of work into this - all credit to you!
@TheSilmarallion
@TheSilmarallion 5 ай бұрын
Thank you for all the hard work. Helped me get up and running with django project in 2 mins after I sat for 4 hours trying to do it manually.
@vasudevmenon2496
@vasudevmenon2496 5 ай бұрын
I kept forgetting the video was not testing mechanical keyboard instead it was a walkthrough for a complete Python project lifecycle from dev to packaging to release paired with ruff. Been using ruff for over a year. Will be trying it to migrate my python applications based on Django. Congrats on being part of Astral. Thanks for making this wonderful tool Armin 😊
@ShanilPanara
@ShanilPanara 9 ай бұрын
Legendary, this is gonna be the new norm for sure
@eukaryote0
@eukaryote0 10 ай бұрын
Awesome. Hope this gets BIG.
@plashless3406
@plashless3406 10 ай бұрын
This is amazing. Thanks Armin.
@devilgothies360
@devilgothies360 9 ай бұрын
what keyboard are u using holy fk
@some84884
@some84884 10 ай бұрын
rye is a cargo for python, what could be better? :)
@RolfStrijdhorst
@RolfStrijdhorst 10 ай бұрын
So far this looks like what we all have been waiting for in python project management. before Rye it could be more than a big pain in the ***
@tabotkevin8116
@tabotkevin8116 8 ай бұрын
Hello Armin, thank you very much for the great video. However, I could not resist but ask you which keyboard and switches did you use in this video? I swear was watching this video and I shifted my attention for a second to reply a text, then the keyboard sound came on and I froze and shouted holy sh*t!
@chyldstudios
@chyldstudios 5 ай бұрын
Looks very promising!
@saitaro
@saitaro 10 ай бұрын
It's all good and well bro, but you have to say what keeb, switches and caps you're using, cuz the sound is on fleek
@ArminRonacher
@ArminRonacher 10 ай бұрын
Gateron Jupiter Banana :)
@hargun1011
@hargun1011 2 ай бұрын
The guy spends an entire lifetime worth of experience to solve one of the most frustrating problems known to the coding man; and the audience is more interested in the "plonk plonk plonk" - priorities 🍷
@ksfjcu
@ksfjcu 5 ай бұрын
I'm confused as to why you have to run sync after every package install. This will definitely be a pain point for developers who are used to having installed modules from the venv available immediately.
@Farkeman
@Farkeman 10 ай бұрын
Does rye implement anything to assist with non-python library dependancies? I think that's only remaining hurdle for python package managers as people still struggle with handling non-python dependancies needed by numpy, lxml etc.
@MrCamalistic
@MrCamalistic 10 ай бұрын
Nice work! Thanks for the demo.
@BruceChar007
@BruceChar007 7 ай бұрын
awesome! familiar with the cargo like, if the "rye sync" can be automatic call by "rye run" will be nicer!!!
@kishanbsh
@kishanbsh 5 ай бұрын
Can there be "autosync" ? That way i dont have to type "rye sync" each and every time
@charlesolivierdupont
@charlesolivierdupont 10 ай бұрын
When you add a dependency does it also check for conflicts like poetry does?
@Kunaljamdade-g3i
@Kunaljamdade-g3i 2 күн бұрын
How can we use this with frameworks like FastAPI, django
@dorgeshuun
@dorgeshuun 7 ай бұрын
He bungled the flask quickstart :D !
@danny_p466
@danny_p466 9 ай бұрын
what's the difference between rye and uv?
@MurtagBY
@MurtagBY 7 ай бұрын
How this works in pair with docker? e.g. I want to use rye locally, but docker container wants requirements.txt, right?
@saeedxgholami
@saeedxgholami 10 ай бұрын
I've been using poetry for quite some time and would say I really like it. What I like about your new project that is not considered in poetry is managing Python version, I've had some problem with that before. What I don't like which is minor thing that why venv is created in the project directory in poetry venv created in cache/venv/some_venv which quite handy, when venv created in project directory it just annoying to see in VS Code file tree. I also don't like the file .python-version I think we can manage python version pyproject.toml and get rid of the file. More file and more folder just create more confusions. I also don't like the fact we need to `rye sync` all time. If we got a video that compare similar projects with rye that would be nice. Thanks for the project
@SPURGT1
@SPURGT1 8 ай бұрын
Super exciting project! Thanks! PS. love your shell theme, how do I make mine look like yours?
@ho_artem
@ho_artem 9 ай бұрын
Hi Armin, thanks for the informative video. Can you please tell me the name of this Firefox theme?
@ArminRonacher
@ArminRonacher 9 ай бұрын
It's the default theme as far as I can tell
@jabuci
@jabuci 10 ай бұрын
Is it possible to place the virt. env. outside of the project folder? I like to keep them in the folder ~/.virtualenvs .
@ArminRonacher
@ArminRonacher 10 ай бұрын
This is very intentionally not supported. I would like to understand what the motivation for this is however, so that I can maybe address the issues with the co-located virtualenv in different ways.
@jabuci
@jabuci 10 ай бұрын
@@ArminRonacher My main motivation is this: I keep my projects in my Dropbox folder, thus they are synced on all my machines. But a virtual env. is usually huge and reproducible, thus it makes no sense to keep it in Dropbox.
@ArminRonacher
@ArminRonacher 10 ай бұрын
@@jabuci the next version of rye will automatically mark virtualenvs in a way that they are not synched to dropbox. See github.com/mitsuhiko/rye/pull/589
@jabuci
@jabuci 10 ай бұрын
@@ArminRonacher Thank you! It will very useful for me.
@komuwairagu3942
@komuwairagu3942 10 ай бұрын
rye sync should be automatic, me thinks. There are 3 or 4 times you forgot to sync first, in the video, and had to go back and do it. Which leads me to believe it’s a mistake that almost everyone will make
@ArminRonacher
@ArminRonacher 10 ай бұрын
There is an open feature request for it. Once the installation process is no longer that slow it will definitely become an option. Today it’s too slow if you want to add multiple dependencies in one go.
@yogeshchoudhary5936
@yogeshchoudhary5936 9 ай бұрын
uv for installation doesn't help? 😉
@MohammedSikirulahi
@MohammedSikirulahi 10 ай бұрын
amazing! please post more! ... keyboard name /link ?
@ArminRonacher
@ArminRonacher 10 ай бұрын
It’s a keychron q3 max with banana switches.
@_volodymyr
@_volodymyr 6 ай бұрын
what font does he use in the console?
@JD-qo9wk
@JD-qo9wk 6 ай бұрын
I've been using Pyenv for years now and all my projects as well as my entire global environment (~/.python-version) is managed by Pyenv. However your video makes me want to switch to Rye. Is there an easy way to migrate everything from pyenv to rye somehow?
@NostraDavid2
@NostraDavid2 7 ай бұрын
I'm looking to get rid of Poetry. It's been a PITA for the 35+ repos I have to manage. This just jumped to my #1 application to try. I also know of PDM, Hatch, uv, Conda, pipenv, Pixi and pip. Will do a Hackathon this quarter where I'll check all these out. Will hopefully not forget to post the results here.
@NostraDavid2
@NostraDavid2 7 ай бұрын
Doing some pre-work - looks like `rye add` already runs `rye sync` to sync your `requirements-dev.lock` and `requirements.lock` files. Very nice! :D
@iskuchekov
@iskuchekov 10 ай бұрын
Oh! Das sieht super toll aus!
@TweedBeetle
@TweedBeetle 5 ай бұрын
My god, that’s a good sounding keyboard
@abdelmalek_djamaa
@abdelmalek_djamaa 9 ай бұрын
does rye create executables as well?
@Nalewkarz
@Nalewkarz 10 ай бұрын
I have a question. You have old mac with Python 2.7 but with newest openssl version that fits new versions of Python ? If it installed Python 3.12 on old machine, how it was done in context of that openssl dependency ?
@RogerValor
@RogerValor 9 ай бұрын
good question, main issues with python installation is usually 3rd party deps, also on windows
@yes-ni1od
@yes-ni1od 6 ай бұрын
Wow so it's like cargo for python, fantastic
@oriontvv
@oriontvv 10 ай бұрын
definitely it's missing cargo for pythonistas, very appreciate for you work! it would be cool to run tests (apparently with pytest), build doc and measure benchmarks. Waiting for better packaging resolution and more widely pyproject.toml adoption in the ecosystem.
@herroic
@herroic 10 ай бұрын
I love using rye!
@marchellimanuel2469
@marchellimanuel2469 10 ай бұрын
THANK YOU VERY MUCH
@lqhuy
@lqhuy 10 ай бұрын
Awesome work 🥰 Rye looks very promising to be a standard way to use python in the most manageable way. I just wonder if I can replace conda with rye to manage virtual env without creating projects or workspaces. I mean I got my job done with only simple create env, activate/deactivate, install... because I rarely create python module. So it would be very cool if rye can do that.
@CarlosAlbaP
@CarlosAlbaP 10 ай бұрын
Is possible, just tested,: once a project is created with rye init command , switching between directories (via cd ) works as environment swapping.
@JonathanCannon-e5x
@JonathanCannon-e5x 10 ай бұрын
docker?
@muddi900
@muddi900 5 ай бұрын
insert xkcd comic about charging standards.
@indoreddit
@indoreddit 5 ай бұрын
Okay now i want to learn vim
@stevenhe3462
@stevenhe3462 8 ай бұрын
Let's go ruby influence through rust
@RogerValor
@RogerValor 9 ай бұрын
1. du bist a viech, heast. 2. will you support uv? is it not kind of similar? 3. the scripts are cool, I use justfiles atm.
@RogerValor
@RogerValor 9 ай бұрын
2. already supported it seems!
@leftjabrighthook
@leftjabrighthook 10 ай бұрын
Ugh, reminds me of RVM for ruby. Ruby and Python need to follow .NET 's project structure, where this functionality is baked in, the project points to the installed version of ruby or python, instead of magic entire environment switching.
@AlvaroGonzalez_Andor
@AlvaroGonzalez_Andor 10 ай бұрын
But... Is the installed Python version the one you need? What if you have projects in 3.6 and some others in 3.12? How do you separate your installed dependencies?
@bradleypout1820
@bradleypout1820 8 ай бұрын
@@AlvaroGonzalez_Andor 1010100
@rdanilin
@rdanilin 8 ай бұрын
We can’t hear you because of your keyboard.
@flowname
@flowname 8 ай бұрын
Another tool that replicates a tiny portion of Nix and renders itself obsolete from get going.
@moomanao2376
@moomanao2376 4 ай бұрын
I regret after installing this
@HaydenDoingThings
@HaydenDoingThings 10 ай бұрын
Absolute last thing I want on a fresh system is to have to install Rust. Instant dealbreaker for me.
@adrianjdelgado
@adrianjdelgado 10 ай бұрын
You don't need to install Rust. Rye is already compiled as an executable like any other compiled app.
@IndigoCurnick
@IndigoCurnick 10 ай бұрын
As the video shows, you don't need to install Rust, Rye just happens to be written in Rust but is distributed as a pre-compiled binary. That being said, you make installing Rust sound like some nightmare when it's really one of the nicest languages to install and manage
@HaydenDoingThings
@HaydenDoingThings 10 ай бұрын
@@IndigoCurnick I have and continue to make a point to avoid all Rust software. Just my preference. Additionally, I think Hatch solves all the package management issues, in pure Python, and does so in a more elegant way than something nasty and complicated like Rust.
@ArminRonacher
@ArminRonacher 10 ай бұрын
@@HaydenDoingThings could you explain how the choice of programming language affects your use of the software? Python itself is written in C and it's quite common these days that you pull in Rust based dependencies quite quickly (eg: the well known cryptography library is a good example of this). Hatch also is partially written in Rust so your own example is already not applying.
@adrianjdelgado
@adrianjdelgado 10 ай бұрын
@@HaydenDoingThings There's Rust in Firefox and soon in Chromium. There's Rust in Windows and soon in the Linux kernel. There's Rust in a lot of very common libraries in Python. I think your goal of avoiding Rust is futile. Instead of a blanket ban on Rust software. Try to evaluate each example by itself. What specifically do you find nasty or complicated about using Rye?
How Rye Works: The Shims
34:42
Armin Ronacher
Рет қаралды 1,7 М.
Some tricks with UV and a new Python project: uvtrick!
11:45
CalmCode
Рет қаралды 10 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
uv IS the Future of Python Packaging! 🐍📦
25:16
Hynek Schlawack
Рет қаралды 31 М.
“typing” is getting deprecated in Python
7:20
Indently
Рет қаралды 79 М.
Building Command Line Applications with Click
18:18
Armin Ronacher
Рет қаралды 153 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 83 М.
Rye Python Project Management Solution Demo
8:50
Armin Ronacher
Рет қаралды 16 М.
Snapshot Testing with Insta 0.16 in Rust
12:59
Armin Ronacher
Рет қаралды 6 М.
Modern Python logging
21:32
mCoding
Рет қаралды 209 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 337 М.
Getting started with FastHTML
58:50
Jeremy Howard
Рет қаралды 48 М.
Learn to code with an unfair advantage.
15:05
Jason Goodison
Рет қаралды 176 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН