Metadata-Version: 2.4
Name: keyvalues1
Version: 2.1.0
Summary: Parser for version 1 of Valve's KeyValues format
Project-URL: homepage, https://github.com/DoctorJohn/keyvalues1
Project-URL: repository, https://github.com/DoctorJohn/keyvalues1
Project-URL: documentation, https://github.com/DoctorJohn/keyvalues1
Author-email: Jonathan Ehwald <github@ehwald.info>
License: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <4.0,>=3.9
Requires-Dist: lark<2.0.0,>=1.1.7
Requires-Dist: typing-extensions<5.0.0,>=4.9.0
Description-Content-Type: text/markdown

# KeyValues1

[![PyPI][pypi-image]][pypi-url]
![PyPI - Python Version][python-image]
[![Codecov][codecov-image]][codecov-url]
[![License][license-image]][license-url]

[pypi-image]: https://img.shields.io/pypi/v/keyvalues1
[pypi-url]: https://pypi.org/project/keyvalues1/
[python-image]: https://img.shields.io/pypi/pyversions/keyvalues1
[codecov-image]: https://codecov.io/gh/DoctorJohn/keyvalues1/branch/main/graph/badge.svg
[codecov-url]: https://codecov.io/gh/DoctorJohn/keyvalues1
[license-image]: https://img.shields.io/pypi/l/keyvalues1
[license-url]: https://github.com/DoctorJohn/keyvalues1/blob/main/LICENSE

Parser for [version 1 of Valve's KeyValues format](https://developer.valvesoftware.com/wiki/KeyValues).

The focus of this particular library is parsing of relevant `steamcmd` output.

## Installation

```bash
pip install keyvalues1
```

## Usage

```python
from keyvalues1 import KeyValues1

text = """
    "570"
    {
        "common"
        {
            "name" "Dota 2"
            "oslist" "windows,macos,linux"
            "type" "game"
        }
    }
"""

data = KeyValues1.parse(text)

print(data["570"]["common"]["name"])
```
