2024-06-16 06:44:36 -04:00
|
|
|
# StellarisModParser
|
|
|
|
|
2024-06-22 02:15:48 -04:00
|
|
|
[<img alt="PyPI - Version" src="https://img.shields.io/pypi/v/stellarismodparser">](https://pypi.org/project/stellarismodparser/)
|
|
|
|
[<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/stellarismodparser">](https://pypi.org/project/stellarismodparser/)
|
2024-06-22 07:58:56 -04:00
|
|
|
[<img alt="PyPI - License" src="https://img.shields.io/pypi/l/stellarismodparser">](https://www.coastalcommits.com/Seaswimmer/StellarisModParser/src/branch/master/LICENSE/)
|
2024-06-16 06:44:36 -04:00
|
|
|
This package provides a simple parser for Stellaris's mod descriptor format.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```python-repl
|
|
|
|
>>> import stellarismodparser
|
|
|
|
>>> path = "/home/seaswimmer/Projects/StellarisMods/No Menacing Ships.mod"
|
|
|
|
>>> mod = stellarismodparser.parse(path)
|
|
|
|
>>> mod.name
|
|
|
|
'No Menacing Ships'
|
|
|
|
>>> str(mod.supported_version)
|
|
|
|
'Andromeda 3.12.4'
|
|
|
|
>>> mod.tags
|
|
|
|
['Balance', 'Gameplay']
|
|
|
|
```
|