vdf
vdf copied to clipboard
📜 Package for working with Valve's text and binary KeyValue format
Apparently the VDF format supports definitions for merging files. - `#base` will merge KVs from the specified file with the ones from the current - `#include` will append I don't...
Attempting to parse a Source 2013 `gameinfo.txt` file will fail due to '+' characters in some of the subkeys in the `SearchPaths` key. Here's an example from Team Fortress 2's...
Request for adding a function to read vtex_c file and get the image bytes, or the file as an IO/Pillow Image.
Input file demo.vdf: ```text "controller_mappings" { "group" { "id" "0" } "group" { "id" "1" } } ``` Test script: ```python import vdf with open("demo.vdf") as fp: v = vdf.load(fp,...
This was when I was using `vdf.parse()` on a large `.res` file (around 5k lines). At first, I kept getting the error when it got to a key like this:...
Integers in binary VDF are already treated as little-endian (least significant byte first) regardless of CPU architecture, but the 16-bit units in UTF-16 didn't get the same treatment. This led...
* CI: Run tests on Python 3.11 and 3.12 * CI: Clean up EOL Python versions Github no longer offers Python 2.x at all, so stop running CI on that....
Added ability to dump to acf format. ```python vdf.dumps(__test_acf, pretty=True, acf=True) ``` No modification is required for read, parser reads correctly, test code: ```python with open("appmanifest_2348590.acf", "r") as read_acf: __manifest_orig...
It would be useful for users who wish to use tools such as MyPy to have typing support. Ideally, the calls would be fully type-hinted, and with the inclusion of...
This minimally fixes parsing of most gameinfo.txt and closes #49 without implementing functionality that doesn't seem to be part of the specification of KeyValues, which is the separation of keys...