Skip to main content

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("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"))

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

arvan-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

arvan-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file arvan-0.1.1.tar.gz.

File metadata

  • Download URL: arvan-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for arvan-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2af4422264a5cfd33bd294254f97b36ec3d3b6d5bc666708d97307b882b44b4c
MD5 7c337bb9a36cd194d78679dac538aea3
BLAKE2b-256 268a537664b927da7a99d653201d9787fcafe2926ab80c4958fafb5237e20043

See more details on using hashes here.

File details

Details for the file arvan-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: arvan-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for arvan-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b00890b7ddfc7106a59626e594df17b82104c62cc9664d34a26a5a58a7110d83
MD5 772fb16836c07e3080ef61c678a890c2
BLAKE2b-256 2df03bafe80017fb0ad9633e5e1233854c81a4f7d79ff9679b2abccdefff59bb

See more details on using hashes here.

Supported by

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