UV - A modern python project and dependency manager

  Рет қаралды 16,663

Timnology

Timnology

Күн бұрын

Пікірлер: 73
@pyalgoGPT
@pyalgoGPT 3 ай бұрын
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 3 ай бұрын
Thank you for your kind words!
@porlando12
@porlando12 2 ай бұрын
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!
@rodrigoagundez2718
@rodrigoagundez2718 5 ай бұрын
Great review Tim! thanks, already shared it with my team.
@majestif
@majestif 5 ай бұрын
Concise and to the point, many thanks for a great review!
@Timnology-r4s
@Timnology-r4s 5 ай бұрын
Glad you liked it!
@blanky_nap
@blanky_nap 4 ай бұрын
Great tool! Clean explanation. Would like to see more tutorials on uv
@AJXD2
@AJXD2 2 ай бұрын
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!
@7006608
@7006608 2 ай бұрын
Tip: vertical flip your head video to point to the screen instead off screen thanks for the video!
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
Oh snap, that's a good tip. I've never even thought about that!
@akshayshinde8573
@akshayshinde8573 4 ай бұрын
Great work, really high quality content.
@Timnology-r4s
@Timnology-r4s 4 ай бұрын
Glad you think so!
@sglbl
@sglbl 2 ай бұрын
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.
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
Good suggestion! I've incorporated that into my new video!
@0xBerto
@0xBerto 3 ай бұрын
Great explanation in the right amount of time sir. Thank you 🙏 subbed
@rikaminski
@rikaminski 3 ай бұрын
Thanks for easy share.
@vincentjean6756
@vincentjean6756 Ай бұрын
Thanks for that!
@bigoper
@bigoper 2 ай бұрын
New SUB here Just flawless ❤
@modoudiao9660
@modoudiao9660 Ай бұрын
Thanks for sharing ❤️
@zuowang5185
@zuowang5185 2 ай бұрын
Is it fast on cold CI start? Does it generate cross platform lockfile?
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
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.
@vdr-sej5149
@vdr-sej5149 20 күн бұрын
Couldn‘t install PySide6 with uv 😢
@danbochman
@danbochman 4 ай бұрын
Great video! Keep at it 💪
@mattiawatchingvideos-bg1ok
@mattiawatchingvideos-bg1ok 29 күн бұрын
your terminal setup is gorgeous
@Timnology-r4s
@Timnology-r4s 27 күн бұрын
Mostly Warp terminal with catppuccin color scheme and default Starship prompt :).
@samjiman
@samjiman 3 ай бұрын
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.
@rschalch
@rschalch 3 ай бұрын
I used to have pyenv creating some venvs for my machine, not project related ... can uv do the same?
@Timnology-r4s
@Timnology-r4s 3 ай бұрын
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 3 ай бұрын
Question, so I can run any of my already existing Python projects just preface the command with UV (after installing)?
@Timnology-r4s
@Timnology-r4s 3 ай бұрын
Provided your toml file is setup correctly, yes.
@onun-2204
@onun-2204 5 ай бұрын
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 5 ай бұрын
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.
@john-schumandr
@john-schumandr Ай бұрын
wait, it installing interpreter inside of .env ?
@Timnology-r4s
@Timnology-r4s Ай бұрын
UV reserves a folder within your home directory to store all python versions and links the env to that location. You have quite a bit control over this: docs.astral.sh/uv/guides/install-python/
@mrttsmn
@mrttsmn 2 ай бұрын
Well this looks great but do i need to manually update and manually manage dependencies for every uv version?
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
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.
@felipeadeildo
@felipeadeildo 2 ай бұрын
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 2 ай бұрын
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
@2Tiny4U
@2Tiny4U 3 ай бұрын
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.
@IshaqKhan010
@IshaqKhan010 Ай бұрын
Can make video on pants compared to uv please please
@UTJK.
@UTJK. 4 ай бұрын
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 4 ай бұрын
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 3 ай бұрын
The cat he's using in the video is `bat`, presumably just with `alias cat=bat`
@jarrettbullion1545
@jarrettbullion1545 2 ай бұрын
partly why your dependencies installed so quick is because they are cached on your machine.
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
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.
@tridibbiswas3361
@tridibbiswas3361 2 ай бұрын
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 2 ай бұрын
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/)
@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.
@noopurp123
@noopurp123 2 ай бұрын
What terminal are you using there?
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
www.warp.dev/ Fantastic terminal
@Anh_AI
@Anh_AI 2 ай бұрын
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 2 ай бұрын
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 :)
@BarryHarry2
@BarryHarry2 5 ай бұрын
Can you share how you get that pretty cat output?
@Timnology-r4s
@Timnology-r4s 5 ай бұрын
Of course! I aliased `bat` to `cat`: github.com/sharkdp/bat
@BarryHarry2
@BarryHarry2 5 ай бұрын
@@Timnology-r4s Awesome, appreciate it
@DataScienceandAI-doanngoccuong
@DataScienceandAI-doanngoccuong 2 ай бұрын
tui thấy giống npm install (package.js) trong javaScripts.
@1Docflash
@1Docflash 2 ай бұрын
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 2 ай бұрын
What kind of error messages did you get?
@vidyesh
@vidyesh 4 ай бұрын
UV is malfunctioning on Jetbrains fleet.
@Timnology-r4s
@Timnology-r4s 4 ай бұрын
In which way? UV is a cli tool.
@vidyesh
@vidyesh 4 ай бұрын
@@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 4 ай бұрын
That is not something I can help you with. Most likely an editor or OS language setting.
@vidyesh
@vidyesh 4 ай бұрын
@@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.
@erfan_ops
@erfan_ops 2 ай бұрын
i was expecting to see a 'K' by the subscribers count
@this-is-bioman
@this-is-bioman 2 ай бұрын
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.
@kamurashev
@kamurashev 2 ай бұрын
Cough npm cough… it might be good the only thing it must be adopted as a language standard first
@guidyouguy7306
@guidyouguy7306 2 ай бұрын
Poetry does the same thing
@Timnology-r4s
@Timnology-r4s 2 ай бұрын
Some of it, yes. Though poetry isn't fully PEP compliant and is significantly slower on large projects.
@tiolv1174
@tiolv1174 4 ай бұрын
UV for Python… (Almost) All Batteries Included
17:35
ArjanCodes
Рет қаралды 98 М.
uv - Ruff + Pytest Tool Management (in a FastAPI Project)
19:28
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
10 Tips to Become REALLY Good at Python
27:39
ArjanCodes
Рет қаралды 32 М.
Simplifying Python Development with uv
33:36
Michigan Python
Рет қаралды 845
Kafka Consumers in Python - A Walkthrough
14:28
Quix
Рет қаралды 8 М.
The New Python 3.13 Is FINALLY Here!
20:39
ArjanCodes
Рет қаралды 101 М.
Modern Python logging
21:32
mCoding
Рет қаралды 218 М.
uv: An Extremely Fast Python Package Manager
40:34
Jane Street
Рет қаралды 70 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН