python-evrythng 0.3.6
pip install python-evrythng
Latest version
Released:
A comprehensive pythonic wrapper around the Evrythng REST API.
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Gooee LLC
- Tags wrapper
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
A comprehensive pythonic wrapper around the Evrythng REST API.
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.
Project details
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Gooee LLC
- Tags wrapper
Classifiers
- Development Status
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-evrythng-0.3.6.tar.gz
.
File metadata
- Download URL: python-evrythng-0.3.6.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1fedd8ced17e19f297f805bf2363ee1dd41fa98b4dcaf28dfcfcd796f2c0636 |
|
MD5 | 3b3250805d472e701e68a5f9571e408f |
|
BLAKE2b-256 | 5f0f935a1788de4104f126489dba85764464fe3deacf75f7ffbe8fa92a647f55 |