Python Package Management

Document created by Takeshi Arisaka on Jun 11, 2016Last modified by Hidenori Akatoki on Aug 22, 2016
Version 11Show Document
  • View in full screen mode


Overview

"Install Python Package" service template installs specified python package by using "pip" command on specified host.

The service templates includes "Check Python Package" service template which checks if the package is already installed or not.

Only when the package is not installed, the package will be installed.

 

This service template is useful in the case that script within custom plugin is implemented by Python and needs additional package.

By using service template before the custom plugin, necessary packages can be installed automatically and user doesn't need to care it.

 

Note:

  • The service template can be used for Windows/Linux host. (sudo/su is not supported yet, so user needs to root privilege)

Download

Install Python Package

VersionFile (With Link)DescriptionTemplate IDVendor IDHAD versionCreated date
01.00.04DownloadInitial ImplementationinstallPythonPackagecom.hitachiV8.2.1-00Dec 21, 2015

Check Python Package

VersionFile (With Link)DescriptionTemplate IDVendor IDHAD versionCreated date
01.00.05Download
Initial ImplementationcheckPythonPackagecom.hitachiV8.2.1-00Dec 21, 2015

How to use

  • Use this service template as standalone
    • Import service template, create service, then submit service request.
SectionPropertyDescriptionNotes
Package SettingsTarget HostTarget host where you would like to install package
Package NamePackage name.
Package VersionVersion of python package. Specify only when you would like to install specific version. e.g. 1.2.1.If specified, pip install {Package Name}={Package Version} will be executed.
Proxy SettingsHttp ProxyProxy server address and port. If there is proxy server between the environment and internet, need to specify this.If specified, command line option "--proxy={Proxy Server}:{Proxy Port Number}" will be added when pip install is executed. Https proxy settings will be prioritized.
Https ProxyProxy server address and port. If there is proxy server between the environment and internet, need to specify this.If specified, command line option "--proxy={Proxy Server}:{Proxy Port Number}" will be added when pip install is executed.

Submit.png

Submit_ProxySettings.png

  • Use the service template as one of the step of the other service template to install package before other plugin including Python script.
    • Search the service template in Service Builder, and drag&drop.

 

Detail Information

Internal Workflow

Outcomes