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
Metadata
Release files for pymorpheus 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymorpheus-0.1.4.tar.gz | 2.9 kB | Details |
Release files / pymorpheus-0.1.4.tar.gz
| Download URL | pymorpheus-0.1.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d710096a98a0e8dca345c184f2d784a3cfeb5635c3f80e5e124b7d497f3aded
|
|
BLAKE2b-256 checksum How to use checksums |
efb72573f3dc02d3856cbec5ab868df24d83deb44f71b37b8c9ef5b8293c3c6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1
|