CloudShell Version: 9.1 GA

Help Version: 1.0

Api Guide
View / Download All Help Versions
API Guide

This help article applies to CloudShell 9.1. To see the latest, click here.

You are here: CloudShell API Guide > Packaging API > Getting Started with Packaging API

Getting Started with Packaging API


  1. Make sure you have Python installed on your machine.
  2. To download the Python Package Editor that applies to your installed CloudShell Pro version, visit the Python Package Editor Download Page.
  3. Run the pip tool to install the package.

Code Sample

The following code sample provides an example of how to create new blueprints using the API. This example demonstrates how to perform the following flow:

This example uses the “requests” python module.

from quali_utils.quali_packaging import PackageEditor import requests
#Create a new package in the local file system
p = PackageEditor()

#Load the package and prepare for edit
#Edit the package: f.e add new family
p.add_family("Ball", "", ["Game", "3D Shape", "MoreStuff"], False, False, False, False, True)

#Import the package into CloudShell
# 1 – authenticate
r = requests.put('http://localhost:9000/Api/Auth/Login', {"username": "admin", "password": "admin", "domain": "Global"})
authcode =
"Basic "+r._content[1:-1]

#2 – Open the package before import
fileobj = open("c:\\", 'rb') 
#3 – Send to CloudShell by calling Import Package REST API
r ='http://localhost:9000/API/Package/ImportPackage',
"Authorization": authcode},
"file": fileobj})
print r._content
print r.ok