Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iotamine-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iotamine-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file iotamine-0.1.0.tar.gz.

File metadata

  • Download URL: iotamine-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for iotamine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e9a9eda7b09b4bc7670a9c00dd02c1c9c0934cee4cc7049fe9dd6193d28f819
MD5 16941fcaf221175a301e20dd966870ee
BLAKE2b-256 65d6e05de64381e5d68cbcfce9339a2e7991d478c2de8d44d095c7640fcefa6a

See more details on using hashes here.

File details

Details for the file iotamine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iotamine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for iotamine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c994238677c6aef9e68c58f248f11d39f482a436eef4a5de3812fff2307e33
MD5 2f992eba3b753d975ef4163fc0c56f3a
BLAKE2b-256 c58086176dbecde6f4297f9ef51ebac63d7defb4cd753ba748ab6f7cd9be1d9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page