Some tricks with UV and a new Python project: uvtrick!

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

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

  • @krzychu1463
    @krzychu1463 24 дня назад +2

    I just started using uv in my day to day projects and it is amazing. Cool to see that once the limitations of tools are dropped python gets even more useful :)

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

    Started using uv day-to-day 2 weeks ago, and it's already an integral part of my workflow. Can't imagine ever going back to "just" pip. The tools for CI/CD is also very nice! God I hope this product (project?) lasts!

  • @calmcode-io
    @calmcode-io  2 месяца назад +5

    The first part of the course is out by the way!
    calmcode.io/course/uv/pip

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

    This is a great trick! Love your stuff :)

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

    Beautiful! Thanks for sharing!

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

    Very crafty! Thankyou for sharing this.

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

    According to the benchmark results, looks like version 1.5 was also written in rust, like uv :) just kidding :) cool video!

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

    Your voice matches your channel name, something about it makes me really calm!

    • @calmcode-io
      @calmcode-io  Месяц назад

      It've had a lot of practice ... calmcode.io ;)

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

    Thank you for sharing your wisdom. What would be really cool while writing in Python is if when working in jupyter lab notebook or an ide eg vscode, pycharm, etc. that when you hovered over a class, function, variable and other types that it gives you a nice representation of the input and output

    • @calmcode-io
      @calmcode-io  2 месяца назад +1

      Jupyter has a feature for that called the contextual helper.
      This old talk of mine has a demo here:
      ruclips.net/video/yXGCKqo5cEY/видео.htmlsi=3X-t8-23iEGb_zn5&t=293

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

      @@calmcode-io Thank you 😀

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

    So, it's like yarn of the NodeJS world where npm was knocked off the pedestal by it. I like the uv run --with. That's very handy to not be installing other dependencies for some helper scripts.

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

    Am I wrong to see "uv run" usage as a type of "Nix-Shells" capability for Py Envs? Its an abstracted POV, but after seeing people fall out of romance with Poetry, an all-in-one py management tool needs to do more than "venv and pip wrap", especially now with wheeling. This might actually give me a reason as a system designer to get away from the microservice spaghetti monster masquerading as a version manager when looking for adaptive system builds... without learning a new language or distro-locking the OS base! Thank you for showing the use cases useful for more than click bait.

    • @calmcode-io
      @calmcode-io  15 дней назад +1

      I am not familiar with nix, so I cannot make the proper comparison. In short though: yeah UV is super!

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

    Really cool!

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

    I don't know uv that well, but I thought uv was a lot like cargo, which means it should automatically detect a project and adopt the project's environment, meaning `uv run` automatically adopts the venv...? Correct me if I'm wrong, but if I was not wrong, then why use `source ./.venv/bin/activate`...?

    • @calmcode-io
      @calmcode-io  Месяц назад

      I am unfamiliar with cargo so I can't fully answer the question.

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

    Is there a reason why you use uv pip install requests vs uv add requests?

    • @calmcode-io
      @calmcode-io  2 месяца назад

      Mainly for tutorial purposes. I am not dealing with a project here, so no need for pyprpject.toml

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

    Could u please Compare UV with poetry ??

    • @calmcode-io
      @calmcode-io  Месяц назад

      I can't, never really used it.

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

    Really cool!