hiyapyco icon indicating copy to clipboard operation
hiyapyco copied to clipboard

Using a custom yaml loader class

Open grst opened this issue 1 year ago • 1 comments

It would be nice if I could pass a custom callback function for parsing yaml files. There's already support for the native yaml loader and the OrderedDict yaml loader and there is a feature branch with support for ruamel. Instead of special-casing the different loaders, there could be an argument to the hiyapyco function that takes a callback function/loader class.

My use case is that I would like to enable "unsafe" loading of some !objects, therefore I'd need a custom loader instead of using safe_load.

grst avatar Jun 12 '24 11:06 grst

Hello @grst Sounds similar to #68 ... Well, I can understand the need for this, but I have to admit: I simply don’t have the time for it at the moment ... To give a broad hint: PR are welcome :-/

zerwes avatar Jun 12 '24 12:06 zerwes