Basic api client for reg.ru cloudvps
Project description
.. image:: https://badge.fury.io/py/api-cloudvps-py.svg
:target: https://badge.fury.io/py/api-cloudvps-py
.. image:: https://badge.fury.io/gh/wa-pis%2Fapi-cloudvps-py.svg
:target: https://badge.fury.io/gh/wa-pis%2Fapi-cloudvps-py
.. image:: https://travis-ci.org/wa-pis/api-cloudvps-py.svg?branch=master
:target: https://travis-ci.org/wa-pis/api-cloudvps-py
INSTALLING
==========
.. code:: bash
$ pip install api-cloudvps-py
# or use source code package, after extract
$ python setup.py install
How to obtain token
===================
If you want to work with reg.ru cloudvps api client
`order free service <https://www.reg.ru/vps/cloud`__
`More info about reg.ru KVM<https://www.reg.ru/vps/cloud>`__
USAGE
=====
.. code:: python
# import
>>> from cloudvps import Api
>>> api = Api('3f7c0a3d*****356b45d59f71a')
# or
>>> import cloudvps
>>> api = cloudvps.Api('3f7c0a3d*****356b45d59f71a')
>>> common = api.common
>>> print(common.sizes())
{'sizes': [{'disk': 10, 'id': 5, 'memory': 512, 'name': 'Cloud-1', 'price': '0.30', 'price_month': 199, 'slug': 'cloud-1', 'vcpus': 1, 'weight': 10}, {'disk': 20, 'id': 1, 'memory': 1024, 'name': 'Cloud-2', 'price': '0.67', 'price_month': 449, 'slug': 'cloud-2', 'vcpus': 2, 'weight': 20}, {'disk': 40, 'id': 3, 'memory': 2048, 'name': 'Cloud-3', 'price': '1.34', 'price_month': 899, 'slug': 'cloud-3', 'vcpus': 2, 'weight': 30}, {'disk': 60, 'id': 7, 'memory': 4096, 'name': 'Cloud-4', 'price': '2.66', 'price_month': 1790, 'slug': 'cloud-4', 'vcpus': 2, 'weight': 40}, {'disk': 60, 'id': 9, 'memory': 6144, 'name': 'Cloud-5', 'price': '3.71', 'price_month': 2490, 'slug': 'cloud-5', 'vcpus': 2, 'weight': 50}, {'disk': 80, 'id': 11, 'memory': 8192, 'name': 'Cloud-6', 'price': '4.75', 'price_month': 3190, 'slug': 'cloud-6', 'vcpus': 4, 'weight': 60}]}
LICENSE
=======
The MIT License (MIT) 2018, Anton Grudin.
:target: https://badge.fury.io/py/api-cloudvps-py
.. image:: https://badge.fury.io/gh/wa-pis%2Fapi-cloudvps-py.svg
:target: https://badge.fury.io/gh/wa-pis%2Fapi-cloudvps-py
.. image:: https://travis-ci.org/wa-pis/api-cloudvps-py.svg?branch=master
:target: https://travis-ci.org/wa-pis/api-cloudvps-py
INSTALLING
==========
.. code:: bash
$ pip install api-cloudvps-py
# or use source code package, after extract
$ python setup.py install
How to obtain token
===================
If you want to work with reg.ru cloudvps api client
`order free service <https://www.reg.ru/vps/cloud`__
`More info about reg.ru KVM<https://www.reg.ru/vps/cloud>`__
USAGE
=====
.. code:: python
# import
>>> from cloudvps import Api
>>> api = Api('3f7c0a3d*****356b45d59f71a')
# or
>>> import cloudvps
>>> api = cloudvps.Api('3f7c0a3d*****356b45d59f71a')
>>> common = api.common
>>> print(common.sizes())
{'sizes': [{'disk': 10, 'id': 5, 'memory': 512, 'name': 'Cloud-1', 'price': '0.30', 'price_month': 199, 'slug': 'cloud-1', 'vcpus': 1, 'weight': 10}, {'disk': 20, 'id': 1, 'memory': 1024, 'name': 'Cloud-2', 'price': '0.67', 'price_month': 449, 'slug': 'cloud-2', 'vcpus': 2, 'weight': 20}, {'disk': 40, 'id': 3, 'memory': 2048, 'name': 'Cloud-3', 'price': '1.34', 'price_month': 899, 'slug': 'cloud-3', 'vcpus': 2, 'weight': 30}, {'disk': 60, 'id': 7, 'memory': 4096, 'name': 'Cloud-4', 'price': '2.66', 'price_month': 1790, 'slug': 'cloud-4', 'vcpus': 2, 'weight': 40}, {'disk': 60, 'id': 9, 'memory': 6144, 'name': 'Cloud-5', 'price': '3.71', 'price_month': 2490, 'slug': 'cloud-5', 'vcpus': 2, 'weight': 50}, {'disk': 80, 'id': 11, 'memory': 8192, 'name': 'Cloud-6', 'price': '4.75', 'price_month': 3190, 'slug': 'cloud-6', 'vcpus': 4, 'weight': 60}]}
LICENSE
=======
The MIT License (MIT) 2018, Anton Grudin.
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
Built Distributions
api_cloudvps_py-0.1.3-py3.6.egg
(18.7 kB
view hashes)
Close
Hashes for api-cloudvps-py-0.1.3.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba24b5b57cc420f361e7ebb70fc642ba31f0caae2783e6aaf7eac56085831cc |
|
MD5 | 174ac7c64ddb785d344e49285b4d2430 |
|
BLAKE2b-256 | 42aedbeb1698a0e915c157d92a4a2a071399de42e98be8be1b496b5ec1c9031d |
Close
Hashes for api_cloudvps_py-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c72169797ea74478b8dedf50eda99951e7b5e8f252bb39a4cb814f2979e3aaa0 |
|
MD5 | 77714a4ecfbfbedc57edc8dcc3e4867a |
|
BLAKE2b-256 | a365accefa4861d96df4b20be464674162626629b4c8be473be011d7c0b550fc |