muck_out.transform
default_public
module-attribute
Default URI to represent something is being addressed to the public.
normalize_public
Normalizes the representation of public, i.e.
Source code in muck_out/transform/__init__.py
transform_to_list_of_uris
Transforms to a list of URIs. As this simplifies a complicated data structure, some information may be lost.
>>> transform_to_list_of_uris("http://remote.test/id")
['http://remote.test/id']
>>> transform_to_list_of_uris({"id": "http://remote.test/id"})
['http://remote.test/id']
>>> transform_to_list_of_uris({"ignored": True})
[]
Source code in muck_out/transform/__init__.py
transform_url
Transform to a list of links