Skip to main content

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 cloud<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


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.4.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

api_cloudvps_py-0.1.4-py2.py3-none-any.whl (9.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file api-cloudvps-py-0.1.4.tar.gz.

File metadata

  • Download URL: api-cloudvps-py-0.1.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3

File hashes

Hashes for api-cloudvps-py-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bbec9eedc317d035f1456307e6135fcb9d7bb8de29160a7cb40dbd1ec60e1f63
MD5 18b5db40b89d84469c36de7a2e90b542
BLAKE2b-256 06763f1ba6d5395701950e9304d511860bde1987e3d952e25653ad6773ba9ca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: api_cloudvps_py-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3

File hashes

Hashes for api_cloudvps_py-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e29f39cc822f4b399a29b444bfcc65c6d73b9833c7ac3b12fb511681110ea008
MD5 0528232d96c8aba7298ebd7a1dd0638c
BLAKE2b-256 e3030d86a0be45a8b983b0bc881baf5d6cbbf1722f7a526a7b473d9849b2de81

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