Modules for working with Valve's Source Engine file formats.
Project description
srctools
Modules for working with Valve's Source Engine file formats, as well as a variety of tools using these.
Installation
Simply pip install srctools
, you'll need Python 3.7+.
Core Modules:
math
: Core vector, angles and matrix classes, with Cython accelerated versions.cmdseq
: Reads and writes Hammer's expert compile command list format.filesys
: Allows accessing VPKs, zips, folders etc using a unified interface, as well as a prioritised chain like the engine's game folder system.logger
: Wrappers around thelogging
module allowingstr.format
interpolation support, among others.const
: Various shared constants and enums.tokenizer
: Cython-accelerated tokenizer for parsing the various text files.binformat
: Some tools for handling binary file formats.
File formats:
keyvalues
: Reads and writes KeyValues1 property trees.dmx
: Reads and writes DMX / KeyValues2 format files.vmf
: Reads and writes VMF map files.bsp
: Reads and writes compiled BSP maps files.fgd
: Reads and writes FGD entity definitions. A compressed database of definitions from most games is also included, from HammerAddons. Note that this parses a superset of the FGD format, including "tags" to allow specifying which entities and keyvalues are supported for different engine branches.mdl
: Reads some parts of compiled MDL/VTX/VVD/PHY models.smd
: Reads and writes SMD geometry data.sndscript
: Reads and writes soundscripts.vmt
: Reads and writes VMT material files.vpk
: Reads and writes VPK packages.vtf
: Reads and writes VTF images, including DXT compression.particles
: Reads and writes PCF particle systems.
Tools:
game
: Parsesgameinfo.txt
files, and handles accessing the searchpaths.instancing
: Implements logic for collapsingfunc_instance
into maps.packlist
: Stores a list of files of various types, then computes dependencies recursively. This also includes a database of resources required by game code for different entity classes.run
: Code to run a compiler, logging the output as it executes while still storing it.
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
srctools-2.3.5.tar.gz
(458.2 kB
view hashes)
Built Distributions
srctools-2.3.5-cp310-cp310-win32.whl
(664.1 kB
view hashes)
srctools-2.3.5-cp39-cp39-win32.whl
(666.9 kB
view hashes)
srctools-2.3.5-cp38-cp38-win32.whl
(667.9 kB
view hashes)
Close
Hashes for srctools-2.3.5-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe67f6456c06ba73fe2495d81220962a1c9a9e62e6948d9d92182f9805f95f0 |
|
MD5 | a4eb11fc01553fa3021647fd1d914ee7 |
|
BLAKE2b-256 | 1d0811a85f579665084fd00045ce054d2aea070a1dae714f590ef963ec73e55a |
Close
Hashes for srctools-2.3.5-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10e74b2839b6a8fb9292b5b3d900557c14f87e898704e86cab2b7422c7baf7a1 |
|
MD5 | d536473012bc6d0ae1ba3bca2689e0d3 |
|
BLAKE2b-256 | ce1ec4fc6513229ad4f75ecc23da453c360e18099f8ede46c6bcd6f776f9cf43 |
Close
Hashes for srctools-2.3.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a3cc08ea9f667a9ee75991879874cf06368c839374f2a456fd7f00fe5411ae3 |
|
MD5 | b6aef27dd153c019e53ec88ed0865502 |
|
BLAKE2b-256 | 7cd36fdcc9655bbc3597476e0db36b7ea69e719ffca5e11ceac82beacf6f3919 |
Close
Hashes for srctools-2.3.5-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24005cf3c796fec1fc07610508fbc9262742be0ea9f2631f133a675dae9483f |
|
MD5 | bf4a37f4c7affccee932aa7e3e18b4a0 |
|
BLAKE2b-256 | 27c8193ebf58857ed4f8c617f3fb7915214d595df2f6e8072804537a70220641 |
Close
Hashes for srctools-2.3.5-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275bc07ff824a6a1662574347d24a4c8f90118c3550c0134532442fbc39576ca |
|
MD5 | ec7fb2d0c82002570cd6f3572f24dad9 |
|
BLAKE2b-256 | eb3eb0dd8e62701c7c25262ed1fe90ca0facb860d7eafecbcacfcaf2ff3beff3 |
Close
Hashes for srctools-2.3.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692e76abc645addfbd6a0add8eb1bcb071f673b012666b4112e0f4d05893799b |
|
MD5 | 195e303ebd9279dff7e8a99b196518ed |
|
BLAKE2b-256 | bdff30baebd72310b94f8d92cea4ab7a50730a3c6976b0a308aec8a4fcef1684 |
Close
Hashes for srctools-2.3.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9022d5f019d2b14bec5854f602d9a4ce1521ed8447ef2ad97cc16ee0ab479e50 |
|
MD5 | ade03b46a86ac94abd1543a8e42547f8 |
|
BLAKE2b-256 | a5a73db75ff61bb98239dd6a7f490d742471183e83af137aebf900f8b1d6c905 |
Close
Hashes for srctools-2.3.5-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ccad5b95307d549aa7be3cc64c73f5ee1f3e32442927c0a62dc6be9012d6631 |
|
MD5 | 399a024ce2136cf8d5a83e982739ef45 |
|
BLAKE2b-256 | 0104b736bf0d8be1085f29647454dd6e736e60aa7f6ea26158cfab780eacbc06 |
Close
Hashes for srctools-2.3.5-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0f44b2117699e708c83e798944d1b46cbc1e67984cc7a1bb4bfc4c340ca121 |
|
MD5 | 03a3c3c866ec4138413b8e5df78d7ac5 |
|
BLAKE2b-256 | a614bd64e62d342832309ca3796482e258e1097ec95dad51d38fbdd8ebb3d0b5 |
Close
Hashes for srctools-2.3.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cc673662ab261a1511d0f1831ee4a206426d29b877452e8785df05833ae40bc |
|
MD5 | 0046db02acda93bbbf9965e79088b0b4 |
|
BLAKE2b-256 | 0cd013cc631137fa842eab7f92d95f201717b75ac7520828e7fe00de48856e3a |
Close
Hashes for srctools-2.3.5-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af4fb64fd7170e05d98db5b9bebc1aba146bd0123499ecb0dc5c3c70d3c058b |
|
MD5 | 908c7674832bd02d56b6373b615abe22 |
|
BLAKE2b-256 | 4ac4325fea9daae266db0e1cecaf1c0f0bc8271600cb080fbeddccc4ba14a923 |
Close
Hashes for srctools-2.3.5-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e7151853447d67229487aa91c76b730033712c95c12f1bd03b2826e1ead4aa4 |
|
MD5 | 9ecb1ead3d437ec6232e013c1f2aae61 |
|
BLAKE2b-256 | 8a7de32f54949988e0fd38424ca37d85a7be03d82d8bbc626d695fe363fafb2c |
Close
Hashes for srctools-2.3.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d1b5919517b77d673eccb63a243f65127edc433e911d0a278aa801ab6b7bf4 |
|
MD5 | 24496d5bfc3cbb32f3f6d1277ee2b222 |
|
BLAKE2b-256 | 32bb342b9af88331a5d65b8751930cbbf8f13537ef36aa35e1148b525e2676d4 |
Close
Hashes for srctools-2.3.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f598b91cf27476871424ba1c6a40f0199fb50863eb333d93419f3da0bfec88 |
|
MD5 | af9861120c6623bced9b9bc36a2385ea |
|
BLAKE2b-256 | 40469285a634bc21ee63984cf4ee075fbf6a044d3829b82e49670c650d610b61 |