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 htsdk

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.0b7.tar.gz (12.8 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.0b7-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: htsdk-0.1.0b7.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for htsdk-0.1.0b7.tar.gz
Algorithm Hash digest
SHA256 3b1d1d8a45a33945ca2cb9e6723b88a1c4f3fadd42506af8939b7fe25b01b1d0
MD5 874d328e6466a072bdbff4bc375721c1
BLAKE2b-256 3b3ad124565385d0c890a0d4db5894c5295102e733d870672711d492e907be5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: htsdk-0.1.0b7-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for htsdk-0.1.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 f155ed0ee94f971669c16969f4c21491a462a19542237a383331f74326ed98c9
MD5 aeed00ac2c6ca34f3abb9cddacfe18a4
BLAKE2b-256 251986ec6cd60eb6274d06ec2d120392124595a27318c2db1b4f1acc28918ec1

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