arvan
Arvan is python api to work with arvancloud (ابر آروان)
This api is based arvancloud doc which provided on:
https://napi.arvancloud.com/docs/iaas/1.0#/
#sample.py
from arvan.client import Client
arv = Client("Apikey 22222222-5555-bbbb-aaaa-6f3a99e60e76")
print(arv.get_region())
print(arv.all_images)
print(arv.get_all_regions())
print(arv.get_region_servers())
print(arv.get_region_images('nl-ams-su1'))
print(arv.get_region_networks())
print(arv.get_region_sizes())
print(arv.get_region_networks("nl-ams-su1"))
print(arv.get_region_security_group("ir-thr-mn1"))
print(arv.get_region_ssh_keys())
print(arv.create(name="mytest", ssh_key_name="no", count=1))
print(arv.get_region_servers())
print(arv.delete(vm_id="6e71f738-cc77-46aa-b604-eb966e66da72"))
print(arv.delete_all("mytest","ir-thr-at1"))
print(arv.delete_list(vm_list=["094f0ee9-bf99-4214-acc6-46072d568752"]))
print(arv.delete(vm_id="6e008780-3a89-4730-ab5f-a7a94e929db1"))
print(arv.power_on_list(['27adbfbc-839f-4f60-ba28-104d92df3956']))
print(arv.power_on_cluster("node"))
Metadata
Release files for arvan 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 | |
|---|---|---|---|
| arvan-0.1.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arvan-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / arvan-0.1.1.tar.gz
| Download URL | arvan-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2af4422264a5cfd33bd294254f97b36ec3d3b6d5bc666708d97307b882b44b4c
|
|
BLAKE2b-256 checksum How to use checksums |
268a537664b927da7a99d653201d9787fcafe2926ab80c4958fafb5237e20043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
|
Release files / arvan-0.1.1-py3-none-any.whl
| Download URL | arvan-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b00890b7ddfc7106a59626e594df17b82104c62cc9664d34a26a5a58a7110d83
|
|
BLAKE2b-256 checksum How to use checksums |
2df03bafe80017fb0ad9633e5e1233854c81a4f7d79ff9679b2abccdefff59bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
|