Skip to main content

vmt-plan: Turbonomic API plan engine

vmt-plan is a companion library to vmt-connect for working with the Turbonomic API. The core purpose of the library is to provide interfaces for constructing and running plans within Turbonomic.

Installation

pip install vmtplan

Usage

# Basic Plan - Note the import is vmtplanner <!>
import vmtconnect as vc
import vmtplanner as vp

vmt = vc.Session(host='localhost', username='bob', password='*****')

# scoping to two groups by UUID
scope = ['430e28cbaabf35522a180859d4160562d123ac78',
        'e48fd3270917221d3e6290e1affead34b872e95b']
scenario = vp.PlanSpec('custom scenario', scope=scope)

# add 5 copies of a VM immediately using positional arguments
scenario.change_entity(vp.EntityAction.ADD, ['1341c28a-c9b7-46a5-ab25-321260482a91'], [0], 5)

# add 1 copy each month for 2 months using named arguments
scenario.change_entity(action=vp.EntityAction.ADD,
                      targets=['1341c28a-c9b7-46a5-ab25-321260482a91'],
                      count=1,
                      projection=[30, 60])

plan = vp.Plan(vmt, scenario)
plan.run()

Documentation

The user guide is a good place to start. Detailed documentation is also available here.

Metadata

Release files for vmtplan 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vmtplan 2.3.0
File Size Uploaded
vmtplan-2.3.0.tar.gz 25.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vmtplan 2.3.0
File Interpreter ABI Platform
vmtplan-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 85.5 kB

Release files / vmtplan-2.3.0.tar.gz

Download URL vmtplan-2.3.0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29d42e96cc1a9f1e08b79388a14db012b8dc3a4b60b18e7fc4fc130023597c53
BLAKE2b-256 checksum
How to use checksums
3d6e2173036cdadfd2fb545236c8a91f316a4b10f4aa3da1796a31d47c5d6d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release files / vmtplan-2.3.0-py3-none-any.whl

Download URL vmtplan-2.3.0-py3-none-any.whl
Size 60.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13be5045cfd7f81966b171f34eac97f363dbab7a5dbdcc6c0f83669c7845715f
BLAKE2b-256 checksum
How to use checksums
21df47a89bdc7607740b8c08c376705d3b02e32948a791aa9b7ae8f3305d6d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page