Morpheus API wrapper for Python 3
Project description
Morpheus Python Module
Installation
pip install pymorpheus
Usage
MorpheusClient() will either retrieve a token (with username and password args), or use an existing token (with token arg)
Use sslverify=False
to bypass certificate validation.
MorpheusClient.call() accepts the following vars:
- Required (positional):
- method: one of string: get, post, put, delete
- path: api call path after /api/
- Optional:
- options: list of tuples eg.
[('max','50')]
- jsonpayload: JSON string of payload for POST/PUT methods
- options: list of tuples eg.
Reference at https://bertramdev.github.io/morpheus-apidoc
morpheus = MorpheusClient("https://yoururl", username="youruser", password="yourpass")
results = morpheus.call("get", path="instances")
print(results)
# JSON Output of results
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
pymorpheus-0.1.6.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pymorpheus-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3758d78e836103e349169597681a41e0a5ee69783f198e88dcedd054d39345ed |
|
MD5 | 09348f340927f50b66f75f2f4234e8a4 |
|
BLAKE2b-256 | a55f0e6edca7927ba8d031f2a5b24e1a9030a2c97371fba232b07f98b1204b67 |