https://github.com/matrix-org/synapse/blob/develop/synapse/rest/media/v1/preview_url_resource.py
I think this kinda demonstrates an important point of why NPM's module system is so good.
Now Synapse (python) has a full opengraph/html parser, almost a thousand lines of code, for a minimal feature in the API, and it barely works...
Instead this could have been a nice, self-contained library properly updated and shared between lots of projects
https://blog.sindresorhus.com/small-focused-modules-9238d977a92a
@f0x Python package management seems weirdly unfinished for such an otherwise very advanced and friendly language :/ luckily, we can just package everything with Nix 😅
@quinn *finally* python is getting package management with proper lockfiles, akin to npm and cargo, it will just take approx 500 years for the ecosystem to start using it, i guess
@f0x ah cool, I didn‘t know that 😅 in setuptools?
@quinn it's with 'pipenv' I think
im going through all that code and it's making me sad..