BCHydro API公司
bchydro的Python项目详细描述
阿皮鲁阿皮鲁
BCHydro Python API,用于从您的个人帐户中提取电力使用统计信息。在
安装
通过PyPi:
pip install bchydro
通过Github:
^{pr2}$使用
运行示例脚本:
pip install bchydro exportBCH_USER=your.email@domain.com exportBCH_PASS=your-bch-password python test.py
在项目中使用:
importasynciofrombchydroimportBCHydroApiasyncdefmain():a=BCHydroApi()awaita.authenticate("username","password")usage=awaita.get_daily_usage()print(usage.electricity)print(a.get_latest_point())print(a.get_latest_usage())print(a.get_latest_cost())asyncio.run(main())
托多
- []测试
- []发布时发布,而不是标记
- 项目
标签: