UV - A modern python project and dependency manager

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 57

  • @7006608
    @7006608 17 ชั่วโมงที่ผ่านมา

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

    • @Timnology-r4s
      @Timnology-r4s  12 ชั่วโมงที่ผ่านมา

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

  • @pyalgoGPT
    @pyalgoGPT 20 วันที่ผ่านมา +2

    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.

    • @Timnology-r4s
      @Timnology-r4s  18 วันที่ผ่านมา

      Thank you for your kind words!

  • @bigoper
    @bigoper 2 วันที่ผ่านมา

    New SUB here
    Just flawless ❤

  • @majestif
    @majestif 2 หลายเดือนก่อน +2

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

    • @Timnology-r4s
      @Timnology-r4s  2 หลายเดือนก่อน

      Glad you liked it!

  • @blanky_nap
    @blanky_nap 2 หลายเดือนก่อน +1

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

  • @rodrigoagundez2718
    @rodrigoagundez2718 2 หลายเดือนก่อน +2

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

  • @0xBerto
    @0xBerto หลายเดือนก่อน

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

  • @akshayshinde8573
    @akshayshinde8573 หลายเดือนก่อน +1

    Great work, really high quality content.

    • @Timnology-r4s
      @Timnology-r4s  หลายเดือนก่อน

      Glad you think so!

  • @Anh_AI
    @Anh_AI 5 วันที่ผ่านมา

    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  5 วันที่ผ่านมา

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

  • @samjiman
    @samjiman 19 วันที่ผ่านมา +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.

  • @tridibbiswas3361
    @tridibbiswas3361 6 วันที่ผ่านมา

    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  6 วันที่ผ่านมา

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

  • @rikaminski
    @rikaminski หลายเดือนก่อน +1

    Thanks for easy share.

  • @felipeadeildo
    @felipeadeildo 4 วันที่ผ่านมา

    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  4 วันที่ผ่านมา

      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

  • @tomasemilio
    @tomasemilio 2 วันที่ผ่านมา

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

    • @Timnology-r4s
      @Timnology-r4s  2 วันที่ผ่านมา

      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 2 วันที่ผ่านมา

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

  • @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  หลายเดือนก่อน +2

      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.

  • @danbochman
    @danbochman หลายเดือนก่อน

    Great video! Keep at it 💪

  • @jarrettbullion1545
    @jarrettbullion1545 10 วันที่ผ่านมา +1

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

    • @Timnology-r4s
      @Timnology-r4s  10 วันที่ผ่านมา

      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.

  • @mrttsmn
    @mrttsmn 6 วันที่ผ่านมา

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

    • @Timnology-r4s
      @Timnology-r4s  6 วันที่ผ่านมา

      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.

  • @DataScienceandAI-doanngoccuong
    @DataScienceandAI-doanngoccuong 15 วันที่ผ่านมา

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

  • @noopurp123
    @noopurp123 4 วันที่ผ่านมา

    What terminal are you using there?

    • @Timnology-r4s
      @Timnology-r4s  4 วันที่ผ่านมา

      www.warp.dev/ Fantastic terminal

  • @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.

  • @1Docflash
    @1Docflash 8 วันที่ผ่านมา

    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  8 วันที่ผ่านมา

      What kind of error messages did you get?

  • @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

  • @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  หลายเดือนก่อน

      Provided your toml file is setup correctly, yes.

  • @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`

  • @this-is-bioman
    @this-is-bioman วันที่ผ่านมา

    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.

  • @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 15 วันที่ผ่านมา

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

  • @guidyouguy7306
    @guidyouguy7306 3 วันที่ผ่านมา

    Poetry does the same thing

    • @Timnology-r4s
      @Timnology-r4s  3 วันที่ผ่านมา

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

  • @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.

  • @tiolv1174
    @tiolv1174 หลายเดือนก่อน