Skip to main content

Parses scriptable tasks out of vRO Workflow XML, saves them as discrete files for editing and SCC, and imports edits in code back into XML.

Project description

vroParse

vRO XML Package Parser

Table of Contents

Overview

vroParse is created by Jim Sadlek.

vroParse is an addendum to the vRealize Build Tools and Developer Tools, and is a Python package with two executable commands, parsevro and updatevro.

This project parses code embedded in scriptable tasks from out of Workflow XML, saves them as discrete files for editing and SCC, and imports the edits back into XML for inclusion in vRO Package updates.

Setup

pip install vroParse

The package is hosted on PyPi. If you do not have external access to the Internet, you will need to do a local install on your system.

To do that, obtain a clone of this repo to your local system. then, make sure to run the setup.py file, so you can install any dependencies you may need. To run the setup.py file, run the following command in your terminal.

python(3) setup.py install --record files

This will install all the dependencies listed in the setup.py file. Once done you can use the parsevro and updatevro commands.

To manually remove this package run rm $(cat files)

Usage

parsevro [-h] [-v]

This script parses code from vRO Workflow XML that contain embedded Scriptable Tasks.
By: Jim Sadlek - VMware, Inc.

This must be run from the vRO Package's top-level folder, which contains a 'workflows/src/main/resources/Workflow' subfolder.
This script traverses all sub folders of the above and stores embedded code in a '.parsevro' folder.
This is usually run after a 'mvn vro:pull' command when using vRealize Build Tools, or exporting to a folder with native vRO.

-h, --help     show this help message and exit
-v, --verbose  Display verbose logging output

Here is a simple example of using the vroParse package to parse vRO XML package files for Scriptable Tasks' element code, and then update XML with edited code, from within Visual Studio Code or some other code editor outside of vRO.

After performing a mvn vro:pull operation, run this from the root folder: parsevro

After performing a mvn vrealize:push operation, run this from the root folder: updatevro

Other Projects

vRealize Build Tools: vRealize Build Tools is a Vmware Fling that provides tools to development and release teams implementing solutions based on vRealize Automation (vRA) and vRealize Orchestrator (vRO).

vRealize Developer Tools: vRealize Developer Tools is a Visual Studio Code Extension available on GitHub that provides code intelligence features and enables a more developer-friendly experience when creating vRealize content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vroParse-0.3.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vroParse-0.3.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file vroParse-0.3.2.tar.gz.

File metadata

  • Download URL: vroParse-0.3.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for vroParse-0.3.2.tar.gz
Algorithm Hash digest
SHA256 01bbed7b718d34c4b08cd4590c48e7cf2789c90b0d958507763622adb47cb6e8
MD5 ed44ca0efe458c7bdfb53f5ffcf6d9b4
BLAKE2b-256 1cb0c5d3693c751a5eca0b33cc5d62b18518d476a485c756100911436a5fd74a

See more details on using hashes here.

File details

Details for the file vroParse-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: vroParse-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for vroParse-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85d6e9f3be961c5d214664ca185f289c12555845188fa8c385c5328bbe926bf7
MD5 677243241c36825888158b1a64ea7b02
BLAKE2b-256 e37be891e3ba2c1fffb4f2f59c3236482e1d0dccc9b3e817b90db02f31ce6e6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page