How to Use Poetry in Python to avoid Dependency Hell

  Рет қаралды 18,074

Earthly

Earthly

Күн бұрын

Пікірлер: 41
@jonron3805
@jonron3805 Жыл бұрын
The explanation of Poetry and comparing it with other virtual environments has been like none I have seen before. Its a wonderful explanation. The only thing I would have liked to see in addition to what you showed was an EXAMPLE where there is a dependency conflict in some modules and how introducing poetry will resolve the issue.
@EarthlyTech
@EarthlyTech Жыл бұрын
Hey, Thanks for watching! That is good feedback. I'm not sure I'll be making another video on Poetry, but if I do I try to cover a specfic dependency conflict.
@jdavid82
@jdavid82 10 ай бұрын
this video helped me with 80% of getting there, now I need to look for where to add the hello world code and how to run it
@yashashav_dk3766
@yashashav_dk3766 4 ай бұрын
The ADAM GORDON BELL from the CoRecursive podcast!!! DAMNNNN.. Love your podcasts Adam. Thanks for giving back to the community! Instant sub!
@kristiannn
@kristiannn 10 ай бұрын
this is one of the best videos on youtube about dependency management in python
@EarthlyTech
@EarthlyTech 9 ай бұрын
Thank you so much for your kind words! I'm glad you found the video helpful.
@alexv2401
@alexv2401 9 ай бұрын
Thank you for your content. Your contributions to the KZbin Python Hive mind do not go unnoticed. Sincerely, A passionate Pythonista
@EarthlyTech
@EarthlyTech 9 ай бұрын
Wow, thank you
@jeffg4686
@jeffg4686 7 ай бұрын
Nice. I like the choice of toml - aligns with Rust - my other language.
@semeglohlokoh8197
@semeglohlokoh8197 2 ай бұрын
Thank you for explaining !
@JevKuznetsov
@JevKuznetsov 7 ай бұрын
To go one step further - devcontainers are an even better solution. Build once - reproduce on any system.
@EarthlyTech
@EarthlyTech 7 ай бұрын
Do you use the dev container support in VS Code? I find that is pretty nice.
@BryanChance
@BryanChance 11 ай бұрын
I don't know which is worse python or nodejs
@thygrrr
@thygrrr 10 ай бұрын
Node. It's not even a competition.
@julians.2597
@julians.2597 8 ай бұрын
@@thygrrr yeah, but it's bad enough
@eugeneL_N1E104
@eugeneL_N1E104 8 ай бұрын
as to future potential topics, python typing looks not very clear when I write class methods for non-builtin classes. also wondering since which python3.* does this typing has really performance improvements (or "dev acceleration" as IDE use them)
@AghilSoi
@AghilSoi 4 ай бұрын
'poetry' is not recognized as an internal or external command, operable program or batch file. facing this error
@2002budokan
@2002budokan 10 ай бұрын
1. What if I don't want to publish my package on pypi but use it on my own local machine as a single executable? For example on Windows machine as an .exe file, how can I build this file? 2. And in this video it is not clear, how poetry breaks the diamond that you show us at the beginning of your video. What if we need two different version of the same package, for two libraries we need in our project, how poetry breaks the diamond and put two different versions of the same library in venv?
@EarthlyTech
@EarthlyTech 9 ай бұрын
Poetry doesn't break the diamond problem. It lessens its scope, as all virtual envs in python do. within a single projects its still not possible to depend on two version of something, unless the new version is published with a different name.
@harshitmishra3318
@harshitmishra3318 5 ай бұрын
At 8:25 what he is actually tell about the git commit ??? I didn't get that, can any one helps me to understand that ??
@hazard_111
@hazard_111 11 ай бұрын
Great video. Can you please do one on Pants build system as well?
@EarthlyTech
@EarthlyTech 11 ай бұрын
Thanks. Pants video may come. I do have this interview with Pants creator: kzbin.info/www/bejne/o3bbaYGNoplraZI
@cerkal726
@cerkal726 6 ай бұрын
Explanation was nice. But I think you have missed main part of video that is how to avoid dependency hell. Like when installing two packages which use different versions of same depended package is still resulting in error. Which you explained in the earlier section of the video but didn't actually explain if it could be solved or not using peotry.
@EarthlyTech
@EarthlyTech 5 ай бұрын
Yes, you are right! Poetry only solves when you use two separate venvs. Otherwise, it will attempt to find a version that is compatible with both and otherwise raise an error. At that point you need to find a singular version that works for both yourself or try otherwise adjust deps so that there is a singular version that works with your use case.
@NamasenITN
@NamasenITN 9 ай бұрын
Can I install poetry with poetry? Or will it cause an anomaly in the space time continuum?
@EarthlyTech
@EarthlyTech 9 ай бұрын
An anomaly for sure! The universe will be replaced with another universe where Python packaging is even more complex.
@OmPrasadKoirala
@OmPrasadKoirala 5 ай бұрын
great job
@LodeNachtergaele
@LodeNachtergaele 10 ай бұрын
What do you think about Pixi ?
@EarthlyTech
@EarthlyTech 9 ай бұрын
I'm not familiar with it. Do you like it?
@intelligenceservices
@intelligenceservices 6 ай бұрын
Python is supposed to be so clever terse and elegant. If it was an apartment, it would be as spotless as patrick bateman's, but they have such a pile of garbage outside you need a Shai-Hulud to get to the door. Just a little poetry there.
@mumk
@mumk 7 ай бұрын
Use Nix instead
@windowsrefund
@windowsrefund 6 ай бұрын
How?
@2002budokan
@2002budokan 10 ай бұрын
cargo4python => poetry
@EarthlyTech
@EarthlyTech 10 ай бұрын
Exactly
@windowsrefund
@windowsrefund 6 ай бұрын
I LOVE this video but please make the Internet a better place and stop referring to directories as "folders". Thumbs up! Also, the term "open source" is totally lame. The proper term is "Free Software".
@EarthlyTech
@EarthlyTech 5 ай бұрын
I grew up on windows. Some habits die hard.
@AghilSoi
@AghilSoi 4 ай бұрын
'poetry' is not recognized as an internal or external command, operable program or batch file. help me with this error
How to Create and Use Virtual Environments in Python With Poetry
14:43
why I will never use python-poetry
9:09
anthonywritescode
Рет қаралды 63 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 28 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 136 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 108 МЛН
The Truth About Learning Python in 2024
9:38
Internet Made Coder
Рет қаралды 215 М.
The New Python 3.13 Is FINALLY Here!
20:39
ArjanCodes
Рет қаралды 89 М.
Don't Use Pip For Big Projects - Use These Instead
7:56
Isaac Harris-Holt
Рет қаралды 26 М.
Setup a Python project with PDM
12:22
Orchard Dweller
Рет қаралды 6 М.
Stop Wasting Hours - Every Python Dev NEEDS to Master Poetry
10:54
The secret to making Golang error handling a breeze
13:46
Earthly
Рет қаралды 12 М.
Manage Multiple Python Versions with PyEnv
9:54
NeuralNine
Рет қаралды 23 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 202 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 28 МЛН