Тёмный

Python Poetry in 8 Minutes 

ArjanCodes
Подписаться 249 тыс.
Просмотров 71 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@ArjanCodes
@ArjanCodes 6 месяцев назад
💡 Get my FREE 7-step guide to help you consistently design great software: arjancodes.com/designguide.
@js_dev_uk
@js_dev_uk 5 месяцев назад
I just went to download the guide and when I clicked on the link in the email I reveived I got a 404 Not Found error.
@ethancarter2664
@ethancarter2664 5 месяцев назад
Thank you Arjan! I got in over my head and somehow landed a job at a cutting edge 'move fast and break things' place as a SWE, as the sole developer on a team, with no onboarding docs (in response, I pilfered onboarding docs from other teams) and had to quickly learn docker, poetry, vscode, AWS, fastapi and even MacOS, all at once. I was a pireqs pip-venv guy, but they require me to learn poetry, so this was helpful. Oh and my previous SWE experience? Officially none. I've been a solo cowboy my whole life. All that's left to do is fight my encroaching imposter syndrome.
@ArjanCodes
@ArjanCodes 5 месяцев назад
I'm glad to hear that my content helped you, Ethan! Good luck, remember that you are skilled and capable, fight that imposter syndrome!
@raffritter6766
@raffritter6766 6 месяцев назад
A video about semantic versioning would be nice! Keep it up : )
@armenmkrtchyan6000
@armenmkrtchyan6000 6 месяцев назад
Useful video, Thank you! Will be great to have a video explaining versioning of the project, synchronizing it with git tag etc. So, complete versioning workflow will be great.
@vikaspoddar001
@vikaspoddar001 6 месяцев назад
Please do a video comparing different tools like linters, formatter, type checker, package manager, project manager and environment manager in terms of python ecosystem Another can you do a video covering the state of rustpython ( rust based python interpreter) and pyiodide ( wasm port for python ) 😅😅😅😅😅
@James-vd3xj
@James-vd3xj 6 месяцев назад
It's been a while since I've tried Poetry and hope to try it again after this video. I think the issue I had was that it was consistently unable to install packages or some packages did not contain the proper poetry requirements. I just reverted back to venv. But I always forget to pip freeze. Now this is the content I love. Keep it up and thank you!!
@ArjanCodes
@ArjanCodes 6 месяцев назад
Glad you liked the video, James! Thank you for the comment :)
@VadimSuharnikov
@VadimSuharnikov 6 месяцев назад
I found pdm to be a better alternative to poetry. Three years ago, poetry was too buggy and had low-level errors. That was my reason for moving from poetry to pdm.
@norbertocammayo2334
@norbertocammayo2334 6 месяцев назад
Great, just missing adding dev dependencies. Thanks as always
@haimroizman6440
@haimroizman6440 2 месяца назад
As always it was really a great video in all aspects.... Thanks a lot
@ArjanCodes
@ArjanCodes 2 месяца назад
Glad you liked it!
@depressedknight369
@depressedknight369 5 месяцев назад
Yes please, video on semantic actions for Poetry
@vladrybin8847
@vladrybin8847 6 месяцев назад
Using poetry is more complicated than venv if you have a lot of projects/microservises with different python versions. Especially if it's in one major version. For example python12.0, python12.2, python11.
@3agoskin
@3agoskin 2 месяца назад
Thank you for this quick tutorial, very useful!
@Alebobb
@Alebobb 4 месяца назад
Very useful, thanks!
@ArjanCodes
@ArjanCodes 3 месяца назад
You're welcome!
@christopheanfry2425
@christopheanfry2425 6 месяцев назад
Very nice video!!! Do you recommend to completely use poetry instead of using venv and pip install. If I understood well it does all of that? Thanks
@Doppelwulf
@Doppelwulf 6 месяцев назад
I would like to see a semantic versioning video.
@AlexanderWhillas
@AlexanderWhillas 6 месяцев назад
I gave up on Poetry (the software, I still love poetry!) and pipenv coz at some point they always messed up the vir. env. Now I just use the native `python3.x -m venv __venv__` (note gives control over python version) and VU to handle locking `vu pip compile requirements.in` (blindingly fast!). Poetry and pipenv are not transparent in the way they work so when something goes wrong you don't know where to start.
@ChristopheFurmaniak
@ChristopheFurmaniak 6 месяцев назад
vu or uv?
@owaraigeinin
@owaraigeinin 3 месяца назад
I'm confused, how can you activate venv (with poetry shell) right after installing dependencies? isn't should be activate the venv first? Sorry I'm still new to poetry, someone pls explain
@blanky_nap
@blanky_nap 6 месяцев назад
After I tried uv, pip, poetry and other tools are simply disappeared
@mzhomie8880
@mzhomie8880 14 дней назад
Looking for a tutorial with poetry, building a REST server and debugging in VSCode.
@dolamuoludare4383
@dolamuoludare4383 6 месяцев назад
A video about semantic versioning would be perfect
@AndyTutify
@AndyTutify 6 месяцев назад
You should try out uv by the creators of Ruff. It is unbelievably quick. More lightweight than Poetry too.
@baterosmith2
@baterosmith2 6 месяцев назад
Poetry advanced please!!!
@demasjaring5435
@demasjaring5435 6 месяцев назад
Hi, I have a question about the wheel files. When I want to install it on a production environment, it is common to create a new spiritual environment on that production environment or you can just install the package there.
@yomajo
@yomajo 6 месяцев назад
Tried poetry due to previous Arjan video, bet still prefer pipenv over poetry.
@gerardorosiles8918
@gerardorosiles8918 6 месяцев назад
I've run into pipenv a lot lately. What would be reasons to use poetry vs. pipenv or the other way around?
@arturabizgeldin9890
@arturabizgeldin9890 6 месяцев назад
please make a video about semantic versioning
@thisoldproperty
@thisoldproperty 12 дней назад
I just saw this video, and I agree, Poetry is a far better solution. I'd love to know a simple way to 'upgrade' from the requirements.txt solution to Poetry.
@ArjanCodes
@ArjanCodes 10 дней назад
ChatGPT? 😬
@poke_champ
@poke_champ 5 месяцев назад
can you do a video about combining conda and poetry
@Lexaire
@Lexaire 6 месяцев назад
Please make a video on rye! It's like Poetry but much faster.
@israrhussainrao8022
@israrhussainrao8022 6 месяцев назад
can you please guide or make video on prevetion from SQL injection in django or Ajax request
@alejandroenriquez8508
@alejandroenriquez8508 6 месяцев назад
Amazing as always, but the future is not Poetry but UV, same creators of Ruff.
@rikschaaf
@rikschaaf 6 месяцев назад
Python poetry: In Python's syntax, lines elegantly align, Indentation guides, like a poet's rhyme. Lists, loops, and logic, all in one dance, In Python's embrace, solutions advance. Libraries shine like stars in the night, NumPy, Pandas, unlocking insight. From novice to master, its simplicity charms, In Python's realm, creativity swarms. Python Poetry: [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"
@MadToroLoco
@MadToroLoco 2 месяца назад
great video
@florenciaracciatti6465
@florenciaracciatti6465 6 месяцев назад
Great! thanks for sharing
@ArjanCodes
@ArjanCodes 6 месяцев назад
I'm glad you liked it!
@sany2k8
@sany2k8 6 месяцев назад
Need another video about poetry with "poetry update", "poetry lock --no-update", "poetry update ", symantic versioning, and some more features of poetry e.g. dev dependencies, private package, test case conf. etc. Thanks in advanced sir 👍
@ExplicableCashew
@ExplicableCashew 6 месяцев назад
For various reasons, not the least one being legacy systems, I've been sticking to plain venvs and pip. So. Witnessing poetry actually uninstall unneeded dependencies during the remove operation gave me a small nerdgasm
@AndyTutify
@AndyTutify 6 месяцев назад
Check out uv!
@hubstrangers3450
@hubstrangers3450 6 месяцев назад
Thank you...
@ArjanCodes
@ArjanCodes 6 месяцев назад
My pleasure!
@DM-py7pj
@DM-py7pj 6 месяцев назад
how do the packages end up inside the venv?
@rfmiotto
@rfmiotto 5 месяцев назад
By default, poetry will not install the dependencies inside your project folder. To do so, you need to configure it using this command: poetry config virtualenvs.in-project true
@DM-py7pj
@DM-py7pj 5 месяцев назад
@@rfmiotto thanks
@coopernik
@coopernik 6 месяцев назад
Pretty cool stuff
@ArjanCodes
@ArjanCodes 6 месяцев назад
Thank you, Cooper!
@DSingh-ej3cu
@DSingh-ej3cu 6 месяцев назад
Are people using Poetry in 2024 for production code?
@Nalewkarz
@Nalewkarz 6 месяцев назад
I don't like it, it reminds me javascript node ecosystem and often behaves unstable. Poetry tries to do too much stuff at once and has plugins. You can't even use .env files without installing a plugin. For dependencies only i like Pipenv. Does the job well, don't try to do everything.
@southpole76
@southpole76 6 месяцев назад
Replicating the node workflow is exactly the point. We use it in a system where js frontend and python backend tool chains need to be managed in parallel
@ReRubis
@ReRubis 6 месяцев назад
Poetry is too overloaded with unnecessary stuff. Why the hell do you need to manage Python versions inside your project? :\ Why does it hide .venv from me in who knows where? :\ Although I love dev containers, maybe that's why I hate poetry. If you are using pycharm with a ton of "quality of life"(no) features, poetry is probably good then. :\
@bennetb01
@bennetb01 6 месяцев назад
Poetry doesn't sit right with me. Lack of support or any plans on supporting PEP 621. I like lockfiles but PyPA needs to get their shit together and there needs to be one way to build packages in python and I don't feel like poetry is it. I don't do a lot of Python though and I look at things like NPM/Yarn, Rust's Cargo, and the Go tool and they are ubiquitous because they are standardized.
@Am6-9
@Am6-9 6 месяцев назад
I’m still relatively new to python, and even newer to python packaging, and tbh to me it seems like one hot, ever changing mess, and consequently a plethora of different third party tools around it. When the python packaging user guide lists seven different techniques for single sourcing the package version, there is something wrong…
@User-rm9cw
@User-rm9cw 5 месяцев назад
What is it for?
@miguelangelfernandezguerre1681
@miguelangelfernandezguerre1681 6 месяцев назад
awesome video Arjan! it would be great to see a video about semantic versioning approaches using poetry, you rock man!
@payrus963
@payrus963 6 месяцев назад
poetry is trash
@frantisekcastek174
@frantisekcastek174 6 месяцев назад
@Arjan, yes please, numbering of versions is a good idea for a video. Connected with github flow ... even better 😊
@manchenkoff
@manchenkoff 6 месяцев назад
Waiting for another video about pdm! 😅 Maybe even with comparison
@aflous
@aflous 6 месяцев назад
Rye is the way to go
@sergedmytrienko5605
@sergedmytrienko5605 Месяц назад
Yop, i use a mac pro, my system version of python is 3.12, for some reasons I install python 3.9.2 with pyenv, and i want to install django in my venv, but poetry add django only tries to install django 5.2 and not 4.2 (which is python 3.9 compatible), is poetry compatible with pyenv ?
@LordKaos666
@LordKaos666 5 месяцев назад
Nice short version of your previous Poetry video...very useful for me to refresh concepts. Design guides downloaded to take a peek later ;-) Thanks!
@ArjanCodes
@ArjanCodes 4 месяца назад
Glad it was helpful!
@kokokokoalabrothers6009
@kokokokoalabrothers6009 6 месяцев назад
pip freeze > requirements.txt ftw 😂
@0110101110
@0110101110 2 месяца назад
i prefer pdm over poetry. Make a video about pdm
@zskater1234
@zskater1234 6 месяцев назад
Try rye
@murtadha96
@murtadha96 6 месяцев назад
Great stuff! thanks man
@ArjanCodes
@ArjanCodes 6 месяцев назад
Glad you liked it!
@fabrelambeau5858
@fabrelambeau5858 6 месяцев назад
Yes please, a video on versioning with poetry would be great. I’m using the poetry-dynamic-versioning plugin but I’m not sure it’s really warranted…
@mariochi1499
@mariochi1499 6 месяцев назад
Great video as always! Wondering if Poetry would be helpful for managing the dependencies that are being used in lambda layers? SInce there is a size limit for a single lambda layer and they need to be divided up to 5 layers for a single lambda.
@VitthalMirji
@VitthalMirji 6 месяцев назад
Please do video on semantic versioning
@KA3AHOBA94
@KA3AHOBA94 6 месяцев назад
Can i use pyinstaller with poetry?
@edgeeffect
@edgeeffect 6 месяцев назад
Very nice... shades of `package.json` or `cargo.toml` ... but since I've become obsessed with Docker, and I develop in Docker, deploy in Docker... "Docker, Docker, Docker!!!", then a pip install in my Dockerfile seems to be the right place to do this sort of thing... I think I deserve some kind of prize for stupidity! I came here expecting... I dunno.... poems written about Python... poems written IN Python??? The fact that there might be a Python package simply called "poetry" was light years away from my mind.... Yeah, can I have that stupidity prize now please?
@julians.2597
@julians.2597 6 месяцев назад
read the comments again, someone did indeed write a poem lol
Далее
Avoid These BAD Practices in Python OOP
24:42
Просмотров 54 тыс.
Avaz Oxun - Yangisidan bor
14:29
Просмотров 361 тыс.
why I will never use python-poetry
9:09
Просмотров 60 тыс.
How Much FASTER Is Python 3.13 Without the GIL?
10:00
Просмотров 159 тыс.
*Next-door 10x Software Engineer* [FULL]
4:50
Просмотров 641 тыс.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
Python 3.12 Generics in a Nutshell
6:22
Просмотров 50 тыс.
How to Use Poetry in Python to avoid Dependency Hell
20:21
Every Developer Should Know This
15:38
Просмотров 27 тыс.
Requests vs HTTPX vs Aiohttp
15:11
Просмотров 37 тыс.
Is Your API ACTUALLY Ready for User Traffic?
6:59
Просмотров 96 тыс.
Avaz Oxun - Yangisidan bor
14:29
Просмотров 361 тыс.