Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pymorphapi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymorphapi

Common Morpheus API calls for HOL Events

  • 1.9.5
  • PyPI
  • Socket score

Maintainers
1

Morpheus Python Module

Installation

pip install pymorphapi

Usage

Reference at https://bertramdev.github.io/morpheus-apidoc

import pymorphapi

# import and validate/refresh bearer token
bearer_token = pymorphapi.import_token_from_disk(BASE_URI, LOCAL_PATH + TOKEN_FILE, VERIFY_SSL)

# sample get
results = pymorphapi.invoke_api(
    BASE_URI + "/api/roles/?max=1000",
    "Bearer " + bearer_token,
    "get",
    None,
    VERIFY_SSL
)

# sample post
body = {}
body.update({"group": {"name": current_student}})
pymorphapi.invoke_api(
    BASE_URI + "/api/accounts/" + str(new_tenant_id) + "/groups/",
    "Bearer " + bearer_token,
    "post",
    body,
    VERIFY_SSL
)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc