Python client for https://dashboard.hologram.io/api.
Project description
python-hologram-api
Python client for https://dashboard.hologram.io/api.
Installation
pip install python_hologram_api
Documentation
Documentation: https://python-hologram-api.readthedocs.io.
Usage
HologramClient is the main class you should use. Most of its methods are sub-categorized based on the endpoint that the method interfaces with. For example, user account management is under client.user.
To use python-hologram-api in a project:
import os from python_hologram_api.client import HologramClient HOLOGRAM_API_KEY = os.environ.get('HOLOGRAM_API_KEY') client = HologramClient(HOLOGRAM_API_KEY)
Example Usages:
# List Devices resp = client.devices.list() if resp.get('success'): devices = resp.get('data') # Get a Device device_id = 1234 resp = client.devices.get(device_id) if resp.get('success'): device = resp.get('data') # Activate SIMs sims = ['99990000000012345678'] plan = 73 tier = 1 resp = self.client.cell.activate_sims(sims, plan, tier) assert resp.get('success') is not None
The following submodules are available:
Device Management
client.devices
client.cell
client.tags
client.data_plans
Hologram Cloud
client.csr
client.sms
client.cloud
client.spacebridge
Account Management
client.user
client.org
License
Free software: MIT license
History
0.1.2 (2017-10-23)
First release on PyPI.
Implemented a Python wrapper for https://hologram.io/docs/reference/cloud/http/
0.1.1 (2017-10-23)
Travis Errors
0.1.0 (2017-10-20)
Mistakes were made.
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
Built Distribution
Hashes for python_hologram_api-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ad668080b70b1d6672a36c896bd7d69d6e65ae10192f6a19fbee6f42af9f7a |
|
MD5 | c7ccd64649b67473185f68c593851163 |
|
BLAKE2b-256 | 4462d41acafbae1bbe89ee72779e1ee018852473a8918e3dd4267728ba845214 |
Hashes for python_hologram_api-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f27a95acda1e8eb0788ef34599dcd953cf7abb2899ede761427e50179993c69 |
|
MD5 | 5c212933b48aaa2263b81c13ff86c9b1 |
|
BLAKE2b-256 | 28f059f1c540c6462929f1737e69f8e78d398cb86599b2689c3da683df5dfbfc |