跳转到主要内容

脚本,用于将目录中新出现的文件自动上传到sc2replaystats。

项目描述

sc2replaystats_uploader

image main Documentation Status

将目录中新出现的《星际争霸II》重放文件自动上传到sc2replaystats的脚本。

安装

只需pip install sc2replaystats_uploader

使用方法

参数有文档说明


dominik@dell ~/Code/sc2replaystats_uploader % sc2replaystats_uploader --help                                                                                                             [0]
Usage: sc2replaystats_uploader [OPTIONS]

  Console script for sc2replaystats_uploader.

Options:
  --auth TEXT     sc2replaystats authorization key; find it in
                  https://sc2replaystats.com/account/settings -> API Access
                  [required]

  --path PATH     Directories in which to find replays. You can put multiple
                  such options here. If using multiple in an environment
                  variable, separate them with a colon ':'.  [required]

  --help          Show this message and exit.

您可以将它们作为标志放入


sc2replaystats_uploader --auth "AUTHKEYGOESHERE" --path "EU_REPLAY_DIR" --path "US_REPLAY_DIR"

或者您可以使用环境变量

export SC2REPLAYSTATS_AUTH="AUTHKEYGOESHERE"
export SC2REPLAYSTATS_PATH="EU_REPLAY_DIR:US_REPLAY_DIR"
sc2replaystats_uploader

您可以通过Control-C退出。

与Lutris一起使用

我通过Lutris启动这些脚本。在“系统选项”中,将预启动脚本的路径设置为包含以下内容的可执行Bash文件

#!/usr/bin/bash
# do other stuff, Toggl tracking, etc
export SC2REPLAYSTATS_AUTH="AUTHKEYGOESHERE"
export SC2REPLAYSTATS_PATH="EU_REPLAY_DIR:US_REPLAY_DIR"
sc2replaystats_uploader

然后,要关闭脚本,请使用以下后退出脚本

#!/usr/bin/bash
pkill -f sc2replaystats_uploader

致谢

此软件包是用Cookiecutteraudreyr/cookiecutter-pypackage项目模板创建的。

历史

0.1.0 (2020-08-25)

  • 在PyPI上的首次发布。

项目详情


下载文件

下载适合您平台的文件。如果您不确定该选择哪一个,请了解更多关于安装包的信息。

源代码分发

sc2replaystats_uploader-0.2.6.tar.gz (14.6 kB 查看哈希值)

上传时间 源代码

构建分发

sc2replaystats_uploader-0.2.6-py2.py3-none-any.whl (6.0 kB 查看哈希值)

上传时间 Python 2 Python 3

支持者