🧠 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
Metadata
Release files for iotamine 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iotamine-0.1.1.tar.gz | 4.6 kB | Without provenance | Details for iotamine-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iotamine-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for iotamine-0.1.1-py3-none-any.whl |
Total release size: 9.4 kB
Release files / iotamine-0.1.1.tar.gz
| Download URL | iotamine-0.1.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57764870ff5fa4f3ecdd3c5938d4763c1cf5b01e719f9fefb610101dd76112f3
|
|
BLAKE2b-256 checksum How to use checksums |
896bf751d68d9f5b0fea4a9003ba0ddd7e71bb3d0ebecd0f7873041020bd55d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Release files / iotamine-0.1.1-py3-none-any.whl
| Download URL | iotamine-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c8d8cd15b12c0607b441933e83feb3f1586df88e852ecfe2ab8d491ec52c7de
|
|
BLAKE2b-256 checksum How to use checksums |
c3f86cd0a3688f45dccb02d7246172362ca39c502037875d117a920a4e31101a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Security for iotamine 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.