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.12.tar.gz
(1.8 MB
view hashes)
Built Distributions
Close
Hashes for srctools-2.3.12-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f37b50e622c72274cfb6cd4996686bffcd84fb10641e8108fab865b81ff2d5 |
|
MD5 | 1d90fabf84bf75e1b76a59e8875984b5 |
|
BLAKE2b-256 | 1edafae2742d8b90aa2b5e0edb197bbce106f87d9e97763bf8b907ec03feb706 |
Close
Hashes for srctools-2.3.12-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5abf842a52f28af1b46ff4df58ef4aecc577b82550d9d7ed2f149865e38eef |
|
MD5 | 6e9eca7b25980776a3c69891c07beaff |
|
BLAKE2b-256 | a8a85b41194ffb376b7d0f80ba786b187104cc40576df653cc04e9e11dca8507 |
Close
Hashes for srctools-2.3.12-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28fd1f7466776c9c08bf42a72e47e424e8c0ae7da2f31d532cbd7e55402df7a1 |
|
MD5 | aafe10faa7f4ff05f100f05d13601358 |
|
BLAKE2b-256 | 89d03cda98205dbf3d9b09922cde230961a635c327afb01f632310a3c33a00a5 |
Close
Hashes for srctools-2.3.12-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a472716c03d9e888e125c6f15de1fe78d0776cba821d8bd76d008035639e9e1 |
|
MD5 | 63cae2c5932cb7abe846063865eb17fb |
|
BLAKE2b-256 | 3b061b01468020a3501c53f5a9d81d6c5c779fa8cd2f0ca0719941cd892dd353 |
Close
Hashes for srctools-2.3.12-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a462256fae1ecb1d691c0bd4be90d4d92b89c2f378348b109b6353ce2d3ee61 |
|
MD5 | 6f7844cf2901546b2beeb054b683cce1 |
|
BLAKE2b-256 | 8f838063135c0031799a1dcb7a88d8aaf643a9a864b0f4e3173b80d3fa83fe1f |
Close
Hashes for srctools-2.3.12-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e9a427e956abfe270a04055b39cbeb623fd75c1e15f08cc127249e2eb3c2f87 |
|
MD5 | ddfc89bd69e7277e5c94a60fa2cedaaa |
|
BLAKE2b-256 | f09caa2dd6043c25bf876bb574acb25e9bb363d5aba9dbfebcb87341c9f7ab38 |
Close
Hashes for srctools-2.3.12-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 080209fb00595ea241aa0eb65a64aaccec6d746c96e89896a72873b843de4738 |
|
MD5 | ab45de0b2f2bde621828f93576ea2b9f |
|
BLAKE2b-256 | 4048269951d1272e65bf257e4fa4ff8b43b20dfc466a1813b7bff726478bafda |
Close
Hashes for srctools-2.3.12-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d9f004a68c6cadc96639010c8362f06c787ad4a541cc85cb70b311886abdb3 |
|
MD5 | af13cc9504222033d48ab16769eb8fdc |
|
BLAKE2b-256 | 546b0cd3f54df8d9feea04b056ce6e7f62cd13355a97cbbf233dd87a3a4458cf |
Close
Hashes for srctools-2.3.12-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4cea5329e536ca1fe08ff52c076655f7c200e098c57393d387f0e0ffda5c8a7 |
|
MD5 | 902cc6353dbd603045e8a0d3c9c671df |
|
BLAKE2b-256 | 80b92b7b7221e0b6eee122f4a7a74788f0d7adc2487e6b14fb46dfc35f05717c |
Close
Hashes for srctools-2.3.12-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee7d6ddcb48b0b9550664c610c3b3f78892b038b1ea47ff95ac2ecf0433a851d |
|
MD5 | ba8f7913872bc2525e77be4a7666a61f |
|
BLAKE2b-256 | 668ae44d6391808c4f80b701b8705ba881af4602ecc1fc53d25be68a3e1705e6 |
Close
Hashes for srctools-2.3.12-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10ef6b98bed7feab0b3c069cdd6d56792c7326721539b5c1f287fad4f70a174b |
|
MD5 | aed0fa8e926301fb857dd6ced9b75dc6 |
|
BLAKE2b-256 | b0dd3352c8999cb6d4e18fa80419a30fbe5c51ae12db26541462487ac61431d7 |
Close
Hashes for srctools-2.3.12-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1458ccacae763677119b9ff65054996eae270743143702c5fec71daf70686f5d |
|
MD5 | ea1167a6f045de8b654ff08ad338c813 |
|
BLAKE2b-256 | d0bf97938de72375dd658fb2d67ebc8fd612a43505a08694407971d4c59c8479 |
Close
Hashes for srctools-2.3.12-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 497de961821832d6b84a3f30599e3073961e82f3338ed468a73f6b749d9e10e7 |
|
MD5 | 57803255ae89757432893fdcf214933e |
|
BLAKE2b-256 | de69861df47fc3a1dbbf5a4fde8145c24ad25e31ec705218ef37cab01543a8d6 |
Close
Hashes for srctools-2.3.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca0d2facf17bdd60e146eed585e69516a8c87e306b0f02222ba871693218d55 |
|
MD5 | a879f8a3258596262c05248c9afd9704 |
|
BLAKE2b-256 | 42d6774056e139328de8dca0cfa5e7f782e4e92321093e635efda9e4efbf667f |
Close
Hashes for srctools-2.3.12-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d45b0f6af6be41bc37c77e1a38472cc4315eaae707549379e6e71d3dfc53cd7 |
|
MD5 | ce0af9ee0eb96f620fcbc328ec0ad3ea |
|
BLAKE2b-256 | 39c4d85246bf7c6f2e8b3b91bcbf4876bf10fa7e944e90ac28dcb5ea47872b33 |
Close
Hashes for srctools-2.3.12-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5ccc8cc038904eff8cba73203ccad04d0628e06de243049d1ea39eee89e344 |
|
MD5 | 213ff8b68f8006c4402ec799dcbb94b2 |
|
BLAKE2b-256 | 9bbd5b9fb5eea6570ab955f2275e21b4657d0ffd0a1474fec224237a438d6550 |
Close
Hashes for srctools-2.3.12-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0427260b7026b3a08f739666a11ce00ee5fc736fbfff697339650d36382b5b18 |
|
MD5 | 37843b53e6447825477292b09d104ba2 |
|
BLAKE2b-256 | a05070278f2c95eba2304f87d59d7a9efec01cd23f5ca3d7139a6361bcf3820a |
Close
Hashes for srctools-2.3.12-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4aecb8b1295f2bd4e1aca1fc4d4a436f2e937b5c2956bb33966adbaadbb1ada |
|
MD5 | b4d712bcb3af1ddb8970410165219737 |
|
BLAKE2b-256 | b421cd4725a4aceefa1905d4e9cbc78a35f570d7ed7ff88f44970d54979e91e5 |
Close
Hashes for srctools-2.3.12-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5585cca9d1470cf52047854d67b4a18105ebc6de9c0346e73c5f1b4d95c70e |
|
MD5 | d7d1c6ef9130c98482afe9305535a5c1 |
|
BLAKE2b-256 | a7d5b80dfdb5cf0493c577ac42fba3485fca058f1062a1579ecbe2fb895f6075 |
Close
Hashes for srctools-2.3.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738b69d5a5cd331d30d520a6fb294977ccc5c60b71453ab9a69af83aa551b70f |
|
MD5 | a4eff88e51bc64acb06628351b7664ea |
|
BLAKE2b-256 | 716ee90299ebdb116c835ecf4e1a433dc476bc0f6d76ab40ab2b61e15e5af302 |
Close
Hashes for srctools-2.3.12-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 063e5accd6382248027afa026c59168a94a45f3fca04a576f656fe36ed8f6cfa |
|
MD5 | 54e0838afdf53a730e6eff9944a9c5fa |
|
BLAKE2b-256 | 62d2aa98244da1fdfa7a5723d12d09da317b5c2fe32a4c5373f5e03c8afc384a |
Close
Hashes for srctools-2.3.12-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec739349dc77110a79366992eaaa035dd764604de7c547818c84aa56b562e46a |
|
MD5 | 813bb8b9f6e19c6b62b130cbfc88b357 |
|
BLAKE2b-256 | 0dd380117bd65e8de4520ac0450267ff8b6f06d6792bbd3ed77a79d83e267e9b |
Close
Hashes for srctools-2.3.12-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cbcfaeff0f5099ba50d857ede87d86094f97900554b2d617d0aa013a4fb1579 |
|
MD5 | e254e0a36fad5acf51dad6a7858d7f55 |
|
BLAKE2b-256 | 01a6343858b6bc244b35c7a3421320a953625801723b14245521f8f87ebcb4f8 |
Close
Hashes for srctools-2.3.12-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a074e2ff653044eba92bfeb557995d7bf99e010fe0f3c68331737c954e494bf1 |
|
MD5 | 333fb216cd2df5186de54ada0359d65a |
|
BLAKE2b-256 | 7b79ee4de7a314c2d1601a2c719ef993bda06346d8a391e82dc21177297905c8 |
Close
Hashes for srctools-2.3.12-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b6bf4fd4a0df48cf67d118c929af9ce0a665ae8a2536388b212df302b7f7b1 |
|
MD5 | 1def3e08d6c36102ea8bd162ab7e7f4d |
|
BLAKE2b-256 | b7a8948048089a48c6315f5836958da9cc766060f3c82575f67f6d125cea0b1b |
Close
Hashes for srctools-2.3.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08ddcf23bab5236dad511972ad3ba410a15e6b5efd3e7df91840c02f814385f4 |
|
MD5 | 5a916353a03dcd2d9d35a4b0a0eb5e13 |
|
BLAKE2b-256 | 14436b1aa7bcb354293fb4dd6e6a796664c57165355555f793a5582648864130 |
Close
Hashes for srctools-2.3.12-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10232d99a52c093d1050aa50200102a6dda6ef84375bbf93b0f21d8ae2eb6f9a |
|
MD5 | 988fca7962a480b8262d708ed94e1650 |
|
BLAKE2b-256 | d355bbb85077918636887e4c26cbb60831388b1da7d8d0672fc2c3b996b4bfe6 |
Close
Hashes for srctools-2.3.12-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4908d320f51d1de1ea1770c461cfd0623990608886c692b7658753b1ef2ba4f0 |
|
MD5 | 67cbe37bcfb6c56d593ac5384eb77a29 |
|
BLAKE2b-256 | 7ccc8083093e4489506c93c6ef0fd2ed013d657dc5206a028df8b15d35492b9a |
Close
Hashes for srctools-2.3.12-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b98db9d69b97f391f31a14f4d821c881952c76207c6dc1877d119b21b8746a9f |
|
MD5 | 7ef958a495def758f0dcf27150abbd64 |
|
BLAKE2b-256 | d8eacd9b830e0036486f5c3432059e532d0d5d9f620d3350375012ff327d65ea |
Close
Hashes for srctools-2.3.12-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5c56dd5243ded7719184e2866410e4e1875bb4126f1d8e5634d10369ac2f64 |
|
MD5 | 3dd7cb0fa20081e3f3a0a1fc6ef6ebf4 |
|
BLAKE2b-256 | 0f2f1a0f14d9531eec0fb4c61ef0621586f076694d44c8da65c9472931a6ee57 |
Close
Hashes for srctools-2.3.12-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d40fb6dca5d8ca14c69805ca422d72cd3deb8a42d9e5ec2681f740087d745a |
|
MD5 | 08e55398c06324fc74e2553dd78542f7 |
|
BLAKE2b-256 | a07ce25a0c5888a06697b10df4dbfa79d8306094fb30219782322e71e9f20031 |
Close
Hashes for srctools-2.3.12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bcb92fd6a6136036d76a3468e261551de77ac61bd13853c104c570e52f007d7 |
|
MD5 | ae0f42c67f33e22ad0b3e83f993ca968 |
|
BLAKE2b-256 | 0d6ea7152fba53294e20f7171ff2fb659077ca1ede94fc529053cd37b615a3b2 |
Close
Hashes for srctools-2.3.12-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e157bae789bf20f381ad914c54f4ce5890af3993b18eb375040e5045ba5e01 |
|
MD5 | a987abb67d3c3692171b5754dba4522e |
|
BLAKE2b-256 | 97e4d86a737f6ff66b92a2726448d3e62a50f58d6b22485ae374f8c4d8d42b78 |