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.0b1.tar.gz (9.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.0b1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: htsdk-0.1.0b1.tar.gz
  • Upload date:
  • Size: 9.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.0b1.tar.gz
Algorithm Hash digest
SHA256 df801ef7e174face6c055a8b990ad1cf21c2ae633c7b04f7112fbf2e7c41f58c
MD5 3402f19a1c86532ee803dd496b59cbdd
BLAKE2b-256 b72fcd2e3b175903563c6af534c04a62a920fd317112d3c32af34b8ded4a882b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: htsdk-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 2549f8f191ef2f61df17e2bb870b5ce45f92186230f07f6309f5c50434ec0dd7
MD5 65789716e0b52f5c5d3b67ddf8e88163
BLAKE2b-256 bfb558e3406a749b9accb78d63a02457c11f063b1188768ca726daff1747bc56

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