Skip to content

A simplistic and raw Python wrapper for DigitalOcean's V2 API

License

Notifications You must be signed in to change notification settings

ethanperez/Snakelet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snakelet - DigitalOcean API Wrapper

Snakelet is a straighforward wrapper for DigitalOcean's V2 API. It returns the raw JSON response from DigtialOcean without error catching or other manipulation. Its original purpose is to be used in SeaSnake, a DigitalOcean CLI.

If there's an API call for it on DigitalOcean, Snakelet has it wrapped.

Installation

Snakelet can be installed via pip

pip install snakelet

or Easy Install

easy_install snakelet

Usage

from digitalocean import Snakelet

s = Snaklet(token)

# Get all droplets
s.droplets.all()

# Get a droplet by id
s.droplet.get(47362753)

# Reboot the droplet
s.droplet.reboot()

All of the wrapper calls will be available in documentation soon

Todos

  • Make use of kwargs. Currently, all arguments must be fulfilled by name.
  • Testing suite
  • Extensive documentation

About

A simplistic and raw Python wrapper for DigitalOcean's V2 API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages