ValvePCF is a Python library designed to parse and edit .PCF files, which are utilized for storing particle effects data in Valve's Source engine.
Full documentation: https://pysourcesdk.github.io/ValvePCF/
ValvePCF is available on the Python Package Index. This makes installing it with pip as easy as:
pip3 install valvepcf
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 git@github.com:pySourceSDK/ValvePCF.git
and install it with:
python3 setup.py install
Here's a few example usage of ValvePCF
Parsing can be done by creating an instance of Pcf with a path.
>>> from valvepcf import Pcf
>>> pcf = Pcf('C:/Program Files (x86)/Steam/steamapps/common/Team Fortress 2/tf/particles/custom.pcf')