swh.web.api.renderers module# class swh.web.api.renderers.YAMLRenderer[source]# Bases: BaseRenderer Renderer which serializes to YAML. media_type = 'application/yaml'# format = 'yaml'# charset = 'utf-8'# ensure_ascii = False# default_flow_style = False# render(data, accepted_media_type=None, renderer_context=None)[source]# Renders data into serialized YAML. class swh.web.api.renderers.PlainTextRenderer[source]# Bases: BaseRenderer Renderer which does not perform any serialization to raw text data. media_type = 'text/plain'# format = 'text'# charset = 'utf-8'# render(data, media_type=None, renderer_context=None)[source]#