spawningtool 2.9.0__tar.gz → 2.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {spawningtool-2.9.0 → spawningtool-2.12.0}/CHANGELOG.md +3 -0
- spawningtool-2.12.0/PKG-INFO +122 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/README.md +13 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/setup.py +8 -4
- spawningtool-2.12.0/spawningtool/hots_constants.py +1419 -0
- spawningtool-2.12.0/spawningtool/lotv_constants.py +1680 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool/parser.py +16 -1
- spawningtool-2.12.0/spawningtool.egg-info/PKG-INFO +122 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool.egg-info/SOURCES.txt +4 -5
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool.egg-info/entry_points.txt +0 -1
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool.egg-info/requires.txt +0 -1
- {spawningtool-2.9.0 → spawningtool-2.12.0}/tests/__main__.py +15 -0
- spawningtool-2.12.0/tests/__pycache__/__init__.cpython-312.pyc +0 -0
- spawningtool-2.12.0/tests/__pycache__/__main__.cpython-312.pyc +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/tests/gameheart.json +1500 -1500
- {spawningtool-2.9.0 → spawningtool-2.12.0}/tests/kerrigan.json +6826 -6826
- spawningtool-2.12.0/tests/patch_380_protoss.json +1397 -0
- spawningtool-2.12.0/tests/patch_400.json +4149 -0
- spawningtool-2.12.0/tests/patch_5_0_11.json +7846 -0
- spawningtool-2.12.0/tests/patch_5_0_16.json +34592 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/tests/tlo_v_thorzain.json +7759 -7759
- spawningtool-2.9.0/PKG-INFO +0 -91
- spawningtool-2.9.0/spawningtool/hots_constants.py +0 -772
- spawningtool-2.9.0/spawningtool/lotv_constants.py +0 -1130
- spawningtool-2.9.0/spawningtool.egg-info/PKG-INFO +0 -91
- spawningtool-2.9.0/tests/__init__.pyc +0 -0
- spawningtool-2.9.0/tests/__pycache__/__init__.cpython-34.pyc +0 -0
- spawningtool-2.9.0/tests/__pycache__/__main__.cpython-34.pyc +0 -0
- spawningtool-2.9.0/tests/__pycache__/utils.cpython-34.pyc +0 -0
- spawningtool-2.9.0/tests/patch_380_protoss.json +0 -1397
- spawningtool-2.9.0/tests/patch_400.json +0 -4149
- spawningtool-2.9.0/tests/utils.pyc +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/LICENSE.md +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/MANIFEST.in +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/setup.cfg +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool/__init__.py +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool/__main__.py +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool/analyzer.py +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool/coop_constants.py +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool/exception.py +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool.egg-info/dependency_links.txt +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/spawningtool.egg-info/top_level.txt +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/tests/__init__.py +0 -0
- {spawningtool-2.9.0 → spawningtool-2.12.0}/tests/update_expected_results.py +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
Changes
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
* v2.12.0, June 24, 2026 -- adjust Gateway unit build times for Warpgate Research in patch 5.0.16
|
|
5
|
+
* v2.11.0, April 29, 2024 -- update ladder data for balance patch 5.0.12 and 5.0.13
|
|
6
|
+
* v2.10.0, February 13, 2023 -- update ladder data for balance patch 5.0.11
|
|
4
7
|
* v2.9.0, August 17, 2021 -- Fix Liberator build time, add more display names
|
|
5
8
|
* v2.8.0, October 28, 2020 -- add Mengsk
|
|
6
9
|
* v2.7.0, January 18, 2020 -- update ladder data for balance patch 4.11.0
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: spawningtool
|
|
3
|
+
Version: 2.12.0
|
|
4
|
+
Summary: Build order parser for StarCraft 2 replays
|
|
5
|
+
Home-page: https://github.com/StoicLoofah/spawningtool
|
|
6
|
+
Author: Kevin Leung
|
|
7
|
+
Author-email: kkleung89@gmail.com
|
|
8
|
+
Classifier: Environment :: Console
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Natural Language :: English
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Games/Entertainment
|
|
19
|
+
Classifier: Topic :: Games/Entertainment :: Real Time Strategy
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE.md
|
|
23
|
+
Requires-Dist: sc2reader>=1.6.0
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: description-content-type
|
|
29
|
+
Dynamic: home-page
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
34
|
+
|
|
35
|
+
spawningtool
|
|
36
|
+
============
|
|
37
|
+
|
|
38
|
+
spawningtool is tools for analyzing StarCraft 2 Replays. It uses the data parsed by [sc2reader](https://github.com/ggtracker/sc2reader) to make data available in a more human-digestable format.
|
|
39
|
+
|
|
40
|
+
Currently, spawningtool offers a basic parser for extracting build orders from replays. Our goal is to incorporate more sophisticated techniques from Artificial Intelligence to understand and classify these build orders.
|
|
41
|
+
|
|
42
|
+
Installation
|
|
43
|
+
============
|
|
44
|
+
From PyPi (stable but often out of date for the latest patch)
|
|
45
|
+
```bash
|
|
46
|
+
pip install spawningtool
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
From GitHub (less stable but recommended)
|
|
50
|
+
```bash
|
|
51
|
+
pip install -e git+git://github.com/StoicLoofah/spawningtool.git#egg=spawningtool
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Note that master usually requires sc2reader master, not the latest versioned release, so you will need to grab sc2reader from GitHub as well. Although it is less stable, it is recommended because the latest versions of both spawningtool and sc2reader are necessary to parse the most recent patches of StarCraft 2
|
|
55
|
+
|
|
56
|
+
Usage
|
|
57
|
+
============
|
|
58
|
+
To execute it directly from the command line
|
|
59
|
+
```bash
|
|
60
|
+
python -m spawningtool PATH/TO/REPLAY
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
To execute it from within python
|
|
64
|
+
```python
|
|
65
|
+
import spawningtool.parser
|
|
66
|
+
spawningtool.parser.parse_replay('PATH/TO/REPLAY')
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For more notes, see the [GitHub wiki](https://github.com/StoicLoofah/spawningtool/wiki)
|
|
70
|
+
|
|
71
|
+
Running Tests
|
|
72
|
+
============
|
|
73
|
+
Tests parse the replays in `replays/` and compare the output against the expected results in `tests/`. To run them from the repository root:
|
|
74
|
+
```bash
|
|
75
|
+
python tests
|
|
76
|
+
```
|
|
77
|
+
The same suite runs automatically on every push and pull request via [GitHub Actions](.github/workflows/tests.yml).
|
|
78
|
+
|
|
79
|
+
To regenerate the expected results after an intentional change to the parser output:
|
|
80
|
+
```bash
|
|
81
|
+
python tests/update_expected_results.py REPLAY_NAME # e.g. patch_400
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Support
|
|
85
|
+
============
|
|
86
|
+
Please submit any issues you encounter to the [GitHub project](https://github.com/StoicLoofah/spawningtool/issues). You're also welcome to email Kevin directly at kevin@kevinleung.com.
|
|
87
|
+
|
|
88
|
+
Thanks To
|
|
89
|
+
============
|
|
90
|
+
* @dsjoerg for many contributions to sc2reader and replay parsing as a whole through his work at ggtracker
|
|
91
|
+
* @hahnicity for all of the code cleanup. Previously, spawningtool was just a script. Thanks to his help, the code is actually readable and packaged for others to use and improve
|
|
92
|
+
* @GraylinKim for lots of support. Even before the project switched over to using [sc2reader](https://github.com/GraylinKim/sc2reader), he offered advice and tips on getting this project off the ground.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
Changes
|
|
96
|
+
=======
|
|
97
|
+
|
|
98
|
+
* v2.12.0, June 24, 2026 -- adjust Gateway unit build times for Warpgate Research in patch 5.0.16
|
|
99
|
+
* v2.11.0, April 29, 2024 -- update ladder data for balance patch 5.0.12 and 5.0.13
|
|
100
|
+
* v2.10.0, February 13, 2023 -- update ladder data for balance patch 5.0.11
|
|
101
|
+
* v2.9.0, August 17, 2021 -- Fix Liberator build time, add more display names
|
|
102
|
+
* v2.8.0, October 28, 2020 -- add Mengsk
|
|
103
|
+
* v2.7.0, January 18, 2020 -- update ladder data for balance patch 4.11.0
|
|
104
|
+
* v2.6.1, October 14, 2019 -- bump sc2reader>=1.4.0, balance updates
|
|
105
|
+
* v2.6.0, August 9, 2019 -- add Stetmann, mark additional worker types
|
|
106
|
+
* v2.5.2, March 27, 2019 -- update Forge upgrade timing for March 25, 2019 balance update
|
|
107
|
+
* v2.5.1, March 8, 2019 -- remove changelings of Marines with Combat Shield
|
|
108
|
+
* v2.5.0, January 22, 2019 -- update ladder data for balance patch 4.8.2
|
|
109
|
+
* v2.4.0, November 21, 2018 -- update ladder data for balance patch 4.7.1
|
|
110
|
+
* v2.3.0, November 18, 2018 -- bump sc2reader==1.3.0 for StarCraft 4.7, add Zeratul
|
|
111
|
+
* v2.2.2, October 28, 2018 -- fix various LotV data, added more display names
|
|
112
|
+
* v2.2.1, October 24, 2018 -- fix pip packaging. Thanks Gusgus01
|
|
113
|
+
* v2.2.0, October 7, 2018 -- bump sc2reader==1.2.0 for StarCraft 4.6, add Tychus
|
|
114
|
+
* v2.1.0, June 13, 2018 -- fix Lair and Hive co-op build time, add Abathur building morph reduction, fix co-op generic build times, moved this file
|
|
115
|
+
* v2.0.0, May 18, 2018 -- continuous integration, StarCraft 2 4.0 support (new unit types, chronoboost, etc.), Co-op support
|
|
116
|
+
* v1.0.0, December 9, 2016 -- improved LotV chronoboost support, better unit type coverage, updated to LotV 3.8.0 data
|
|
117
|
+
* v0.2.1, December 12, 2015 -- Legacy of the Void support, HotS chrono boost
|
|
118
|
+
* v0.2.0, March 3, 2015 -- python3 support, analysis script examples, map details, caching
|
|
119
|
+
* v0.1.3, August 12, 2013 -- bump to sc2reader 0.6.0, unit tests, add unit change events to build order, add units lost, add ability extraction
|
|
120
|
+
* v0.1.2, June 15, 2013 -- Locking in sc2reader version, fix supply for it
|
|
121
|
+
* v0.1.1, May 12, 2013 -- Updating main to be accessible via the package, adding more metadata
|
|
122
|
+
* v0.1.0, May 12, 2013 -- Initial release
|
|
@@ -34,6 +34,19 @@ spawningtool.parser.parse_replay('PATH/TO/REPLAY')
|
|
|
34
34
|
|
|
35
35
|
For more notes, see the [GitHub wiki](https://github.com/StoicLoofah/spawningtool/wiki)
|
|
36
36
|
|
|
37
|
+
Running Tests
|
|
38
|
+
============
|
|
39
|
+
Tests parse the replays in `replays/` and compare the output against the expected results in `tests/`. To run them from the repository root:
|
|
40
|
+
```bash
|
|
41
|
+
python tests
|
|
42
|
+
```
|
|
43
|
+
The same suite runs automatically on every push and pull request via [GitHub Actions](.github/workflows/tests.yml).
|
|
44
|
+
|
|
45
|
+
To regenerate the expected results after an intentional change to the parser output:
|
|
46
|
+
```bash
|
|
47
|
+
python tests/update_expected_results.py REPLAY_NAME # e.g. patch_400
|
|
48
|
+
```
|
|
49
|
+
|
|
37
50
|
Support
|
|
38
51
|
============
|
|
39
52
|
Please submit any issues you encounter to the [GitHub project](https://github.com/StoicLoofah/spawningtool/issues). You're also welcome to email Kevin directly at kevin@kevinleung.com.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from setuptools import find_packages, setup
|
|
2
2
|
|
|
3
|
-
__version__ = "2.
|
|
3
|
+
__version__ = "2.12.0"
|
|
4
4
|
|
|
5
5
|
setup(
|
|
6
6
|
name="spawningtool",
|
|
7
7
|
description="Build order parser for StarCraft 2 replays",
|
|
8
8
|
long_description=open("README.md").read()+"\n\n"+open("CHANGELOG.md").read(),
|
|
9
|
+
long_description_content_type="text/markdown",
|
|
9
10
|
version=__version__,
|
|
10
11
|
url="https://github.com/StoicLoofah/spawningtool",
|
|
11
12
|
author="Kevin Leung",
|
|
@@ -16,18 +17,21 @@ setup(
|
|
|
16
17
|
"Natural Language :: English",
|
|
17
18
|
"Operating System :: OS Independent",
|
|
18
19
|
"Programming Language :: Python",
|
|
19
|
-
"Programming Language :: Python ::
|
|
20
|
-
"Programming Language :: Python :: 3.
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
21
25
|
"Topic :: Games/Entertainment",
|
|
22
26
|
"Topic :: Games/Entertainment :: Real Time Strategy",
|
|
23
27
|
],
|
|
28
|
+
python_requires=">=3.10",
|
|
24
29
|
entry_points={
|
|
25
30
|
'console_scripts': [
|
|
26
31
|
"spawningtool = spawningtool.__main__:main",
|
|
27
32
|
],
|
|
28
33
|
},
|
|
29
34
|
install_requires=[
|
|
30
|
-
'argparse',
|
|
31
35
|
'sc2reader>=1.6.0',
|
|
32
36
|
],
|
|
33
37
|
packages=find_packages(exclude=['tests']),
|