Giter Site home page Giter Site logo

evrythng-python-sdk's Introduction

Python Evrythng

A comprehensive pythonic wrapper around the Evrythng REST API.

image

For more information about Evrythng and the API that this module wraps, see the Evrythng Documentation Portal.

Installation

python-evrythng is available on PyPI and can be installed via pip.

$ pip install python-evrythng

Example Usage

import os
from evrythng import entities

EVT_OPERATOR_KEY = 'your operator key from the Accounts page'
os.environ['EVRYTHNG_API_TOKEN'] = EVT_OPERATOR_KEY
os.environ['PYEVT_DEBUG'] = '1'

print('Creating a  Project...')
response = entities.create_project('python-evrythng Project')
assert response.status_code == 201
project_id = response.json()['id']

print('Creating an Application under Project={}...'.format(
    project_id))
response = entities.create_application(project_id,
                                       'python-evrythng Application')
assert response.status_code == 201
response_json = response.json()

print('You can get the Trusted API key of the Application...')
application_id = response_json['id']
trusted_app_key = entities.read_trusted_application_key(
    project_id, application_id)
app_key = response_json['appApiKey']
print('Trusted App Key = {} for Application={}'.format(
    trusted_app_key, application_id))

Found a bug, wanna help?

Awesome, let us know! Create a pull request.

image

image

evrythng-python-sdk's People

Contributors

augustawind avatar codeadict avatar dudymas avatar lylescott avatar ramonpaulalvarez avatar rtrajano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.