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.14.tar.gz
(2.2 MB
view hashes)
Built Distributions
Close
Hashes for srctools-2.3.14-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cefd685e006a8aa34b19ced9f5e35351672f34fa7864e14daaf5eec3ffd15bbf |
|
MD5 | a41e89b7ecddab57aa10e8b1ba9834e1 |
|
BLAKE2b-256 | 0cd0ed7b41c3e06fa027ff99c7dc5daa30fc728f3789453ce6da7ce9cb4fe988 |
Close
Hashes for srctools-2.3.14-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bfeb7ac8f6f83390e5743d46c372af768d4342f9fbf2467a62ef73b4d00d8b2 |
|
MD5 | d56721594997c9a80332b95777437f52 |
|
BLAKE2b-256 | 73ef933003c77922856fc0002f0c097f4e55fa3bb5e355a759b70265a0126a20 |
Close
Hashes for srctools-2.3.14-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 909bbae7f43b558b0361f88521e3d8ece397f712512b83e04bed29d9332b365f |
|
MD5 | 290b78af991df78e866e87260be7aa6e |
|
BLAKE2b-256 | a8d378037fa4ecd82c9697935fe83859a50e952c12adeae6f75e6b4e7ced523c |
Close
Hashes for srctools-2.3.14-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b23ae5f9afdb45596e8db7cdeace8e3d40d998bb7eb6b9f5f972a7d7b932cdaa |
|
MD5 | 91eafad564cffe078a6acc441d119ad0 |
|
BLAKE2b-256 | eec46737d6e17267202d9226fff8a96a27c183e178e757224f2d50585b62ce7f |
Close
Hashes for srctools-2.3.14-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50c525adc62799a964edf9255207d3a0db656a9b66edcf45b03d4da57323cbc7 |
|
MD5 | 5265c398cf7b9d1ce605003d55d44156 |
|
BLAKE2b-256 | acbe89771b02c1cb300955011031f4b50a3447a4877be796966ff6f8f290167c |
Close
Hashes for srctools-2.3.14-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11656f02b7c163fa78b27037063caf512145298e90952bf0b0e84e6e692ed408 |
|
MD5 | a11fde6a2115710e2d995df1f93c7204 |
|
BLAKE2b-256 | f0a5c539d231d549da933af3d85153da429e79e0aebd88a1ce051f067f4b77e4 |
Close
Hashes for srctools-2.3.14-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de9b7c23d2aeb9939e3fffc1bf722c40c1b2706dc0e5173bb47223ce72b5d3e |
|
MD5 | debe338f0643ed05f34d978cfa429a2d |
|
BLAKE2b-256 | 6c91918b3df1fb7bfbf58511b4cdb201e40461702b13ff5aefca59f9121d4aec |
Close
Hashes for srctools-2.3.14-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57523ca7da6a5e338cf3efe34a74cd267859aeaf8716caa796f804904dd52f96 |
|
MD5 | 2768b384dd8414869713dde3cd24ba69 |
|
BLAKE2b-256 | db7d8056364ddee8ca3cc87adb3f6554a776272b699e601500d54e0f4f2a86f2 |
Close
Hashes for srctools-2.3.14-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ccb1d91290aae9b3ff5634aaec614800d88410c35b9759ba497f5a5e3008813 |
|
MD5 | a84b4acc0070a47258b8bfb582843d1c |
|
BLAKE2b-256 | 4ea7f1f3cb6d9559c0f4c8d8f393ce6daf9c28ac1bc9ae1d90e17d93ad4e5e7f |
Close
Hashes for srctools-2.3.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8adc23d708e19d97fcf466aa6946039c3ca2afb45152e5e4ac19a072f0783a3 |
|
MD5 | 4ed765684e4e17ea742acb853e07fa34 |
|
BLAKE2b-256 | f85e57a46d39216db7658ca098602f61c00c6a2cbe33cd77e555e9787b8b60fc |
Close
Hashes for srctools-2.3.14-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efe32ee83d790a9ed3c9931989e67543e6ca1e5b5bc599d30a8bff1dab862daa |
|
MD5 | 411028d1717780beb38ead4df6281884 |
|
BLAKE2b-256 | 23d5414d2de9fe5ff7ea0826259845d861eb8de5209bad547926d55384cba480 |
Close
Hashes for srctools-2.3.14-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de89450151e8ce0dab6fcdc4b38af4d370a223fb2ce8c5af507798d751945900 |
|
MD5 | 6edaf9f7d7b99a8d6d68d9ca8ed1a07e |
|
BLAKE2b-256 | 3eedcd7478067510ce731de88163afbbe0712ce5466d597afbbb63dcdca13a64 |
Close
Hashes for srctools-2.3.14-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6acc41e38f1ad983865a1733c326690939c7283a4712734a1e78f7d235b4eb0 |
|
MD5 | 9b8eec7f4d22343099eabbd46395b7cf |
|
BLAKE2b-256 | e70d9d34bc0b25d79fd02bee9c3f6bc78cd6ab470dc4246b24ada4e1b916a76a |
Close
Hashes for srctools-2.3.14-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b28a9b19aa3c9ec2621f46236e3fbf1c6d06483e5558dd60b0ca12e410e34692 |
|
MD5 | 54cbec73f3cd7f679ce772308b0e94ab |
|
BLAKE2b-256 | cd03d2296602847e454115a8461ab2bc30076c194d384fc2399eb4744c8ff8db |
Close
Hashes for srctools-2.3.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6179192d9792e1478746b97239ac7174e0647a974d7f4a46419201742b041256 |
|
MD5 | ea894dfc731e81236c4fa15ecc0f1541 |
|
BLAKE2b-256 | 2c481f9a90089aa5ad98bad9a25850ab74b865ae267abed9837f7ef88de965d3 |
Close
Hashes for srctools-2.3.14-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b11dc2005915ab6836dd4aea9bceb5ce0f52172a3bacb6e40bc9905f3e105d7 |
|
MD5 | 79f17602ce2adfed9581bb5a23a3db94 |
|
BLAKE2b-256 | bd385096bb997e72b0f8eb28790e8b5c3889f29ad1b2dbea5cbceb22c240704f |
Close
Hashes for srctools-2.3.14-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906b2f069bd5474c1e03cc83a9b975fa0dbecef25f25ac3f19adf033403eead6 |
|
MD5 | d812eb800123480f78f12f65e2b6c8a8 |
|
BLAKE2b-256 | cdabfb21a309ba6803c7f1d6700ecbedec50b8ccd640c2040738d342a7a3302b |
Close
Hashes for srctools-2.3.14-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91558831d44672467457157a6dd5f49192d0ca5fcfc15e6fae5e64a5017c6b64 |
|
MD5 | eba8000e8a941fe85c2fb2642bd2fca8 |
|
BLAKE2b-256 | 3c2d97be1996b6c63a7456ed46d50590a28352415d14e8290260b4b9206bb4ba |
Close
Hashes for srctools-2.3.14-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ef89bb8937136dfd4ef828c94aa02bedecad6d8ac054e3360432e37b1f6eac |
|
MD5 | 3bbc5b7c0259b44b0ca354e4eb805180 |
|
BLAKE2b-256 | 3e9e9c0c006eaba3709db7362fcb9b4a3f58e2983b7d19c91d0132613c56ce49 |
Close
Hashes for srctools-2.3.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a45de585bf397f3a98a72ff1c0a3f9bf1618eeb7212a42ca89c90e2e0a1da9 |
|
MD5 | 3cdc8be1ec4e8b2122edb2a5c036b4e6 |
|
BLAKE2b-256 | a14247f91323ee453ef8bbb6a7f9bb04c496e7732c2f84225bf0a1afdbda68a5 |
Close
Hashes for srctools-2.3.14-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee352ff1e04328947a05b8111dafc4222e731eb7e37b7e3dbb84f7cab492824f |
|
MD5 | 2b502cdc8c1d2c54e130d40dcc2e550a |
|
BLAKE2b-256 | 9a07b30d6b744e51205ee2be77de32b2c68e519ca7be006365d115bcd6355e49 |
Close
Hashes for srctools-2.3.14-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dfb954e04b420a2b3321b6a6183941fb57fe21dd62778cd6fc0afbb7205a01d |
|
MD5 | 2861a82c43c151924abc0e4e34605af9 |
|
BLAKE2b-256 | cc470555b48668887d47a20faabd8d768cd6671a594f4a9cab220046a1a62a40 |
Close
Hashes for srctools-2.3.14-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a6cf80499596750f93bbc6d3439b1e40e3e1a78df2a9ebc6cef51d70250e021 |
|
MD5 | 1e66c7bab10bfc2293d126a1cdf9f97f |
|
BLAKE2b-256 | 62b9a00b89fbd37a80b39bfd7da326332a1b8b7647cf5485649f2bdc446c76ee |
Close
Hashes for srctools-2.3.14-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08760e75624b9f1bc5944927d6e77aa1d2b1460f06effdc42b2f7e013f9bd79c |
|
MD5 | 5461c7543ad9d2bd62983bbe3dc75d9c |
|
BLAKE2b-256 | 0ec4adf91f5e984dc64aee632846a42706ff2a97156875df1102bb334a759f32 |
Close
Hashes for srctools-2.3.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04092bc3b0d6e02be08e36453a04c53c1f1844ac738516a7d33a964ca6856b96 |
|
MD5 | e42a05b80f8eb56c47c4ec7a312105eb |
|
BLAKE2b-256 | 5ad805c3ddbe35c89157a238507ce0d92f6404c02bb716e427d5c991f70f995c |
Close
Hashes for srctools-2.3.14-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce4c30275cb1cc87443b79ea7a94a4aa3bb9d7e7f8da3484bb03923fdac3936 |
|
MD5 | da216f4eec59979010e5ff5644f41463 |
|
BLAKE2b-256 | 319fd0775b2be4fc72f4a904be6be1b8976db33f0bda67baae8d14549e37a3f4 |