GPLv3 license
PyPI pyversions
PyPI version fury.io
alt text

ValveVMF

ValveVMF is a Python library for parsing .vmf files for the Source Engine. It provides ways to read, modify and write vmf files.

Full documentation: https://pysourcesdk.github.io/ValveVMF/

Installation

PyPI

ValveVMF is available on the Python Package Index. This makes installing it with pip as easy as:

pip3 install valvevmf

Git

If you want the latest code or even feel like contributing, the code is available on GitHub.

You can easily clone the code with git:

git clone [email protected]:pySourceSDK/ValveVMF.git

and install it with:

python3 setup.py install

Usage

Here’s a few example usage of valveVmf

Parsing

Parsing can be done by creating an instance of Vmf with a path.

>>> from valvevmf import Vmf

>>> vmf = Vmf('C:/mapsrc/yourmap.vmf')
>>> print(vmf.nodes)
>>> vmf.save()

GitHub

View Github