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

from pymorpheus import MorpheusClient
morpheus = MorpheusClient("https://yoururl", username="youruser", password="yourpass")
options = [('max', '10')]
results = morpheus.call("get", "instances", options=options)
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.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pymorpheus-0.1.5.tar.gz.

File metadata

  • Download URL: pymorpheus-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pymorpheus-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5fdfb123ea90f259074ac7fed267415b2c242aa2c9a8a585f998dff2bdae5584
MD5 28f6ae80eba1ea10930ad10233a7994e
BLAKE2b-256 002e4c8d4680791b6ac2f1eae6324ac069134daa8e0c7d7708c3fbc98fd2016a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

This release

0.1.5 This release

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page