Arvan is python api to work with arvancloud
Project description
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("ir-thr-at1", "mytest"))
print(arv.delete_list(vm_list=["094f0ee9-bf99-4214-acc6-46072d568752"]))
print(arv.delete(vm_id="6e008780-3a89-4730-ab5f-a7a94e929db1"))
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
arvan-0.0.4.tar.gz
(3.2 kB
view details)
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
arvan-0.0.4-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file arvan-0.0.4.tar.gz.
File metadata
- Download URL: arvan-0.0.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d7177b5ccb7668218b596e72a6416042cc37781fe042ff39b55837be7be8db8
|
|
| MD5 |
e726d11ca2761c1d737b1e0c1075838f
|
|
| BLAKE2b-256 |
a5db07b4105866f2b993c8fa5ddfc3827b0f45fe6e086b9d4c6ccaf8c7543a91
|
File details
Details for the file arvan-0.0.4-py3-none-any.whl.
File metadata
- Download URL: arvan-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49db08316c9ec2702489ef8bd31949a1657261f4df28365ab9f278c83d377f5b
|
|
| MD5 |
3dc073b8c3a6a9a9fee12878fe265a47
|
|
| BLAKE2b-256 |
a805bc20208cb2d08ef91fa18f1ce6f55e3da83b400184ad701be7ae612b84bf
|