Code Monkey home page Code Monkey logo

py-vultr-api's Introduction

py-vultr-api

Simple Python wrapper of Vultr API [ https://www.vultr.com/api ]

Feature

  • Supports all API calls
  • Generated from Vultr's API reference

Example

import vultrapi

# initialize
api = vultrapi.API("YOUR_API_KEY")

# enumerate
print("Supported functions:")
for v in dir(api):
	if not v.startswith('_'): print('\t' + v)

# public APIs
print(json.dumps(api.os_list(), indent=2))
print(json.dumps(api.regions_list(), indent=2))
print(json.dumps(api.plans_list(type="vc2"), indent=2))
print(json.dumps(api.regions_availability(DCID=1), indent=2))

# private APIs, needs valid API key
print(json.dumps(api.user_list(), indent=2))
print(json.dumps(api.server_list(), indent=2))
print(json.dumps(api.server_tag_set(SUBID="YOUR_SUBSCRIPTION_ID", tag="tag-test"), indent=2))

py-vultr-api's People

Contributors

ccyuza avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

wynt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.