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-2.0.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file keyvalues1-2.0.0.tar.gz
.
File metadata
- Download URL: keyvalues1-2.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245c5817da282b39b959e96a748a798de00f9eba0e4dae62e0d5e8f38af8d2c7 |
|
MD5 | 5eb80f3819828e703b029134b98b9c3b |
|
BLAKE2b-256 | cb71650ca63c22a89b5cbae7eb6512e08ef5e46c52a7e63df0c8acf91640e7a1 |
File details
Details for the file keyvalues1-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: keyvalues1-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.6-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91df2efda096cfa037b8145e2f792e6ab74971e9cdf0ae7cd43ab23f42fd3b1 |
|
MD5 | ec1959cfececebe03980684736a6e666 |
|
BLAKE2b-256 | 2b2112557beea8b4f3ebd88a5cd56542c06e980cedcd02451b3123bd83a8d050 |