MENU

Fun & Interesting

uv - Python package and project management | Inline Script Metadata

BugBytes 22,233 lฦฐแปฃt xem 6 months ago
Video Not Working? Fix It Now

โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

โญTop resource to learn Python - https://datacamp.pxf.io/kOjKkV โญ

uv is a new, very fast tool for managing Python projects, versions and dependencies - we'll dive into core features in this video, including initializing projects, adding/removing dependencies to projects and scripts, inline script metadata and the use of pyproject.toml to manage dependencies (including optional and development dependencies)

๐Ÿ“Œ ๐—–๐—ต๐—ฎ๐—ฝ๐˜๐—ฒ๐—ฟ๐˜€:
00:00 Intro to uv
02:03 Installing uv
04:01 Initialise a project with uv
05:06 pyproject.toml file
06:20 Installing dependencies with uv
10:00 Creating FastAPI app and running it with uv
11:59 uv sync command for updating environments
14:03 Installing Optional and Development Dependencies with UV
17:13 Removing dependencies with uv
17:47 Viewing the dependency tree with โ€˜uv treeโ€™ command
18:18 Running scripts with UV
20:40 Inline Script Metadata

๐—ฆ๐—ผ๐—ฐ๐—ถ๐—ฎ๐—น ๐— ๐—ฒ๐—ฑ๐—ถ๐—ฎ:
๐Ÿ“– Blog: https://bugbytes.io/posts/
๐Ÿ‘พ Github: https://github.com/bugbytes-io/drf-course-api
๐Ÿฆ Twitter: https://twitter.com/bugbytesio

๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป:
uv docs: https://docs.astral.sh/uv
uv Github: https://github.com/astral-sh/uv
pyproject.toml file: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
Inline Script Metadata: https://packaging.python.org/en/latest/specifications/inline-script-metadata/

#python

Comment