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.

Files for api-cloudvps-py, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size api-cloudvps-py-0.1.2.linux-x86_64.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View
Filename, size api_cloudvps_py-0.1.2-py2.py3-none-any.whl (8.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page