非官方的xcel能源api
pyxcel的Python项目详细描述
pyxcel:xcel energy®数据的简单python api
pyxcel是一个简单的python库,用于从 Xcel Energy®。
此库通过重复由以下用户执行的相同http请求来工作 查看Xcel Energy®网站。因为没有官方的“api”,所以 图书馆随时可能停止工作。
安装
$ pip install pyxcel
用法
importpyxcelclient=pyxcel.Client('username','password12345')# Retrieves the account overview (including energy usage, grades, etc.):client.get_account_overview()# Retrieves all billing information for the accountclient.get_bills()# Retrives detailed information for a particular premise:client.get_usages('PREMISE_ID')
贡献
- Check for open features/bugs 或者initiate a discussion on one。
- Fork the repository。
- 安装开发环境:
make init
。 - 进入虚拟环境:
pipenv shell
- 编写新功能或错误修复代码。
- 编写一个涵盖新功能的测试。
- 运行测试:
make test
- 创建新文档:
make docs
- 加入到authors.rst中。
- 提交拉取请求!