Skip to main content

A python wrapper for the Server Density Api

Project description

https://img.shields.io/pypi/v/sd-python-wrapper.svg https://img.shields.io/travis/serverdensity/sd-python-wrapper.svg

A python wrapper for the Server Density Api It runs on both python 2.7 and up to python 3.5

Up and running

There are two ways of using the api wrapper. Either calling the endpoints from an instance of ApiClient or from an instance of the class of an endpoint such as Device.

from serverdensity.wrapper import ApiClient
from serverdensity.wrapper import Device

token = '2dfae5bf81f65492a40569d39b29ffa3'

client = ApiClient(token)
device = client.devices.create(data={'name': 'testdevice'})


# instead of keyword arguments, it can also take a dictionary.
device2 = Device(token, name='name2')
device2.create()

# This will create an AttributeError, since name is required to create a
# device at some point.
device3 = Device(token, group='testgroup')

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

sd-python-wrapper-0.1.30.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sd_python_wrapper-0.1.30-py2.py3-none-any.whl (30.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sd-python-wrapper-0.1.30.tar.gz.

File metadata

File hashes

Hashes for sd-python-wrapper-0.1.30.tar.gz
Algorithm Hash digest
SHA256 81e7a2e6a0386c2e7285b4694f94da19d2421386d7eec22a2d6be3152443af75
MD5 1c850dbc5f0ff91b15643d03a792a851
BLAKE2b-256 267ec1d6dbbbc82c0a0031040faa4a122dc406f2d0b94bb0f4a89c0305598903

See more details on using hashes here.

File details

Details for the file sd_python_wrapper-0.1.30-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sd_python_wrapper-0.1.30-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1dfa71287e83c07da8b1186ebaf36943b0e5306612c37b8eb00ebe53ef891e91
MD5 dc608813969af0e3d67abcf0c5b28e4b
BLAKE2b-256 e52b5e03524696e3372b299d15903acf9468e5b1587a035a456504a5670ea6b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page