Iotamine Cloud API Python SDK
Project description
🧠 Iotamine Python SDK
Iotamine is a powerful and easy-to-use cloud platform designed for developers and startups. This Python SDK allows you to interact with the Iotamine Cloud API to programmatically deploy, manage, and monitor Virtual Private Servers (VPS) and core resources.
🚀 Features
- Create and manage VPS instances
- Start, stop, restart, power off VMs
- Add or remove disks and IPs
- Set reverse DNS
- Take and restore from snapshots
- Configure firewall rules
- List OS templates and Points of Presence (PoPs)
📦 Installation
pip install iotamine
🔑 Authentication
All requests require an API key. You can obtain this from your Iotamine dashboard.
🛠️ Usage Example
from iotamine import Iotamine
# Initialize client
client = Iotamine("your-api-key")
# List available OS and POPs
os_list = client.core.list_os()
pop_list = client.core.list_pop()
# Create a new VM
vm = client.vm.create(
hostname="test-server",
password="strongpassword123",
operating_system=os_list[0]['id'],
pop=pop_list[0]['id'],
cores=2,
ram=4096,
disk=80
)
print("VM Created:", vm)
# List all VMs
print(client.vm.list())
🧰 API Reference
Iotamine(api_key)
Main entrypoint to interact with Iotamine API.
VM Methods
| Method | Description |
|---|---|
create(...) |
Create a new VM |
list() |
List all VMs |
details(vps_id) |
Get details of a specific VM |
start(vps_id) |
Start the VM |
stop(vps_id) |
Stop the VM |
restart(vps_id) |
Restart the VM |
poweroff(vps_id) |
Force shutdown the VM |
rebuild(vps_id, os_id, password) |
Reinstall VM |
destroy(vps_id) |
Destroy the VM |
stats(vps_id) |
Get usage stats |
vnc(vps_id) |
Get VNC connection details |
Disk Management
| Method | Description |
|---|---|
list_disk(vps_id) |
List attached disks |
add_disk(vps_id, size) |
Add a new disk |
delete_disk(vps_id, disk_uuid) |
Delete a specific disk |
IP Management
| Method | Description |
|---|---|
add_ip(vps_id) |
Add an additional IP |
delete_ip(vps_id, ip_addr) |
Remove an IP address |
add_rdns(vps_id, ip_addr, rdns) |
Set reverse DNS |
Snapshots
| Method | Description |
|---|---|
list_snapshots(vps_id) |
List snapshots |
create_snapshot(vps_id) |
Take snapshot |
restore_snapshot(vps_id, snapshot_id) |
Restore from snapshot |
delete_snapshot(vps_id, snapshot_id) |
Delete snapshot |
Firewall
| Method | Description |
|---|---|
list_firewall_rules(vps_id) |
View rules |
update_firewall_rules(vps_id, rules) |
Modify rules |
Core Methods
| Method | Description |
|---|---|
list_os() |
List available operating systems |
list_pop() |
List available Points of Presence (regions) |
🧪 Development
Clone this repository:
git clone https://github.com/piyushladhar/iotamine.git
cd iotamine
pip install -e .
📄 License
This SDK is open-sourced under the MIT License.
🌐 Links
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iotamine-0.1.1.tar.gz.
File metadata
- Download URL: iotamine-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57764870ff5fa4f3ecdd3c5938d4763c1cf5b01e719f9fefb610101dd76112f3
|
|
| MD5 |
ebfcf61af3b905f346ce847a3a45e4fd
|
|
| BLAKE2b-256 |
896bf751d68d9f5b0fea4a9003ba0ddd7e71bb3d0ebecd0f7873041020bd55d8
|
File details
Details for the file iotamine-0.1.1-py3-none-any.whl.
File metadata
- Download URL: iotamine-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c8d8cd15b12c0607b441933e83feb3f1586df88e852ecfe2ab8d491ec52c7de
|
|
| MD5 |
7f6585f67d7bb684e913b1cc090aac1f
|
|
| BLAKE2b-256 |
c3f86cd0a3688f45dccb02d7246172362ca39c502037875d117a920a4e31101a
|