Does anyone know a tiny, one-file python-based yaml parser? I've folded pyyaml into like, one file and it's kind of massive and poyo is grossly incompatible.
a
Adam RIchardson
04/13/2022, 1:12 PM
Can I ask why it needs to be one file?
d
donn
04/13/2022, 1:15 PM
Python import shenanigans, for the most part- but now that i think about it, a folder with an init.py would also work.
donn
04/13/2022, 1:16 PM
Mostly just size is what I'm concerned about honestly- I don't want to bother with submodules and/or a huge library I'd have to manually synchronize in case of a CVE.
donn
04/13/2022, 1:17 PM
we're assuming pip is not guaranteed in this particular environment.
🥲 1
a
Adam RIchardson
04/13/2022, 1:20 PM
Ah OK, I was just going to say can you
venv
it away but if you can't guarantee
pip
then yeah I'd go for homemade package. What's the reason you can't guarantee pip out of interest?
d
donn
04/13/2022, 1:22 PM
The script in question surveys the user's environment before they submit an issue. It checks if pip and venv exist, among other things. Unfortunately, said other things involve parsing a yaml file. 🙃
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.