用于曲棍球呆子的CLI实用程序和(一个子集)nhlapi
hockep的Python项目详细描述
____ ____ ____ ______ ___ ____ _________ ______ ____ ____
|_ || _| .' `. .' ___ ||_ ||_ _| |_ ___ ||_ __ \ |_ _||_ _|
| |__| | / .--. \/ .' \_| | |_/ / | |_ \_| | |__) | \ \ / /
| __ | | | | || | | __'. | _| _ | ___/ \ \/ /
_| | | |_ \ `--' /\ `.___.'\ _| | \ \_ _| |___/ | _| |_ _| |_
|____||____| `.____.' `._____.'|____||____||_________||_____| |______|
(发音像曲棍球py,所以可能是类似于/ˈhː.kipaɪ/)
Important:请记住,hockepy
正在积极开发中
任何部分都可以随时更换。在
安装
^{pr2}$CLI实用程序
hockepy
的主要目的是为极客提供一个命令行实用程序
曲棍球迷。发现当前实现的特性的最简单方法是
要显示帮助:
$ hockepy -h
usage: hocke.py [-h] [-D] [-v] {today,schedule} ...
positional arguments:
{today,schedule}
optional arguments:
-h, --help show this help message and exit
-D, --debug turn debug output on
-v, --verbose turn verbose output on
子命令还支持-h
选项:
$ hockepy schedule -h
usage: hocke.py schedule [-h] [--home-first] [--utc]
[first_date] [last_date]
positional arguments:
first_date first date to get schedule for
last_date last date to get schedule for
optional arguments:
-h, --help show this help message and exit
--home-first print the home team first
--utc print times in UTC instead of local time
请记住,实际的帮助可能会有所不同,因为这个列表并不一定 更新任何功能添加/更改。在
配置
你可以使用你最喜欢的配置文件来突出显示你喜欢的团队
.hockepy.conf
(存储库中包含一个示例):
highlight_teams = [
"Boston Bruins",
"Pittsburgh Penguins",
]
文件可以放在当前工作目录、主目录或 在HOCKEPY_CONF_DIR指定的目录中(HOCKEPY按该顺序检查)。在
NHL原料药
另一个目标是为nhlapi的子集提供一个Python接口。其他 联盟可以也可以不增加,但主要计划是支持NHL 现在。在
NHL API可从https://statsapi.web.nhl.com/api/v1/获得。我不知道 所有可用的文档,所以它一直在为 到目前为止。如果有任何文件,请告诉我。在
请注意,API的任何用法(因此hockepy
的用法
很可能受到
NHL Terms of Service。在
- 项目
标签: