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:
export HYPERSTACK_API_KEY=<your API Key>
import hyperstack
Create an environment if you don't have one
hyperstack.create_environment('your-environment-name')
Set your environment
hyperstack.set_environment('your-environment-name')
Create a VM
hyperstack.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.3.tar.gz
(11.9 kB
view details)
Built Distribution
File details
Details for the file hyperstack-0.2.3.tar.gz
.
File metadata
- Download URL: hyperstack-0.2.3.tar.gz
- Upload date:
- Size: 11.9 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 | cd3d25d7338b341b68a9854c6578b3de804140e7eceed9b569c3f6bb123f749d |
|
MD5 | a33459cfc9b5409ad48d82097b8717e5 |
|
BLAKE2b-256 | 225ed6b813a6a6cf0c82b09c2463141442200e6f9109f3083cba1b0630913a38 |
File details
Details for the file hyperstack-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: hyperstack-0.2.3-py3-none-any.whl
- Upload date:
- Size: 17.0 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 | 9c29d2056b5567e8e3c479be1844681b96d779d21d2cf92355e583a9d43667f6 |
|
MD5 | b143bcb828d98eb38f0b59ec7d1d34b8 |
|
BLAKE2b-256 | 29fe75b998ebb199ce6884ed2a738127ddfbcbd4cb353466fc29d2a3aa138f3b |