Hatch: A Modern, Extensible Python Project Manager - Talk Python to Me Ep.408

  Рет қаралды 6,826

Talk Python

Talk Python

Жыл бұрын

In recent years, there has been a lot of experimenting how we work with dependencies and external libraries for our Python code. There is pip, pip-tools, Poetry, pdm, pyenv, pipenv, Hatch and others workflows. We dove into this deeply back on episode 406: Reimagining Python's Packaging Workflows. We're back with Ofek Lev to take a deeper look at Hatch.
▬▬▬▬ About the podcast ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
This video is the uncut, live recording of the Talk Python To Me podcast ( talkpython.fm ). We cover Python-focused topics every week and publish the edited and polished version in audio form. Subscribe in your podcast player of choice (100% free) at talkpython.fm/subscribe.
▬▬▬▬ Guests ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Ofek on Twitter: / ofekmeister
▬▬▬▬ Links and resources from the show ▬▬▬▬▬▬▬▬▬▬▬▬
Hatch: hatch.pypa.io/latest/
Mamba: github.com/mamba-org/mamba
Hatch env management: hatch.pypa.io/latest/cli/refe...
Packaging a Python project tutorial: packaging.python.org/en/lates...
Customize project generation: hatch.pypa.io/latest/config/p...
Textual: www.textualize.io/
Ruff on Talk Python: talkpython.fm/episodes/show/4...
RustUp: rustup.rs/
Conda: docs.conda.io/en/latest/
import antigravity: xkcd.com/353/
Listen this episode on Talk Python: talkpython.fm/episodes/show/4...
Episode transcripts: talkpython.fm/episodes/transc...
▬▬▬▬ Dive deeper ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Listen to the Talk Python To Me podcast at talkpython.fm Over 250 hours of Python courses at training.talkpython.fm/courses Follow us on on Mastodon. Michael: fosstodon.org/@mkennedy & Talk Python fosstodon.org/@talkpython

Пікірлер: 8
@benshapiro9731
@benshapiro9731 9 ай бұрын
Hatch is so underrated it is criminal. Literally is better than poetry
@LusoCMD
@LusoCMD Жыл бұрын
Great talk!!
@Rostgnom
@Rostgnom 4 ай бұрын
Doing excursions in the JavaScript world, I don't understand why none of the previous package managers like Poetry or Pipenv had script runners builtin. Specifying every tool your project needs in a package.json is just so awesome in JS projects and an absolute no-brainer to have in Python aswell.
@katester7
@katester7 4 ай бұрын
Here’s my use case: data scientist writing code for repeated one-off analyses (that differ a little bit time to time but not much) that’s trying to write better and easier to work with code. Is hatch a good fit for this? Should I design my project code like a package? I think I get overwhelmed with all the different features but would like to use hatch bc it seems like I could incorporate things easily later on (like pytest). Is it worth the investment or should I just stick to a more simple structure?
@ofek_lev
@ofek_lev 4 ай бұрын
Yes I think Hatch would be a great fit for your use case! There would be no need to turn it into a package but rather just create environments as you see fit and scripts to invoke your code. Your use case (if a single file script with dependencies) will become much easier in the next minor release when PEP 723 is implemented.
@ChathuraJayalath
@ChathuraJayalath Жыл бұрын
Hi I am a very new user of hatch, could someone tell me where to find documentation about how to publish with hatch instead of twine? Thank you for the wonderful tool :)
@terraflops
@terraflops Жыл бұрын
i think i know why I have a hard time enjoying these podcasts (i subscribed 2+ years ago then unsubscribed and back again.). My only complaint is that there is a major assumption the listener/ viewer knows all packages mentioned and know what it does. I do not remember anyone saying, "this package library X is for Y uses". The screen does show the landing page or basic info of things but if i was only listening, i would be lost. I work in Python and R, so it is hard to keep up with all the packages and sometimes listen only to this podcast. It would be nice to have an intro to whatever you mention on the show, much like RealPython podcast does.
@mikeckennedy
@mikeckennedy Жыл бұрын
Hi Dax. That's interesting feedback. There is a careful balance of not boring people to death describing what Django is one more time and not giving enough background on some package people might not know. For example in this one, I threw out cibuildwheel. We did do an episode a year ago on that exclusively, but because that package isn't really germane to the discussion, we didn't go much deeper into it. If you know, it might interesting. If not, it's kind of irrelevant. Thanks for watching/listening.
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 122 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 15 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
7 Tips To Structure Your Python Data Science Projects
14:49
ArjanCodes
Рет қаралды 112 М.
why I will never use python-poetry
9:09
anthonywritescode
Рет қаралды 55 М.
How to Use Poetry in Python to avoid Dependency Hell
20:21
Earthly
Рет қаралды 11 М.
Is UV the FUTURE of Python PACKAGING? 🐍📦
17:52
Hynek Schlawack
Рет қаралды 6 М.
python 3.12 was ALMOST javascript
9:32
anthonywritescode
Рет қаралды 56 М.
100❤️
0:19
MY💝No War🤝
Рет қаралды 9 МЛН
Какая Милота ❤️
0:10
Глеб Рандалайнен
Рет қаралды 6 МЛН
ЭТО САМЫЕ ОПАСНЫЕ ШАРИКИ В МИРЕ!! #shorts
0:22
Heavy package 🤭🤣 #demariki
0:25
Demariki
Рет қаралды 4,7 МЛН
POR QUEEE DIVERTIDA MENTE 2 !!! #SHORTS
0:15
Figuritalo
Рет қаралды 26 МЛН
ТГК: ЛОГОВО FRIENDS #россия #чатрулетка
0:21
АлексДан
Рет қаралды 5 МЛН