A Python wrapper for the Hyperstack API
Project description
Hyperstack Python Client
This is a Python client for interacting with the Hyperstack API
Installation
pip install hyperstack
Usage
First ensure you have your API key set in an environment variable:
HYPERSTACK_API_KEY=<your API Key>
import hyperstack
Create an environment if you don't have one
client.create_environment('your-environment-name')
Set your environment
client.set_environment('your-environment-name')
Create a VM
client.create_vm(
name='first-vm',
image_name="Ubuntu Server 22.04 LTS R535 CUDA 12.2",
flavor_name='n2-RTX-A5000x1',
key_name="your-key",
user_data="",
create_bootable_volume=False,
assign_floating_ip=False,
count=1)
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
hyperstack-0.2.0.tar.gz
(11.1 kB
view details)
Built Distribution
File details
Details for the file hyperstack-0.2.0.tar.gz
.
File metadata
- Download URL: hyperstack-0.2.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f39b755d5d308e94dd5d47e5fee041ae1e81505a31b987860b99b6e997f166 |
|
MD5 | 9e1b8c954498cf70802e5545e138c849 |
|
BLAKE2b-256 | bbbacf98be5f503712e09c4a14a5cf0df9e4886435e7aa76956f70b855589d2e |
File details
Details for the file hyperstack-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: hyperstack-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e00f731bbb2b8df90db5fd08c0ad25a9e53c473d24bb2d9b786a8d09bcbabe4f |
|
MD5 | c6b6dc29fb19ac85e351edec7da246f9 |
|
BLAKE2b-256 | aad3c0c0e40bc20f5c809c0a5dac039927ee083878bcef2a5df7a28ef4779f96 |