A library to parse .VMF files (level editor files for the Source engine).
Project description
ValveVMF
ValveVMF is a Python library designed to parse and edit .VMF files, which store game level data for Valve's level editor, Hammer.
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 git@github.com: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()
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
Built Distribution
File details
Details for the file valvevmf-0.1.2.tar.gz
.
File metadata
- Download URL: valvevmf-0.1.2.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3abbd9c505386aca4c8a47d38846d257e6f1b46fa1b60bf4ad3f3d3ce4f5dfcd |
|
MD5 | 6df81279f292d1b4b7d6bb1e56df9461 |
|
BLAKE2b-256 | f1ec20b31783cb38b1c9cdab33b7ae40869312ebccf78890286b0e53e4376cdc |
File details
Details for the file valvevmf-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: valvevmf-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f145579f54f8f5184010de473832d2eea845ea98ba4568aa4ae49fc95790ddae |
|
MD5 | 314b75e9cc3879183f560afa66ae810d |
|
BLAKE2b-256 | e56a9523330a9ab41c0167af1caa1bc4051c0b7b673b08edb470fa21b3112ba2 |