Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.45 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.45 KB

hug_yaml

PyPI version Build Status Coverage Status License Join the chat at https://gitter.im/timothycrosley/hug

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

Installing hug_yaml is as simple as:

pip3 install hug_yaml --upgrade

Ideally, within a virtual environment.

Why hug_yaml?

An extension for hug that provides YAML input formats, output formats, and documentation.


Thanks and I hope you find hug_yaml helpful!

~Timothy Crosley