https://open-source-silicon.dev logo
#general
Title
# general
d

donn

04/13/2022, 12:22 PM
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.
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

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. 🙃
😟 1
2 Views