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:
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file htsdk-0.1.0b6.tar.gz.
File metadata
- Download URL: htsdk-0.1.0b6.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa3f18b04582c54e8ec2eb6d1f87f57abd2eeba2f2c7824b2df800517efb0b2
|
|
| MD5 |
1d87f90678bda466fc8be49d895d0e29
|
|
| BLAKE2b-256 |
4db0860a7b652b40fa5ee87cf488f8713508ecc8f29e385f441a3deffdfa25ae
|
File details
Details for the file htsdk-0.1.0b6-py3-none-any.whl.
File metadata
- Download URL: htsdk-0.1.0b6-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ccf8b56f559fe23ce6900d0beaffbad4860aef4456dbf7ba8910539314f5b6
|
|
| MD5 |
4e3ccefe239f06f0fd299ad8f87dc1f4
|
|
| BLAKE2b-256 |
a75ab55f475fc32961ba55108f5c9203736fce2bd273f1f393fb1d8c6b16e262
|