Parser for version 1 of Valve's KeyValues format
Project description
KeyValues1
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
Release history Release notifications | RSS feed
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.1.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for keyvalues1-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc818111e9c51af573d2432382afb226331bf2b4ee843b38289c15160d902926 |
|
MD5 | f16e841e759fdae5ef71bb3285915442 |
|
BLAKE2b-256 | a0b847daca20d1179c754576cfe2bdf1ef71d297c99bf8cf27e68449c8428788 |