sc2replaystats_uploader
Script to automatically upload new StarCraft II replays appearing in a directory to sc2replaystats.
- Free software: MIT license
- Documentation: https://sc2replaystats-uploader.readthedocs.io.
Installation
Just pip install sc2replaystats_uploader!
Usage
The parameters are documented:
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.
You can either put them in as flags:
sc2replaystats_uploader --auth "AUTHKEYGOESHERE" --path "EU_REPLAY_DIR" --path "US_REPLAY_DIR"
Or you can use environment variables:
export SC2REPLAYSTATS_AUTH="AUTHKEYGOESHERE"
export SC2REPLAYSTATS_PATH="EU_REPLAY_DIR:US_REPLAY_DIR"
sc2replaystats_uploader
You can exit through Control-C.
Usage with Lutris
I launch these scripts with SC2 through Lutris. In "System options", set a path to a pre-launch script to an executable Bash file containing the following:
#!/usr/bin/bash
# do other stuff, Toggl tracking, etc
export SC2REPLAYSTATS_AUTH="AUTHKEYGOESHERE"
export SC2REPLAYSTATS_PATH="EU_REPLAY_DIR:US_REPLAY_DIR"
sc2replaystats_uploader
Then, to shut the script down, have a post-exit script that goes
#!/usr/bin/bash
pkill -f sc2replaystats_uploader
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-08-25)
- First release on PyPI.
Metadata
Release files for sc2replaystats-uploader 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sc2replaystats_uploader-0.2.6.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sc2replaystats_uploader-0.2.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 20.6 kB
Release files / sc2replaystats_uploader-0.2.6.tar.gz
| Download URL | sc2replaystats_uploader-0.2.6.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f21dce1aa8c9ddff07057ffe8de59b971d723ac3a3fdc02a50ff0bdcb42d1a1b
|
|
BLAKE2b-256 checksum How to use checksums |
7d6db3e3506a5ce548251cdf385264205ef6323554f03c4a67f9c44b646b7e53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / sc2replaystats_uploader-0.2.6-py2.py3-none-any.whl
| Download URL | sc2replaystats_uploader-0.2.6-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4c33ffe74dbd8e695e22474b25b01535ca07f166437f3f1aefdd45bfb0d3ca37
|
|
BLAKE2b-256 checksum How to use checksums |
383ab76a0d3514c94ef405a4941ba2a4ee0751c75957f6dbf5773ed858cff43f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|