用于https://dashboard.hologram.io/api的python客户端。
python-hologram-api的Python项目详细描述
python全息图api
用于https://dashboard.hologram.io/api的python客户端。
安装
pip install python-hologram-api
文件
使用量
HologramClient是您应该使用的主类。它的大多数方法是 根据方法与之接口的终结点进行子分类。为了 例如,用户帐户管理位于client.user下。
在项目中使用python全息图api:
importosfrompython_hologram_api.clientimportHologramClientHOLOGRAM_API_KEY=os.environ.get('HOLOGRAM_API_KEY')client=HologramClient(HOLOGRAM_API_KEY)
示例用法:
# List Devicesresp=client.devices.list()ifresp.get('success'):devices=resp.get('data')# Get a Devicedevice_id=1234resp=client.devices.get(device_id)ifresp.get('success'):device=resp.get('data')# Activate SIMssims=['99990000000012345678']plan=73tier=1resp=client.cell.activate_sims(sims,plan,tier)assertresp.get('success')isnotNone
提供以下子模块:
- 设备管理
- client.devices
- client.cell
- client.tags
- client.data_plans
- 全息云
- client.csr
- client.sms
- client.cloud
- client.spacebridge
- 账户管理
- client.user
- client.org
许可证
- 自由软件:麻省理工学院许可证
历史记录
0.1.6(2017-10-27)
- 向Travis添加覆盖范围
- 将工作服添加到travis和自述文件中
0.1.5(2017-10-27)
- 更新自述格式/突出显示
0.1.4(2017-10-23)
- 将python_hologram_api.rst添加到文档中
0.1.3(2017-10-23)
- 更新文档
0.1.2(2017-10-23)
- pypi上的第一个版本。
- 为https://hologram.io/docs/reference/cloud/http/ 实现了一个python包装器
0.1.1(2017-10-23)
- travis错误
0.1.0(2017-10-20)
- 犯了错误。