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
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.2.tar.gz
(11.9 kB
view details)
Built Distribution
File details
Details for the file hyperstack-0.2.2.tar.gz
.
File metadata
- Download URL: hyperstack-0.2.2.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 | 4a054b055e667c0110d7096f9bdbf1cb1cf4efb19e1c24ccef48ee9d0bfc91e7 |
|
MD5 | 45588b423a6f9fb8d203a2a009f580f9 |
|
BLAKE2b-256 | ad59c74a154707f3f4211f1b38351119b70332dd7aaf7b1e0b34697a423f12dc |
File details
Details for the file hyperstack-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: hyperstack-0.2.2-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 | 88f782e1bac14329c1bf5c199905f417d8816e727097d184ac83a0c173dfff53 |
|
MD5 | b6fe107cd48ab77ca98dd07b2ec95cd7 |
|
BLAKE2b-256 | 3b09f92189f8fa126ae54e70d2a1518c390b527e36a758afd76a07235e5a6e72 |