Python lib to interact with ManageEngine Password Manager Pro's REST API
Installation
pipinstallpypmp
Usage
frompypmpimportPasswordManagerProClient# Connectpmp=PasswordManagerProClient("pmp.example.com","REST_API_TOKEN",verify=True)# Get all resourcespmp.get_resources()# Get accountspmp.get_accounts(resource_id=resource_id)# Get passwordpmp.get_account_password(resource_id=resource_id,account_id=account_id)# Shortcuts# Get resource by namepmp.get_resource_by_name(name="resource01")# Get account by namepmp.get_account_by_name(resource_name="resource01",account_name="Administrator")# Get passwordpmp.get_password(resource_name="resource01",account_name="Administrator")