hiyapyco icon indicating copy to clipboard operation
hiyapyco copied to clipboard

Using a custom yaml loader class

Open grst opened this issue 8 months 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