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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymorpheus-0.1.6.tar.gz.
File metadata
- Download URL: pymorpheus-0.1.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d85659ce1fe045874939bb02a635bbf27089c5c69957c5b4d10d5f34decd343d
|
|
| MD5 |
8a6c8ebe8a47455b25c5f33a1337c436
|
|
| BLAKE2b-256 |
37644962c6d37304524f020a6951da5c6660f592b8e174de9f75c1ccbc8384cb
|
File details
Details for the file pymorpheus-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pymorpheus-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3758d78e836103e349169597681a41e0a5ee69783f198e88dcedd054d39345ed
|
|
| MD5 |
09348f340927f50b66f75f2f4234e8a4
|
|
| BLAKE2b-256 |
a55f0e6edca7927ba8d031f2a5b24e1a9030a2c97371fba232b07f98b1204b67
|