Basic api client for reg.ru cloudvps
Project description
INSTALLING
$ 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
More info about reg.ru kvm cloud https://www.reg.ru/vps/cloud
USAGE
# 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 Distribution
File details
Details for the file api-cloudvps-py-0.1.7.linux-x86_64.tar.gz
.
File metadata
- Download URL: api-cloudvps-py-0.1.7.linux-x86_64.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc0fcb3efdebbae15d06c7b10fbb8aa3f7ad20c12829937f9f0d2b9193d27d5d |
|
MD5 | 1dbd16b98e521a3f630c7b0991ac2db6 |
|
BLAKE2b-256 | cbdd3b4fc20bc847adf5c124c650fade937fcad4fad284e56bae710bd80df93a |
File details
Details for the file api_cloudvps_py-0.1.7-py2.py3-none-any.whl
.
File metadata
- Download URL: api_cloudvps_py-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd0fedb7102735eecaaaa8774b611c465beb014cf412053df98f43e50478ccf |
|
MD5 | 129931e69f80f514df59019c34f15a78 |
|
BLAKE2b-256 | 413b2b74cd3600ba9a71f7cba8b676bd702ff411861e6ea2f793dad753d222a2 |