UV - A modern python project and dependency manager

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 63

  • @porlando12
    @porlando12 День назад

    Amazing video! This channel is criminally underrated. It would be cool to see how you would migrate an existing project managed via poetry over to using uv in a future video!

  • @AJXD2
    @AJXD2 День назад

    Its lowkey hard to tell that you have 600 subs. I got to 4:00 before I looked down by accident and saw it. Keep it up!

  • @sglbl
    @sglbl 14 часов назад

    Thank you. One suggesstion; When you share the screen, there should be some space at the bottom of terminal text input place so that when we pause the video, youtube's bar will not block the input and we will still be able to see the input.

  • @pyalgoGPT
    @pyalgoGPT 24 дня назад +6

    Sir, you are a fabulous teacher ,who can make familiar a new tool in project management in just 6 minutes !!! Its lesson on how to make learning simple, yet effective with time consciousness . Thank you & heartful respect from India. Looking for more such videos.

  • @7006608
    @7006608 5 дней назад +1

    Tip: vertical flip your head video to point to the screen instead off screen
    thanks for the video!

    • @Timnology-r4s
      @Timnology-r4s  4 дня назад +1

      Oh snap, that's a good tip. I've never even thought about that!

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

    Great tool! Clean explanation. Would like to see more tutorials on uv

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

    Concise and to the point, many thanks for a great review!

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

    Great review Tim! thanks, already shared it with my team.

  • @0xBerto
    @0xBerto Месяц назад +1

    Great explanation in the right amount of time sir. Thank you 🙏 subbed

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

    Great work, really high quality content.

  • @bigoper
    @bigoper 6 дней назад +1

    New SUB here
    Just flawless ❤

  • @rikaminski
    @rikaminski Месяц назад +2

    Thanks for easy share.

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

    Great video! Keep at it 💪

  • @samjiman
    @samjiman 24 дня назад +1

    Most of my Python code only uses the standard library (theres a heck of a lot you can do with those batteries) and a lot of modules I prefer to implement my own classes/functions. Might try with my Flask apps though or maybe if I made some of my stuff libraries on PIP.

  • @jarrettbullion1545
    @jarrettbullion1545 14 дней назад +1

    partly why your dependencies installed so quick is because they are cached on your machine.

    • @Timnology-r4s
      @Timnology-r4s  14 дней назад

      That is correct, though even after removing the cache the installation is single digit seconds. The power of UV really shines in its completeness as a tool, PEP compliancy and lightning fast dependency resolution.

  • @Anh_AI
    @Anh_AI 9 дней назад

    Sir, 2 Q that I want to ask:
    1. How can train/run Yolo with GPU (that Pytorch only install with pip?)
    2. How to build uv python app to exe?

    • @Timnology-r4s
      @Timnology-r4s  9 дней назад

      1. I never work with pytorch, but this github issue seems to have a solution running on GPU: github.com/astral-sh/uv/issues/7202#issuecomment-2447539317.
      2. To get a python exe you can use pyinstaller.org/en/stable/. A simple `uv add --dev pyinstaller ` and `uv run pyinstaller` would do the trick :)

  • @2Tiny4U
    @2Tiny4U Месяц назад

    Thank you for this introductory video. Your terminal has a very clean look. Would you mind sharing information about the terminal, theme, fonts and file/folder icons? I already found out about bat in the other comments.

    • @Timnology-r4s
      @Timnology-r4s  Месяц назад +3

      Of course! The terminal in the video is Warp (www.warp.dev/), I go back and forth between it and WezTerm. I use the basic prompt from Starship (starship.rs/) and Catppuccin Mocha as theme. I also aliased `exa` (github.com/ogham/exa) to `ll` which, together with the Jetbrains Mono font, gives the nice icons and colored `ls` output.

  • @onun-2204
    @onun-2204 2 месяца назад +1

    Typing sound is great! Couldn't understand, is it captured by the microphone from the keyboard directly or is it a sound in the computer?

    • @Timnology-r4s
      @Timnology-r4s  2 месяца назад +1

      Thanks! I never gave it much thought though :). I have a mechanical keyboard with brown (silent) switches and a shure mv7. The mic picked up some muffled sounds from the keyboard.

  • @zuowang5185
    @zuowang5185 4 дня назад

    Is it fast on cold CI start? Does it generate cross platform lockfile?

    • @Timnology-r4s
      @Timnology-r4s  4 дня назад

      Yes it is fast. If not fast enough you can enable caching: github.com/astral-sh/setup-uv?tab=readme-ov-file#enable-caching
      Yes, the lock file is cross platform compatible.

  • @felipeadeildo
    @felipeadeildo 9 дней назад

    A thing that I really like at using poetry as my project dependency manager is that it's create the virtual environment folder outside the project, that's really a cool function
    So, how can I do the same thing with UV?
    I noticed that is has been created a .venv folder at the root project...

    • @Timnology-r4s
      @Timnology-r4s  8 дней назад

      Personally, I really like having the .venv folder right where the code lives. However, uv does give you the option to specify a custom folder: docs.astral.sh/uv/pip/environments/#creating-a-virtual-environment

  • @tridibbiswas3361
    @tridibbiswas3361 10 дней назад

    Thank you for your video. I am newbie and learning. This was really helpful. Also, if you don’t mind a trivial ask , I liked your font and color scheme- could you share the names

    • @Timnology-r4s
      @Timnology-r4s  10 дней назад

      Glad you found it useful. All questions are welcome! I use the open source Jetbrains Mono Nerd font (www.nerdfonts.com/font-downloads), and Catppuccin Mocha color scheme (catppuccin.com/)

  • @noopurp123
    @noopurp123 8 дней назад

    What terminal are you using there?

  • @DataScienceandAI-doanngoccuong
    @DataScienceandAI-doanngoccuong 19 дней назад

    tui thấy giống npm install (package.js) trong javaScripts.

  • @tomasemilio
    @tomasemilio 6 дней назад

    works great, but my lsp is complaning when i install other packages, as though they weren't installed

    • @Timnology-r4s
      @Timnology-r4s  6 дней назад

      99% chance your lsp is using the wrong interpreter. If you use neovim (or zed, or helix), there are plugins that allow you to easily switch venv, but what I found works great is: uv run nvim .
      That automatically launches vim with the correct venv. In vscode no clue, you probably have to setup a python interpreter by pointing to the .venv/bin/python script. The same holds true for Jetbrains products.

    • @tomasemilio
      @tomasemilio 6 дней назад

      @@Timnology-r4s hero! haha amazing
      and yeah that is it. i will slowly transition to UV, it really looks amazing.

  • @mrttsmn
    @mrttsmn 11 дней назад

    Well this looks great but do i need to manually update and manually manage dependencies for every uv version?

    • @Timnology-r4s
      @Timnology-r4s  11 дней назад

      Not precisely, like with requirements.txt, or Poetry, you need to manage your dependencies per project. The version of uv you are running doesn't matter. UV is there to resolve the complicated dependency tree that is pip.

  • @this-is-bioman
    @this-is-bioman 5 дней назад

    It does not look like any kind of breakthrough. Just another package manager on top of an existing one with even more new commands to learn.

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

    What kind of terminal or configuration (not sure) do you use to have syntax highlighting and "cat" being able to output with that structure?

    • @Timnology-r4s
      @Timnology-r4s  2 месяца назад

      Most modern terminals have nice colors, I personally switch occasionally between Warp and Wezterm, mostly using catppuccin or rosepine color schemes.
      For `cat` specifically I aliased `bat` to `cat`: github.com/sharkdp/bat

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

      The cat he's using in the video is `bat`, presumably just with `alias cat=bat`

  • @1Docflash
    @1Docflash 12 дней назад

    lol. may be great tool but i followed your directions and only get error messages. bummer glad it worked for other people

    • @Timnology-r4s
      @Timnology-r4s  12 дней назад

      What kind of error messages did you get?

  • @0xBerto
    @0xBerto Месяц назад

    Question, so I can run any of my already existing Python projects just preface the command with UV (after installing)?

    • @Timnology-r4s
      @Timnology-r4s  Месяц назад +1

      Provided your toml file is setup correctly, yes.

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

    I used to have pyenv creating some venvs for my machine, not project related ... can uv do the same?

    • @Timnology-r4s
      @Timnology-r4s  Месяц назад

      Yes, that is possible. Though you have to specify the path to the environment.
      docs.astral.sh/uv/pip/environments/#creating-a-virtual-environment

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

    Can you share how you get that pretty cat output?

    • @Timnology-r4s
      @Timnology-r4s  2 месяца назад +2

      Of course! I aliased `bat` to `cat`: github.com/sharkdp/bat

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

      @@Timnology-r4s Awesome, appreciate it

  • @erfan_ops
    @erfan_ops 19 дней назад

    i was expecting to see a 'K' by the subscribers count

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

    UV is malfunctioning on Jetbrains fleet.

    • @Timnology-r4s
      @Timnology-r4s  Месяц назад

      In which way? UV is a cli tool.

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

      @@Timnology-r4s UV pip compile requirements in to requirements txt is writing in Chinese on Jetbrains fleet while in vscode not getting error.

    • @Timnology-r4s
      @Timnology-r4s  Месяц назад

      That is not something I can help you with. Most likely an editor or OS language setting.

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

      @@Timnology-r4s No problem and thank you for your time. I just mentioned the error I am getting on fleet maybe because its still in beta.

  • @kamurashev
    @kamurashev 3 дня назад

    Cough npm cough… it might be good the only thing it must be adopted as a language standard first

  • @guidyouguy7306
    @guidyouguy7306 8 дней назад

    Poetry does the same thing

    • @Timnology-r4s
      @Timnology-r4s  7 дней назад +1

      Some of it, yes. Though poetry isn't fully PEP compliant and is significantly slower on large projects.

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