用于检查Teksavy(和其他ISP)配额的脚本
tekuila的Python项目详细描述
查询ISP下载配额的接口。
“你有很多东西要下载吗?“
版本
与Python2.7、3.4、3.5一起使用
拉你的ISP配额,并采取行动。
支持的ISP:
要避免使用命令行标志,请在以下位置创建配置文件:
~/.tekuila
将以下变量放入配置文件:
API=<your API KEY from https://myaccount.teksavvy.com/ApiKey/ApiKeyManagement> CAP=<your cap in GB> WARN_RATIO=<ratio % to warn in 0.1 increments up to 1.0>
安装
要安装,请运行以下命令:
pip install tekuila
或者,如果您希望从源安装最新版本:
git clone https://github.com/mikeodr/tekuila cd tekuila python setup.py install
API使用
控制台使用
控制台命令帮助:
tekuila -h usage: tekuila [-h] [-c CONFIG] [--cap CAP] [--api API] [--warn WARN] [-v] [-s] [--version] Check TekSavvy Cap optional arguments: -h, --help show this help message and exit -c CONFIG, --config CONFIG Alternative config file --cap CAP Your cap in GB, causes nonzero return code if exceeded --api API API Key --warn WARN Warn ratio against data cap, causes nonzero return code if exceeded, in range 0.1 to 1.0 -v, --verbose Show output, don't just use return code -s, --startca Use StartCA instead of TekSavvy API --version show program's version number and exit
拉取请求和问题
拉请求非常欢迎。 检查它是否符合PEP8,请确保文档已生成。
请使用基本提交与大提交,并尝试进行提交 信息要详细。看蒂姆·波普的优秀作品。
许可证
gplv2