Parser for TOSCA Simple Profile in YAML.
Go to file
Toshiaki Takahashi 9b9eba5272 Add "state" to condition keyname
"state" can be specified as a condition for event-based alarm.
So this patch add it to the condition kayname list.

https://review.opendev.org/#/c/700167/

Change-Id: Ib0d3a87c09aaea7b5c7863330285f86025f591ae
2020-08-14 22:48:30 +00:00
doc Switch to newer openstackdocstheme version 2020-05-30 17:12:39 +02:00
toscaparser Add "state" to condition keyname 2020-08-14 22:48:30 +00:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:56:14 +00:00
.gitignore Use stestr instead of testr 2018-06-19 13:32:34 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:33:52 +00:00
.mailmap Add .gitreview file and apply cookiecutter template. 2014-04-01 09:43:50 -05:00
.stestr.conf Use stestr instead of testr 2018-06-19 13:32:34 -05:00
.zuul.yaml [ussuri][goal] Drop python 2.7 support and testing 2020-02-04 18:49:57 +01:00
babel.cfg Add .gitreview file and apply cookiecutter template. 2014-04-01 09:43:50 -05:00
CONTRIBUTING.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-20 14:31:56 +08:00
HACKING.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-20 14:31:56 +08:00
LICENSE Add .gitreview file and apply cookiecutter template. 2014-04-01 09:43:50 -05:00
lower-constraints.txt drop mock from lower-constraints 2020-06-09 12:15:33 +02:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-20 14:31:56 +08:00
requirements.txt Use stevedore Extensions for TOSCA definitions 2018-06-04 06:46:42 -05:00
setup.cfg [ussuri][goal] Drop python 2.7 support and testing 2020-02-04 18:49:57 +01:00
setup.py [ussuri][goal] Drop python 2.7 support and testing 2020-02-04 18:49:57 +01:00
test-requirements.txt Fix hacking min version to 3.0.1 2020-05-12 19:33:36 -05:00
tosca_parser.py Create shell entry point 2015-11-11 12:09:31 -08:00
tox.ini Update hacking for Python3 2020-04-07 10:45:12 +02:00

Team and repository tags

image

TOSCA Parser

Overview

The TOSCA Parser is an OpenStack project and licensed under Apache 2. It is developed to parse TOSCA Simple Profile in YAML. It reads the TOSCA templates and creates an in-memory graph of TOSCA nodes and their relationship.

Architecture

The TOSCA Parser takes TOSCA YAML template or TOSCA Cloud Service Archive (CSAR) file as an input, with optional input of dictionary of needed parameters with their values, and produces in-memory objects of different TOSCA elements with their relationship to each other. It also creates a graph of TOSCA node templates and their relationship.

The ToscaTemplate class located in the toscaparser/tosca_template.py is an entry class of the parser and various functionality of parser can be used by initiating this class. In order to see an example usage of TOSCA Parser from a separate tool, refer to the OpenStack heat-translator class TranslateTemplate located in the translator/osc/v1/translate.py module. The toscaparser/shell.py module of tosca-parser also provides a good reference on how to invoke TOSCA Parser from Command Line Interface.

The toscaparser/elements sub-directory contains various modules to handle various TOSCA type elements like node type, relationship type etc. The entity_type.py module is a parent of all type elements. The toscaparser directory contains various python module to handle service template including topology template, node templates, relationship templates etc. The entity_template.py is a parent of all template elements.

How To Use

Please refer to doc/source/usage.rst

Project Info