Skip to main content

Morpheus Python Module

Documentation Status

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

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymorpheus-0.1.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for pymorpheus-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d85659ce1fe045874939bb02a635bbf27089c5c69957c5b4d10d5f34decd343d
MD5 8a6c8ebe8a47455b25c5f33a1337c436
BLAKE2b-256 37644962c6d37304524f020a6951da5c6660f592b8e174de9f75c1ccbc8384cb

See more details on using hashes here.

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

Hashes for pymorpheus-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3758d78e836103e349169597681a41e0a5ee69783f198e88dcedd054d39345ed
MD5 09348f340927f50b66f75f2f4234e8a4
BLAKE2b-256 a55f0e6edca7927ba8d031f2a5b24e1a9030a2c97371fba232b07f98b1204b67

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 files

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page