- Видео 13
- Просмотров 243 534
Armin Ronacher
Добавлен 8 ноя 2009
How Rye Works: The Shims
Basic walkthrough into how Rye's internal shim implementation works.
rye-up.com/guide/shims/
rye-up.com/guide/shims/
Просмотров: 1 537
Видео
Rye: a Hassle-Free Python Experience (Rye 0.21 Demonstation)
Просмотров 31 тыс.7 месяцев назад
Demonstrates the then latest version of Rye (0.21) and now it can be used to manage Python projects and interpreters. For more information see rye-up.com/
Rye Python Project Management Solution Demo
Просмотров 17 тыс.Год назад
This is a quick demo for my rye project management tool for Python. For more information see github.com/mitsuhiko/rye
Rust API Design Learnings
Просмотров 2,9 тыс.Год назад
Lessons learned from building Rust libraries My Rust Talk from FOSDEM 2023 Slides: mitsuhiko.pocoo.org/RustAPI.pdf Talk page: fosdem.org/2023/schedule/event/rust_rust_api_design_learnings/
Snapshot Testing with Insta 0.16 in Rust
Просмотров 6 тыс.4 года назад
A short introduction to snapshot testing with the insta snapshot testing library in Rust. docs.rs/insta/ crates.io/crates/insta github.com/mitsuhiko/insta
Privacy Preserving Contact Tracing
Просмотров 1,5 тыс.4 года назад
An introduction to how privacy preserving contact tracing works. It explains the basics of the Apple/Google protocol for contact tracing. This is a follow up to a blog post I made about this topic: lucumr.pocoo.org/2020/4/9/tcn-contact-tracing/
Insta Snapshot Tests Introduction
Просмотров 7505 лет назад
Updated screencast here: ruclips.net/video/rCHrMqE4JOY/видео.html Shows how snapshot testing in the rust insta library works.
Stream January 19: Q&A and Building something like jq in Rust
Просмотров 4,5 тыс.5 лет назад
Watch me struggling to use pest.rs to build a simple parser and hear me ramble about Python and Rust.
Lektor Installation
Просмотров 17 тыс.8 лет назад
A very quick introduction to Lektor. Covers installation and a brief overview of how it works. Get Lektor: www.getlektor.com/
Using Lektor with Travis-CI and GitHub Pages
Просмотров 4,5 тыс.8 лет назад
A brief introduction into how to use Lektor to build to GitHub Pages with the help of Travis-CI. The full guide can be found in the documentation: www.getlektor.com/docs/deployment/travisci/ Get Lektor: www.getlektor.com/
Building Command Line Applications with Click
Просмотров 152 тыс.10 лет назад
Quick introduction to building command line applications with click.
Broken Lighting Shader
Просмотров 62314 лет назад
The shader without ambient term. Even worse with ambient, then it's only white.
Macbook Pro Anti-Theft Alarm
Просмотров 4,1 тыс.14 лет назад
A simple application that reads the motion sensor of my macbook pro to implement a theft alarm. It's a lot louder in real life :) The plan is to integrate it with the lock system of OS X and to ensure the system does not go into sleep if active. Code: dev.pocoo.org/hg/antimactheft
I regret after installing this
insert xkcd comic about charging standards.
Okay now i want to learn vim
My god, that’s a good sounding keyboard
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.
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 😊
Looks very promising!
Can there be "autosync" ? That way i dont have to type "rye sync" each and every time
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.
Wow so it's like cargo for python, fantastic
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?
what font does he use in the console?
awesome! familiar with the cargo like, if the "rye sync" can be automatic call by "rye run" will be nicer!!!
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.
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
He bungled the flask quickstart :D !
So it’s pyenv but written in Rust?
The only similarity between rye and pyenv is that a shim is involved to locate Python. They have quite a different feature set, vastly different behavior and are running different versions of python
what keyboard do you use?
How this works in pair with docker? e.g. I want to use rye locally, but docker container wants requirements.txt, right?
Super exciting project! Thanks! PS. love your shell theme, how do I make mine look like yours?
We can’t hear you because of your keyboard.
Let's go ruby influence through rust
I have started using Rye since a couple days ago..the 1st day was rough coz I hadn't understand how to use it for my workflow (plenty of folders & projects scattered everywhere). Now I'm lovin it and a opportunity to tidy up my folders/projects structure..I can't imagine not using it! Also I like Rye approach compared to Cargo which is a bit too strict IMO. Amazing tool you've built here, appreciate it very much!
Another tool that replicates a tiny portion of Nix and renders itself obsolete from get going.
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!
what's the difference between rye and uv?
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.
2. already supported it seems!
what keyboard are u using holy fk
does rye create executables as well?
Hi Armin, thanks for the informative video. Can you please tell me the name of this Firefox theme?
It's the default theme as far as I can tell
The second I heard the quality of his keycaps I knew this would be good.
Can someone identify them, based on the sound?
@cheiron77 yes. Someone can
@@cheiron77 shot in the dark but they sound like yellows, lubed, at least that's what mine sounded like. at least a linear switch
sooooo creamy
Keychron V3 with Banana switches. My man has taste! Before that he had a Filco Tenkeyless (Blue switches).
Interesting. My first thought was that the shims work a bit like BusyBox. But I didn't know Cargo also did something similar under the hood, and it's the first time I hear about Volta too. Great video :)
A note on 31:20, I don't think trait methods override inherent methods. In fact it's the other way around, which can be confusing, that inherent methods resolve with priority if methods names clash.
In a couple of places you seem to have empty match blocks (ie, no branches at all) eg. line 321 visible at 8:44. I've been writing Rust for a couple of years and I don't think I've come across that. Is there a name for that approach? What purpose does it solve? To be warned if the function called starts to return something of interest? I've not used Python very activity for a while but rye seems like a blessing. Much respect for creating it and I'm glad you've found some help in maintaining it and moving it forwards.
Rust for complex reasons has a special type called ‘!’ which indicate that a function does not return (eg: calls exit or exec). Unfortunately for complex reasons that type cannot compose (eg: you can’t have Result<!, Error>) today. Matching in this way is a workaround that works today.
@@ArminRonacherThank you for the quick rely. I appreciate the explanation. I will try to dig into it a bit more.
Came here to listen to the keyboard sounds ^^
With all due respect, the question always comes to my mind: we use Ruff, a Rust-written Python linter, and Rye, also written in Rust, for Python version management. So, why do we still use Python? Should we just switch to Rust directly? :)
The use of Rust in the Python ecosystem is not much different to the use of C/C++ or other tools that came before it. Most Python developers don't question the use of those languages much. I think the reason Rust is seen different is that unlike C and C++, Rust appears much more user friendly for Python developers. Python has its uses, Rust has its uses. I don't think many of the uses of Python fit perfectly into Rust.
@@ArminRonacherThank you Armin. Not super satisfied but it has a point.
hI! what font are you using in your IDE
www.monolisa.dev/
@@ArminRonacher thanks!
Legendary, this is gonna be the new norm for sure
Do NOT work at all!!! I use pyenv. Are there any issue(s) with this? ❯ which python /home/mic/.pyenv/shims/python
Please us discord, the issue tracker or the forums. It's hard to reply to these things without further information.
When you add a dependency does it also check for conflicts like poetry does?
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
Gateron Jupiter Banana :)
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.
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
THANK YOU VERY MUCH
I love using rye!
Great project. Just looked at the Rust source code. You have put an immense amount of work into this - all credit to you!
rye is a cargo for python, what could be better? :)
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 ***
Awesome. Hope this gets BIG.
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 ?
good question, main issues with python installation is usually 3rd party deps, also on windows
Is it possible to place the virt. env. outside of the project folder? I like to keep them in the folder ~/.virtualenvs .
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.
@@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.
@@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
@@ArminRonacher Thank you! It will very useful for me.