This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


[![Build Status](](

A python library for using OASIS Tosca YAML Simple Profile 1.0

This library was initially implemented as a learning exercise for evaluating an early draft of the standard.

A readily available alternative for tosca is the one toscalib embedded in the heat-translator.

Tosca Modeling

The TOSCA standard is modeled here as three distinct collections, The meta model which per the standard is associated with a set of types, and which is extensible by any given tosca file. The node templates which are the actualization of the meta model as loaded from a tosca yaml file. Finally the realized node resoures which are created by an orchestrator and associated to their corresponding node templates.

This library chooses to map these collections using native python language constructs, meta models correspond to classes, node templates to instances of those classes.

Running Unit Tests

The stdlib test runner is integrated via setuptools ala:

$ python test

Alternatively any other test runner can be used directly.


The execution of the template takes place through three phases of binding

Input binding

Resource binding

The binding tier

tosca notes

Standards Questions


  • what does a relation callout binding in a template look like.
  • relation shorthand form is not defined properly in the meta model
  • page 13 and 14 has requirements: database but elsewhere its database_endpoint

Is this a typo. - wp_db_port: { get_ref_property: [ database_endpoint, database_endpoint, port ] }

  • page 9 points to an interface implementation artifact directly against the name of the interface instead of against the lifecycle operation.. there’s some abmiguity here.
  • can more than one interface be associated to a type



  • os version should not be an integer, minimum it should be a float, ideally a string.

library notes

  • definition references interfaces by name in node, but by type in relation.
  • a couple of typos
  • capability matches node_type by bad name (should be types.nodes.Root)


  • how does inheritance work across types, what inherits (properties, lifecycle)
  • spelling of endpoint vs database endpoint.
  • delete lifecycle operation [ is it normative, may have to combine with deletion]
  • mapping lifecycle to machine operations.. is start automatically re-invoked on boot?
  • is stopped launched before reboot?
  • order of relation lifecycle events
  • the xml policy notion

Binding to variables

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytosca-0.2.1.tar.gz (12.1 kB) Copy SHA256 Checksum SHA256 Source Jan 18, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting