# Hyperstack Python Client
This is a Python client for interacting with the Hyperstack API
### Installation
```bash
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
```python
client.create_environment('development')
```
#### Set your environment
```python
client.set_environment('development')
```
#### Create a VM
```python
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/balancedscorpion/hyperstack-python",
"name": "hyperstack-python",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "api, wrapper, hyperstack, GPU",
"author": "Jamie Martin",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/99/85/6c799c062d59b7e39910b3a28aa205ac40080269455df717023fb39c4c7c/hyperstack_python-0.1.0.tar.gz",
"platform": null,
"description": "# Hyperstack Python Client\n\nThis is a Python client for interacting with the Hyperstack API\n\n### Installation\n\n```bash\npip install hyperstack```\n\n### Usage\n\nFirst ensure you have your API key set in an environment variable:\n\n```bash\nHYPERSTACK_API_KEY=<your API Key>```\n\n```python\nfrom hyperstack import Hyperstack\n\nclient = Hyperstack()\n```\n\n#### Create an environment if you don't have one\n\n```python\nclient.create_environment('development') \n```\n\n#### Set your environment\n\n```python\nclient.set_environment('development') \n```\n\n#### Create a VM\n```python\nclient.create_vm(\n name='first vm', \n image_name=\"Ubuntu Server 22.04 LTS R535 CUDA 12.2\", \n flavor_name='n2-RTX-A5000x1', \n key_name=\"development-key\", \n user_data=\"\", \n create_bootable_volume=False, \n assign_floating_ip=False, \n count=1)\n```",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "A Python wrapper for the Hyperstack API",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/balancedscorpion/hyperstack-python",
"Repository": "https://github.com/balancedscorpion/hyperstack-python"
},
"split_keywords": [
"api",
" wrapper",
" hyperstack",
" gpu"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "df7414008112e2aa6168d8dacd80470db2e75ed49bba857910c8a923b9bbad51",
"md5": "f6e593d4ca6b36d2e4e28ac365c9340f",
"sha256": "d33140f377c6e844a774de36154c66ee5f12805cf46d54f86d02175318d832cc"
},
"downloads": -1,
"filename": "hyperstack_python-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f6e593d4ca6b36d2e4e28ac365c9340f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 13088,
"upload_time": "2024-07-27T16:49:19",
"upload_time_iso_8601": "2024-07-27T16:49:19.162067Z",
"url": "https://files.pythonhosted.org/packages/df/74/14008112e2aa6168d8dacd80470db2e75ed49bba857910c8a923b9bbad51/hyperstack_python-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "99856c799c062d59b7e39910b3a28aa205ac40080269455df717023fb39c4c7c",
"md5": "be99a8cbde2da23fc48632a517743a9c",
"sha256": "d0bb15bce63dcacbb4346a0131f141ce824183757ece76dd5e623f8a8b6d5b4a"
},
"downloads": -1,
"filename": "hyperstack_python-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "be99a8cbde2da23fc48632a517743a9c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 10809,
"upload_time": "2024-07-27T16:49:20",
"upload_time_iso_8601": "2024-07-27T16:49:20.709357Z",
"url": "https://files.pythonhosted.org/packages/99/85/6c799c062d59b7e39910b3a28aa205ac40080269455df717023fb39c4c7c/hyperstack_python-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-27 16:49:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "balancedscorpion",
"github_project": "hyperstack-python",
"github_not_found": true,
"lcname": "hyperstack-python"
}