XSteam/3rdparty/ValveFileVDF/python
2024-10-11 19:40:20 +08:00
..
CMakeLists.txt init xsteam 2024-10-11 19:40:20 +08:00
Readme.md init xsteam 2024-10-11 19:40:20 +08:00
test.py init xsteam 2024-10-11 19:40:20 +08:00
vdf_python_bindings.cpp init xsteam 2024-10-11 19:40:20 +08:00

Python Interface

Adds a simple interface for Python. Use CMake (>=3.12) to build the .pyd file.

Interface may change in the future.

Module Example:

import vdf

mydict = vdf.read_file("test_file.vdf")
#mydict is a standard dictionary

value = mydict[key]

mydict2 = vdf.read("vdf_file{"key":"value"}")