Question about Heat parser

Zane Bitter zbitter at
Tue Jan 22 06:18:04 UTC 2019

On 22/01/19 1:45 AM, adjandeye.sylla at wrote:
> Dear all,
> In the context of my post-doc research, I’m  working with HOT templates 
> and I want to parse them.
> Instead of developing a new parser, I want to reuse the one that is used 
> by Heat but I don’t want to connect to a running OpenStack to do the 
> parsing.
> Is it possible to use Heat as a standalone parser (i.e. without 
> connecting to a running OpenStack) ?

Yes, that shouldn't be a problem. You can import Heat as a library 
("from heat.engine import template"). As long as you don't call any of 
the methods that deal with the database (i.e. load()/store()), you 
should have no trouble.

Note that there are a number of template APIs (the ones that deal with 
intrinsic functions) that take a 'stack' argument. Originally we passed 
a heat.engine.stack.Stack object, but now you should pass a 
heat.engine.stk_defn.StackDefinition object. That should make things 
easier for you, because a StackDefinition can be constructed from a 
Template, and it doesn't deal with the database at all, so you can skip 
the complexity of the Stack object.

We look forward to hearing the results of your research :)


More information about the openstack-discuss mailing list