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.8+.
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.15.tar.gz
(2.2 MB
view hashes)
Built Distributions
Close
Hashes for srctools-2.3.15-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b459e25bc1c0e72e4023588e606a0aa209a7cdb5580240298cc1c3a3ddfb4210 |
|
MD5 | e6adb6f8b0cb96abb5ffbbff8e79cbb5 |
|
BLAKE2b-256 | 90f0d87648c8384c552ffad768150d7b307eee53aed64e86197f09b4fe98307e |
Close
Hashes for srctools-2.3.15-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf3df39094472366b6f1a46bd0d8301f5301a3698277796cf9a01fe81a1dd3d |
|
MD5 | af6acc3bbe4521b56439d9c4accf798e |
|
BLAKE2b-256 | c5c7db93f746fb9ca284245910b6b200a96fa77e2563e1c5ad38adecc3089460 |
Close
Hashes for srctools-2.3.15-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 255fdda6c3b307251bd7e767dc7af70a1d97ddf80546478f04f8c06e1114e042 |
|
MD5 | fa861587b721956e9a592048e0f68a43 |
|
BLAKE2b-256 | a44bf3a7580a5c21c839f1079f9d94cf322117fc6127be9b656271fb8e13afec |
Close
Hashes for srctools-2.3.15-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd3d649ea6d69b27b6080dd28af7f351b9fb43ac1591b8016aac8edfa3a6d69 |
|
MD5 | 70a60a475479d9e25dd779bda8fb4950 |
|
BLAKE2b-256 | 33da426731da3c3071daf9e233e906475c8cf68d48aba7c01be9db558eeadc47 |
Close
Hashes for srctools-2.3.15-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 019924beaf9413ede35918ad59210fcb89d940b9ca889558059435fd6d545baf |
|
MD5 | 22af17b5336b2c923c5d85311a467bce |
|
BLAKE2b-256 | 96483e8f2b70e154e76406ef9a96a60674535a35e277e41c4c7be2e95cfd3428 |
Close
Hashes for srctools-2.3.15-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2814ad9a1450c6195ac1b3ec4f755d7ac4488e4e9b6a0282100801ec0f97961f |
|
MD5 | c44dd66e10aa9ce044240070d0f9d642 |
|
BLAKE2b-256 | 319b160cf405c2f15d020678f99dd4ba973f4838ce0ca1a9bb7aa98196727642 |
Close
Hashes for srctools-2.3.15-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4b9a18d8ec057473f7e317adf92955044a3cd7e91cef58e790be032f7f7cae |
|
MD5 | f667798898db27c33d225f1989d4dd83 |
|
BLAKE2b-256 | 3f7be1fb7c88efe689965f983e38e6c4da89a9e68f7b42a0fa5aaa7efd52e74e |
Close
Hashes for srctools-2.3.15-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9603bc6e67a757bbb086dbdbf34d2b46a9f3f667e4261c5f35087d7e15bf68c |
|
MD5 | 66747fbe95b394582b88c62f01615a02 |
|
BLAKE2b-256 | 7a9554eeab85c23432bd62dfbd802a06fc527e4b618de5f237076b9dc43f4f6e |
Close
Hashes for srctools-2.3.15-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985d045edc569aefe6dfa30c0498ca2f0ac8abf4e85efe4c1441ce29f8a4e770 |
|
MD5 | 212d4a7253b9f8431bab67504ab24bb0 |
|
BLAKE2b-256 | d368fb4b92622214ba74ea40b05711c16b6d89752230b1e24b8931e402d005ae |
Close
Hashes for srctools-2.3.15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e48c327b7633f6c0b828c09fddca3380eb66eb75a19b67e3924fd8d2261a067 |
|
MD5 | ceaba0218f685b6d9e1efb947375e113 |
|
BLAKE2b-256 | 32ed9a5c12d1add4bea1a6e9cc57358eb7f5a02378c00958700074e5d31108c6 |
Close
Hashes for srctools-2.3.15-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb5d24517293af09eace98e41be66dacedc7fef724c1b1e55d082d8c8938c0d1 |
|
MD5 | a7ad702e1b7cf78b5f73bf3798aa4e08 |
|
BLAKE2b-256 | 934a838aaf95dd313929dba2f41d35da5a8d39972636e7cef40f8a2db201b284 |
Close
Hashes for srctools-2.3.15-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d07def074595cb6a2048bfc40d8644ee6fff7fd02ab820b78c220292b3b8b99 |
|
MD5 | 7f6a03ce610b9b4bcbaa6a6a282d46a7 |
|
BLAKE2b-256 | f53b8d63d22091f253f1d4a824c8dbb1361d85a8e168044cd7f7df0b34aed24b |
Close
Hashes for srctools-2.3.15-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c235f10076f76f61ccfd3414cc9797e1120e65d440c5366f214eef8179d909c |
|
MD5 | c3ceaac13a563b4fee0b874e2f5d0f13 |
|
BLAKE2b-256 | 0f548b3dd8e9a3a79afa92aabd4def7636fbb9c6c3e07f065df6fea17409894b |
Close
Hashes for srctools-2.3.15-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcac04f248abc74af4d31ddf136b05f933de25f053c8e6cbca3c101060caf858 |
|
MD5 | 74d529337c27712e37708a6a4d8cb3d9 |
|
BLAKE2b-256 | 8dd2d019edf3c05996f0464edb4a04157caef474caef7858b088c116bb2656e6 |
Close
Hashes for srctools-2.3.15-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cfc95fe2c1152a1d01128719c599e5111337a19804b3df8ddf838cb87a69b2e |
|
MD5 | bc23e06c420d175697415f6a60729afa |
|
BLAKE2b-256 | 8375bf8efeaf5497ba0169d09a360b6ee14a889453515dad58e964dfc8855c45 |
Close
Hashes for srctools-2.3.15-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b88b77c7bdccd4ed18e5b9ecd72dc0ffb7e09513b3d06feaa0debac8ca1c02e |
|
MD5 | 19f4636d2279d84f3bda20cd50ad7918 |
|
BLAKE2b-256 | 242939b539234bb6f4337f5caac9849b18c6c365e2d7155d4cff64b30c1425db |
Close
Hashes for srctools-2.3.15-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4999e3b171c47850c6758b735e7c3fd209bb6902cfa05c5bd521c89fecd1c54c |
|
MD5 | 299252d60ad1b00eb1fe348aae378dd4 |
|
BLAKE2b-256 | 69a648edde37edb3458f776f64ccf488988a5eed557fddee869af2f366f80204 |
Close
Hashes for srctools-2.3.15-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae5cf9198abd22a1ad3c16776fc6cef659e3cc7fbf36c852cba129c761d1690 |
|
MD5 | 7f86b732334e3fcd20ea226821b46254 |
|
BLAKE2b-256 | 4bcdb298458fda217fb6ce8227503a31b4602b4cdee07f08a29cfde0ab3955a7 |
Close
Hashes for srctools-2.3.15-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89d4597869980d6de23062d75d763273383416e21cd3a5f40bb1fdfccc6b1a4e |
|
MD5 | ac35e0a949d6e33d97924b815ee303c4 |
|
BLAKE2b-256 | 31d26a442afb5ea23bfb3a68fa4d56643f23608d9cceb59b152da35b0e60eb7f |
Close
Hashes for srctools-2.3.15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f49f6883cb03ed86219dd8b9399d575a02dce18faaeb3b0e0172a7282fe0eec8 |
|
MD5 | e2c6fdc9d14a7c62a6649deb3cd95b62 |
|
BLAKE2b-256 | dfa4c17098fb1a60ed1437aa2838e586a843f9f645d7d944a0dd3ede49789dc3 |
Close
Hashes for srctools-2.3.15-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59f08fc071910edfc8cb2c8c6f1e312f970544dd56cc2df03f02fd5632cd354 |
|
MD5 | 6be53a0aa7e32981d78e9c00197b0b14 |
|
BLAKE2b-256 | bcf451bcbc40499246ec41bbd3fd03c321c372e2d61170db0754f1fecc60e5e5 |
Close
Hashes for srctools-2.3.15-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406e88bbb26a8172bed24964bb7557120caf852464aed5b836d2c1b79b1991cc |
|
MD5 | 629a06b42912f0e593d21b87cadfe303 |
|
BLAKE2b-256 | 692c4c0d9b6dfa5d142c566ecedce4663e7e0d1453c607e8dc49d7ae11416ca6 |
Close
Hashes for srctools-2.3.15-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f26e2dfb7fdb7896956f09a0a04258a89e50caae1dcb8d547de5a160a1a384e |
|
MD5 | fd360243e89f3ba9415bca07d8589204 |
|
BLAKE2b-256 | 5189011d933654914666c9b8f5ddd612c68be2fff5c728cd79c9dc7c76709454 |
Close
Hashes for srctools-2.3.15-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3e08f9425928b8b3e971f715eb58d25b3806ef968ce9145c371310a9282fdf8 |
|
MD5 | 2f1cdc64fa15573174be4ad2dc110fba |
|
BLAKE2b-256 | 891720c685c88b5559cbe4b7e13cc5e82f87cc613b32bf1075e5bb92f4f46e96 |
Close
Hashes for srctools-2.3.15-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe8d51f5f516029b9d34a632a65fe47fde6d14670bbe400838ebbd17faa55f23 |
|
MD5 | 14b7d04a5f13137d2401f5b8e432ec6b |
|
BLAKE2b-256 | bdb3594b3eccacfa607569e34757111bc8e4c4208e7dd87a0361f792afa8d829 |
Close
Hashes for srctools-2.3.15-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278759bb3ca18c29b316e79359335514c114c6a3454d2cab331b727678bde909 |
|
MD5 | a11613624c3c915ba4bf5df937b92890 |
|
BLAKE2b-256 | aabd54b100906c642168baaf548f4ddb60a9bcccd7e242dddb0994e487e55109 |