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 participate
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': 20, 'id': 5, 'memory': 512, 'name': 'Меркурий', 'slug': 'test_512', 'vcpus': 1, 'weight': 10}, {'disk': 30, 'id': 1, 'memory': 1024, 'name': 'Марс', 'slug': 'test', 'vcpus': 1, 'weight': 20}, {'disk': 40, 'id': 3, 'memory': 2048, 'name': 'Венера', 'slug': 'test_x2', 'vcpus': 2, 'weight': 30}]}
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
Close
Hashes for api-cloudvps-py-0.1.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4efd23dea30deee8723d2731c2fde9e90eddf7adf9abf65b0ce72d4a2929379 |
|
MD5 | d3f53e3b9d87cb98365a6bd53bc83e9f |
|
BLAKE2b-256 | f635bd466156e958b22a1f6ce42f41cfadba106957220259d2b9d1ab41d31597 |
Close
Hashes for api_cloudvps_py-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61785d005f18184f283664bd3230354a8e09cec570336dc69e712dff38b20245 |
|
MD5 | ebea0806208860c6281aee735ae525e7 |
|
BLAKE2b-256 | 4bd4fbd6c92bcd196356673abfe04f611cd3fb69272c2386f0766df00e141485 |