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.
@AJXD213 сағат бұрын
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!
@porlando1222 сағат бұрын
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!
@eboyd532 күн бұрын
What IDE are you using?
@Timnology-r4s2 күн бұрын
I wouldn't call it an IDE though it comes close to one: in this video I use neovim, with the astronvim.com/ distribution. Typically I use JetBrains IntelliJ for my day to day job.
@kamurashev2 күн бұрын
Cough npm cough… it might be good the only thing it must be adopted as a language standard first
@williansuarez39883 күн бұрын
¡Excelente! aunque no entendí todo ¿que puedo hacer para aprender y llegar a ese nivel?
@froozynoobfan3 күн бұрын
just working on my own package, any reason you did not use "uv build"?
@Timnology-r4s3 күн бұрын
I see I made a boo Boo there. I wrote the repo before uv added a build backend, but recorded the video after they did. So the cli command uses `uv build`, but the CI uses `uv run build`. It should be `uv build` everywhere. Good catch!
@zuowang51853 күн бұрын
Is it fast on cold CI start? Does it generate cross platform lockfile?
@Timnology-r4s3 күн бұрын
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.
@tomasemilio4 күн бұрын
High quality videos, congratulations!
@70066084 күн бұрын
Tip: vertical flip your head video to point to the screen instead off screen thanks for the video!
@Timnology-r4s4 күн бұрын
Oh snap, that's a good tip. I've never even thought about that!
@this-is-bioman5 күн бұрын
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.
@tomasemilio6 күн бұрын
works great, but my lsp is complaning when i install other packages, as though they weren't installed
@Timnology-r4s6 күн бұрын
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.
@tomasemilio6 күн бұрын
@@Timnology-r4s hero! haha amazing and yeah that is it. i will slowly transition to UV, it really looks amazing.
@bigoper6 күн бұрын
New SUB here Just flawless ❤
@SalahSaoud-j5s6 күн бұрын
Wonderful video. Just one question. In order to format and apply the fixes before commits, do you run each ruff, pytest, pyright ... commands manually or do you use some other tools like Tox?
@Timnology-r4s6 күн бұрын
Good question! Perhaps I should do a video about that as well. I typically setup a solid pre-commit hook that does all that, as well as making sure my editor does formatting on auto-save.
@SalahSaoud-j5s6 күн бұрын
@@Timnology-r4s That would be a great follow up video for this one. I look forward for that. Thanks again for the great videos.
@juvewan7 күн бұрын
A great video for using uv in CI. Do you use uv in pre commit hooks or in IDE? I am trying to automate python code formatting, so IDE and/or pre-commit hooks can take care of it, and CI won't complain about formatting error.
@Timnology-r4s7 күн бұрын
Good question. I use both. For neovim none-ls with ruff, and in IntelliJ with the ruff plugin. This takes care of auto formatting on save. Pre-commit books are there to verify and pick up anything that the IDE missed (as well as doing a bunch of other things, like running tests)
@juvewan6 күн бұрын
@@Timnology-r4s thank you!
@guidyouguy73067 күн бұрын
Poetry does the same thing
@Timnology-r4s7 күн бұрын
Some of it, yes. Though poetry isn't fully PEP compliant and is significantly slower on large projects.
@noopurp1238 күн бұрын
What terminal are you using there?
@Timnology-r4s8 күн бұрын
www.warp.dev/ Fantastic terminal
@felipeadeildo8 күн бұрын
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-r4s8 күн бұрын
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
@Anh_AI9 күн бұрын
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-r4s9 күн бұрын
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 :)
@tridibbiswas336110 күн бұрын
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-r4s10 күн бұрын
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/)
@mrttsmn10 күн бұрын
Well this looks great but do i need to manually update and manually manage dependencies for every uv version?
@Timnology-r4s10 күн бұрын
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.
@agentDueDiligence11 күн бұрын
Good content!
@agentDueDiligence11 күн бұрын
This was a great video. I understand now, why you should maybe use uv in python projects
@rosslote189511 күн бұрын
I'm following this exactly and locally --locked is fine but when I trigger the action it fails. Any ideas? All of my code is commited and pushed
@rosslote189511 күн бұрын
I change the version of astral-sh/setup-uv@v3 to latest and it fixed the issue. Great content by the way.
@Timnology-r4s10 күн бұрын
Glad you found the fix!
@1Docflash12 күн бұрын
lol. may be great tool but i followed your directions and only get error messages. bummer glad it worked for other people
@Timnology-r4s12 күн бұрын
What kind of error messages did you get?
@jarrettbullion154514 күн бұрын
partly why your dependencies installed so quick is because they are cached on your machine.
@Timnology-r4s14 күн бұрын
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.
@DataScienceandAI-doanngoccuong19 күн бұрын
tui thấy giống npm install (package.js) trong javaScripts.
@djpaulytee19 күн бұрын
Hi Tim, interesting video. What is the plugin you are using for the popup terminal?
@Timnology-r4s19 күн бұрын
It's the build in terminal In astronvim: toggleterm (github.com/akinsho/toggleterm.nvim)
@erfan_ops19 күн бұрын
i was expecting to see a 'K' by the subscribers count
@samjiman23 күн бұрын
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.
@EmersonArenas-n1v23 күн бұрын
fantastic video, can you make a video of Granian and Rust based frameworks?
@Timnology-r4s22 күн бұрын
Thank you! I'm not planning on doing a lot of lower level videos, if anything it's going to be a video of FastAPI which used Granian under the hood as ASGI framework.
@pyalgoGPT24 күн бұрын
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-r4s22 күн бұрын
Thank you for your kind words!
@froozynoobfan26 күн бұрын
i'm loving your vids, maybe something like metrics would be right up your alley
@Timnology-r4s22 күн бұрын
I do have a video planned about metrics and tracing (e.g. Sentry, Datadog, Prometheus, otel etc). I'm still in the brainstorming phase though :)
@froozynoobfan26 күн бұрын
great video! i'll watch more of you!
@sergio.sepulveda27 күн бұрын
Subscribed! Your explanation is very professional, thank you from Chile 🇨🇱
@adrians.965Ай бұрын
I watch youtube from my mobile phone most of the time. The font is too small for me. 🥲
@adrians.965Ай бұрын
The code font I mean.
@danfreimannАй бұрын
Nice Video! That will definitely help me with creating some piplines for my python applications.
@rschalchАй бұрын
I used to have pyenv creating some venvs for my machine, not project related ... can uv do the same?
@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
@abessesmahi4888Ай бұрын
Thank you so much for this great and high quality content. Please increase the editor font size a little bit. Subscribed <3
@Timnology-r4sАй бұрын
Will do!
@0xBertoАй бұрын
Question, so I can run any of my already existing Python projects just preface the command with UV (after installing)?
@Timnology-r4sАй бұрын
Provided your toml file is setup correctly, yes.
@0xBertoАй бұрын
Great explanation in the right amount of time sir. Thank you 🙏 subbed
@rikaminskiАй бұрын
Thanks for easy share.
@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Ай бұрын
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Ай бұрын
Great video! Keep at it 💪
@vidyeshАй бұрын
UV is malfunctioning on Jetbrains fleet.
@Timnology-r4sАй бұрын
In which way? UV is a cli tool.
@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Ай бұрын
That is not something I can help you with. Most likely an editor or OS language setting.
@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.
@SimoneGiacomelli2 ай бұрын
The content quality is amazing. Complete, concentrated and straight to the point. Awesome, thank you!
@Timnology-r4s2 ай бұрын
Thanks for the positive feedback!
@tiolv11742 ай бұрын
@akshayshinde85732 ай бұрын
Great work, really high quality content.
@Timnology-r4s2 ай бұрын
Glad you think so!
@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-r4s2 ай бұрын
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Ай бұрын
The cat he's using in the video is `bat`, presumably just with `alias cat=bat`
@blanky_nap2 ай бұрын
Great tool! Clean explanation. Would like to see more tutorials on uv