An extension for hug that provides YAML input formats, output formats, and documentation:
import hug
import hug_yaml
hug.API(__name__).extend(hug_yaml.input_format)
@hug.not_found(output=hug_yaml.output)
def documentation(hug_api, hug_api_version):
return hug_api.http.documentation(hug_api, hug_api_version)
Installing hug_yaml is as simple as:
pip3 install hug_yaml --upgrade
Ideally, within a virtual environment.
An extension for hug that provides YAML input formats, output formats, and documentation.
Thanks and I hope you find hug_yaml helpful!
~Timothy Crosley