Armin Ronacher
Armin Ronacher
  • Видео 13
  • Просмотров 243 534
How Rye Works: The Shims
Basic walkthrough into how Rye's internal shim implementation works.
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

Комментарии

  • @moomanao2376
    @moomanao2376 17 дней назад

    I regret after installing this

  • @muddi900
    @muddi900 Месяц назад

    insert xkcd comic about charging standards.

  • @indoreddit
    @indoreddit Месяц назад

    Okay now i want to learn vim

  • @TweedBeetle
    @TweedBeetle 2 месяца назад

    My god, that’s a good sounding keyboard

  • @ksfjcu
    @ksfjcu 2 месяца назад

    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.

  • @vasudevmenon2496
    @vasudevmenon2496 2 месяца назад

    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 😊

  • @chyldstudios
    @chyldstudios 2 месяца назад

    Looks very promising!

  • @kishanbsh
    @kishanbsh 2 месяца назад

    Can there be "autosync" ? That way i dont have to type "rye sync" each and every time

  • @TheSilmarallion
    @TheSilmarallion 2 месяца назад

    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.

  • @yes-ni1od
    @yes-ni1od 2 месяца назад

    Wow so it's like cargo for python, fantastic

  • @JD-qo9wk
    @JD-qo9wk 2 месяца назад

    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?

  • @_volodymyr
    @_volodymyr 3 месяца назад

    what font does he use in the console?

  • @BruceChar007
    @BruceChar007 3 месяца назад

    awesome! familiar with the cargo like, if the "rye sync" can be automatic call by "rye run" will be nicer!!!

  • @NostraDavid2
    @NostraDavid2 3 месяца назад

    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 3 месяца назад

      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

  • @dorgeshuun
    @dorgeshuun 3 месяца назад

    He bungled the flask quickstart :D !

  • @meowsqueak
    @meowsqueak 3 месяца назад

    So it’s pyenv but written in Rust?

    • @ArminRonacher
      @ArminRonacher 3 месяца назад

      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

  • @squid1623
    @squid1623 4 месяца назад

    what keyboard do you use?

  • @MurtagBY
    @MurtagBY 4 месяца назад

    How this works in pair with docker? e.g. I want to use rye locally, but docker container wants requirements.txt, right?

  • @SPURGT1
    @SPURGT1 4 месяца назад

    Super exciting project! Thanks! PS. love your shell theme, how do I make mine look like yours?

  • @rdanilin
    @rdanilin 4 месяца назад

    We can’t hear you because of your keyboard.

  • @stevenhe3462
    @stevenhe3462 5 месяцев назад

    Let's go ruby influence through rust

  • @pietraderdetective8953
    @pietraderdetective8953 5 месяцев назад

    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!

  • @flowname
    @flowname 5 месяцев назад

    Another tool that replicates a tiny portion of Nix and renders itself obsolete from get going.

  • @tabotkevin8116
    @tabotkevin8116 5 месяцев назад

    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!

  • @danny_p466
    @danny_p466 5 месяцев назад

    what's the difference between rye and uv?

  • @RogerValor
    @RogerValor 5 месяцев назад

    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 5 месяцев назад

      2. already supported it seems!

  • @devilgothies360
    @devilgothies360 5 месяцев назад

    what keyboard are u using holy fk

  • @abdelmalek_djamaa
    @abdelmalek_djamaa 5 месяцев назад

    does rye create executables as well?

  • @ho_artem
    @ho_artem 5 месяцев назад

    Hi Armin, thanks for the informative video. Can you please tell me the name of this Firefox theme?

    • @ArminRonacher
      @ArminRonacher 5 месяцев назад

      It's the default theme as far as I can tell

  • @kiransingh2935
    @kiransingh2935 6 месяцев назад

    The second I heard the quality of his keycaps I knew this would be good.

    • @cheiron77
      @cheiron77 4 месяца назад

      Can someone identify them, based on the sound?

    • @_jb_
      @_jb_ 4 месяца назад

      ​@cheiron77 yes. Someone can

    • @connorkapooh2002
      @connorkapooh2002 4 месяца назад

      @@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 4 месяца назад

      sooooo creamy

    • @NostraDavid2
      @NostraDavid2 3 месяца назад

      Keychron V3 with Banana switches. My man has taste! Before that he had a Filco Tenkeyless (Blue switches).

  • @fzy81
    @fzy81 6 месяцев назад

    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 :)

  • @nahblue
    @nahblue 6 месяцев назад

    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.

  • @mpricejones
    @mpricejones 6 месяцев назад

    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.

    • @ArminRonacher
      @ArminRonacher 6 месяцев назад

      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.

    • @mpricejones
      @mpricejones 6 месяцев назад

      @@ArminRonacherThank you for the quick rely. I appreciate the explanation. I will try to dig into it a bit more.

  • @iskuchekov
    @iskuchekov 6 месяцев назад

    Came here to listen to the keyboard sounds ^^

  •  6 месяцев назад

    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? :)

    • @ArminRonacher
      @ArminRonacher 6 месяцев назад

      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.

    •  6 месяцев назад

      @@ArminRonacherThank you Armin. Not super satisfied but it has a point.

  • @user-fs7fb3gz4r
    @user-fs7fb3gz4r 6 месяцев назад

    hI! what font are you using in your IDE

  • @ShanilPanara
    @ShanilPanara 6 месяцев назад

    Legendary, this is gonna be the new norm for sure

  • @LinuxForLife
    @LinuxForLife 6 месяцев назад

    Do NOT work at all!!! I use pyenv. Are there any issue(s) with this? ❯ which python /home/mic/.pyenv/shims/python

    • @ArminRonacher
      @ArminRonacher 6 месяцев назад

      Please us discord, the issue tracker or the forums. It's hard to reply to these things without further information.

  • @charlesolivierdupont
    @charlesolivierdupont 6 месяцев назад

    When you add a dependency does it also check for conflicts like poetry does?

  • @saitaro
    @saitaro 6 месяцев назад

    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

  • @Farkeman
    @Farkeman 6 месяцев назад

    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.

  • @saeedxgholami
    @saeedxgholami 6 месяцев назад

    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

  • @marchellimanuel2469
    @marchellimanuel2469 6 месяцев назад

    THANK YOU VERY MUCH

  • @herroic
    @herroic 6 месяцев назад

    I love using rye!

  • @python360
    @python360 7 месяцев назад

    Great project. Just looked at the Rust source code. You have put an immense amount of work into this - all credit to you!

  • @some84884
    @some84884 7 месяцев назад

    rye is a cargo for python, what could be better? :)

  • @RolfStrijdhorst
    @RolfStrijdhorst 7 месяцев назад

    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 ***

  • @eukaryote0
    @eukaryote0 7 месяцев назад

    Awesome. Hope this gets BIG.

  • @Nalewkarz
    @Nalewkarz 7 месяцев назад

    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 5 месяцев назад

      good question, main issues with python installation is usually 3rd party deps, also on windows

  • @jabuci
    @jabuci 7 месяцев назад

    Is it possible to place the virt. env. outside of the project folder? I like to keep them in the folder ~/.virtualenvs .

    • @ArminRonacher
      @ArminRonacher 7 месяцев назад

      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 7 месяцев назад

      @@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 7 месяцев назад

      @@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 7 месяцев назад

      @@ArminRonacher Thank you! It will very useful for me.