Skip to main content

Parser for version 1 of Valve's KeyValues format

Project description

KeyValues1

PyPI PyPI - Python Version Codecov License

Parser for version 1 of Valve's KeyValues format.

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

Installation

pip install keyvalues1

Usage

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"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keyvalues1-1.0.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

keyvalues1-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page