生成一年的热力图。
pip install --user yearmaps
Usage: yearmaps [OPTIONS] COMMAND [ARGS]...
Options:
-d, --data-dir TEXT Directory to store datas [default: ~/.yearmaps]
-o, --output-dir TEXT Directory to store output [default: $(pwd)]
-f, --file-type [svg|png] File type to export [default: svg]
-m, --mode [till_now|year] Generate mode of the program [default: till_now]
-y, --year INTEGER Year to generate, this option will override mode to "year"
-c, --color [red|pink|purple|deeppurple|indigo|blue|lightblue|cyan|teal|green|lightgreen|lime|yellow|amber|orange|deeporange|brown|grey|bluegrey]
Color to override provider default color
--help Show this message and exit.
Commands:
bbdc 不背单词
bili Bilibili
cf Codeforces
github GitHub
# 服务器模式
Usage: yearmaps-server [OPTIONS]
Options:
-l, --host TEXT Host to listen on. [default: 0.0.0.0]
-p, --port INTEGER Port to listen on. [default: 5000]
-f, --config TEXT Path to config file. [default: $(pwd)/yearmaps.yml]
--help Show this message and exit.
Usage: yearmaps bbdc [OPTIONS]
不背单词
Options:
-i, --id TEXT 不背单词用户 ID [required]
-t, --type [time|word] 图数据类型
--help Show this message and exit.
Usage: yearmaps bili [OPTIONS]
bilibili
Options:
-i, --id TEXT bilibili uid [required]
-t, --type [video] 图数据类型
--help Show this message and exit.
Usage: yearmaps cf [OPTIONS]
Codeforces
Options:
-u, --user TEXT Codeforces user name [required]
-t, --type [all|ac] 图数据类型
--help Show this message and exit.