Skip to main content

Heaptree | Launch Virtual Machines With One Line of Code

Project description

What is Heaptree?

Heaptree lets you launch secure cloud instances with one line of code. Perfect for AI workloads, asynchronous tasks, or any application that needs on-demand compute.

Getting Started

1. Install the SDK

pip install heaptree-sdk

2. Get your API key

Sign up at heaptree.com and copy your API key from the dashboard.

3. Set your API key

Set your API key as an environment variable.

HEAPTREE_API_KEY=your_api_key_here

4. Create your first node

import os
from heaptree import Heaptree

# Initialize the client
client = Heaptree(api_key=os.getenv("HEAPTREE_API_KEY"))

# Create a new node
result = client.create_node(
    os="linux",
    num_nodes=1,
    node_type="ubuntu",
    node_size="small"
)

print(f"Node created: {result.node_id}")

5. Use your node

# Run a command on the node
response = client.run_command(
    node_id=result.node_id,
    command="echo 'Hello from Heaptree!'"
)

# Clean up when done
client.terminate_node(result.node_id)

Features

  • Node Management: Create, terminate, and manage cloud instances
  • File Operations: Upload and download files to/from nodes
  • Command Execution: Run commands remotely on your nodes
  • Multiple Node Support: Create and manage multiple nodes simultaneously

API Reference

For complete SDK documentation, including all available methods, parameters, and examples, visit the official documentation:

📖 Heaptree Documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

htsdk-0.1.0b2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

htsdk-0.1.0b2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file htsdk-0.1.0b2.tar.gz.

File metadata

  • Download URL: htsdk-0.1.0b2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for htsdk-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 067cb7c1e3ff14292a42dafceec4cbbb0c99f9b8902f7717774470fc10621695
MD5 df97229297d66164e98d3eb771774f2d
BLAKE2b-256 ab9c19467fe08af17e4aa868f7368d0f8035463661bf1ff0bb0cbf618e938d17

See more details on using hashes here.

File details

Details for the file htsdk-0.1.0b2-py3-none-any.whl.

File metadata

  • Download URL: htsdk-0.1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for htsdk-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 476e6f0a413251b71b2f3c5fba9206e822049af8e4d7e60c6df3ad9b18797e5c
MD5 b207512bc227e80109987a4d80879775
BLAKE2b-256 ac5a574219d708cdd3277187e93174fd155d15a69d70002da0fc765186259753

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