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:
```bash
HYPERSTACK_API_KEY=<your API Key>```
```python
from hyperstack import Hyperstack
client = Hyperstack()
Create an environment if you don't have one
client.create_environment('development')
Set your environment
client.set_environment('development')
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="development-key",
user_data="",
create_bootable_volume=False,
assign_floating_ip=False,
count=1)
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
hyperstack_python-0.1.0.tar.gz
(10.8 kB
view details)
Built Distribution
File details
Details for the file hyperstack_python-0.1.0.tar.gz
.
File metadata
- Download URL: hyperstack_python-0.1.0.tar.gz
- Upload date:
- Size: 10.8 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 | d0bb15bce63dcacbb4346a0131f141ce824183757ece76dd5e623f8a8b6d5b4a |
|
MD5 | be99a8cbde2da23fc48632a517743a9c |
|
BLAKE2b-256 | 99856c799c062d59b7e39910b3a28aa205ac40080269455df717023fb39c4c7c |
File details
Details for the file hyperstack_python-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: hyperstack_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.1 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 | d33140f377c6e844a774de36154c66ee5f12805cf46d54f86d02175318d832cc |
|
MD5 | f6e593d4ca6b36d2e4e28ac365c9340f |
|
BLAKE2b-256 | df7414008112e2aa6168d8dacd80470db2e75ed49bba857910c8a923b9bbad51 |