yama package¶
Submodules¶
yama.core module¶
-
class
yama.core.YAMA(yama_file)[source]¶ Bases:
objectYAMA Core class.
YAMA call is used to handle YAMA docuemnts through a YAMA object. This object can be hadled Application Profiles programatically.
Parameters: - yama_file (str) – Accessible location of a YAMA file, this YAMA docuemnt
- be parsed and the Application Profile object will be returend. (will) –
Returns: Extandable Application Profile object is returned.
Return type: -
render(template_file)[source]¶ A renderer for Application Profile Object, which will render any given template to specific output.
Note
At this stage of development, only Jinja2 templates are supported.
Parameters: template_file – Location of the template file. Returns: A rendered output of the DSP using provided template.
-
yama.core.expand_namespace(namespaces, description_property)[source]¶ Function to expand namespaces
Parameters: Returns: Returns an expanded property string with URI.
Return type: uri+property(str)
-
yama.core.generate_description_set(description_set, descriptions_dictionary)[source]¶ Function to generate description set
Parameters: Returns: Updated description set dictionary.
Return type: descriptionset(dict)
yama.helpers module¶
-
class
yama.helpers.DefaultOrderedDict(default_factory=None, *a, **kw)[source]¶ Bases:
collections.OrderedDict