Does anyone know a tiny, one-file python-based yam...
# general
d
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
Can I ask why it needs to be one file?
d
Python import shenanigans, for the most part- but now that i think about it, a folder with an init.py would also work.
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.
we're assuming pip is not guaranteed in this particular environment.
🥲 1
a
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
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. 🙃
😟 1