8000 GitHub - Riqardos/BPMTool
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Riqardos/BPMTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BPMTool

Prerequisites

  • AdminTask api installed

Install

pip install git+https://github.com/Riqardos/BPMTool.git

Usage

As module

from bpmtoolbox.bpm import BPMApp

bpm_tool = BPMApp('acronymID')

snapshots = bpm_tool.get_all_snapshots()  # -> [<bpmtoolbox.bpm.BPMTool.SnapShot object at 0x0000028D527ACF10>, ...]
print(snapshots[0].name)  # -> sn_for_Hursley

bpm_tool.clean_snapshots()

As script

> python bpm.py acronymID -l

Help:

================================================================
HELP
================================================================
SYNOPSIS
bpm.py <acronymId> [-hsld]

OPTIONS
number of allowed arguments: 2

-h, --help      shows help
-l, --list      shows list of snapshots
-s, --stat      shows stats 
-d, --delete    will delete all snapshots, 
                based on condition(inactive, no_instancec=0, default=false )

Tests

To run test, go to the root directory and run: python -m unittest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0