Skip to main content

A Python SDK and CLI tool for creating, managing, and interacting with Morph Cloud VMs.

Project description

MorphCloud Python SDK

Overview

MorphCloud is a platform designed to spin up remote AI devboxes we call runtimes. It provides a suite of code intelligence tools and a Python SDK to manage, create, delete, and interact with runtime instances.

Setup Guide

Prerequisites

Python 3.8 or higher

Go to https//:cloud.morph.so, log in with the provided credentials and create an API key.

Set the API key as an environment variable MORPH_API_KEY.

Installation

pip install git+https://github.com/morph-labs/morph-python-sdk.git

Export the API key:

export MORPH_API_KEY="your-api-key"

Quick Start

To start using MorphCloud, you can create and manage runtime instances using the provided classes and methods. Here's a basic example to create a runtime instance:

from morphcloud.api import MorphClient

client = MorphClient()


snapshot = client.snapshot.create()
runtime = client.runtime.create(snapshot_id=snapshot.id)

runtime.exec("echo 'Hello, World!'")

Command Line Interface

The SDK also provides a command line interface to interact with the MorphCloud API. You can use the CLI to create, delete, and manage runtime instances.

morphcloud snapshot list
morphcloud runtime create

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morphcloud-0.1.10.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

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

morphcloud-0.1.10-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file morphcloud-0.1.10.tar.gz.

File metadata

  • Download URL: morphcloud-0.1.10.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for morphcloud-0.1.10.tar.gz
Algorithm Hash digest
SHA256 ec08bd4746705c8d7ee945c225d5497ef381b3ef5c3e2625998156d34834b9dd
MD5 80a756159efd1debd3ae09b6cecf951d
BLAKE2b-256 aa3f245a5547a77a17d378c4fac046ff4cb2e76b86b7d41220c36002826f9420

See more details on using hashes here.

File details

Details for the file morphcloud-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: morphcloud-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for morphcloud-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fd9dd4ccb01cbfbb50f77125c810c19508b1a8816d9f3c1c68384d7fa147c841
MD5 af1a63d2f91608cd3f0ab60aaf4c5bd4
BLAKE2b-256 79c873a44562ba43fb55bac09fa0172ea5a557bd2d71ea1fcd6d6abcbb6f783e

See more details on using hashes here.

Supported by

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