Skip to main content

Basic api client for reg.ru cloudvps

Project description

https://badge.fury.io/py/api-cloudvps-py.svg https://badge.fury.io/gh/wa-pis%2Fapi-cloudvps-py.svg https://travis-ci.org/wa-pis/api-cloudvps-py.svg?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

api-cloudvps-py-0.1.2.linux-x86_64.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

api_cloudvps_py-0.1.2-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file api-cloudvps-py-0.1.2.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for api-cloudvps-py-0.1.2.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 e4efd23dea30deee8723d2731c2fde9e90eddf7adf9abf65b0ce72d4a2929379
MD5 d3f53e3b9d87cb98365a6bd53bc83e9f
BLAKE2b-256 f635bd466156e958b22a1f6ce42f41cfadba106957220259d2b9d1ab41d31597

See more details on using hashes here.

File details

Details for the file api_cloudvps_py-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for api_cloudvps_py-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 61785d005f18184f283664bd3230354a8e09cec570336dc69e712dff38b20245
MD5 ebea0806208860c6281aee735ae525e7
BLAKE2b-256 4bd4fbd6c92bcd196356673abfe04f611cd3fb69272c2386f0766df00e141485

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