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:
property_parser
: 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.4.tar.gz
(444.9 kB
view hashes)
Built Distributions
srctools-2.3.4-cp310-cp310-win32.whl
(648.9 kB
view hashes)
srctools-2.3.4-cp39-cp39-win32.whl
(651.7 kB
view hashes)
srctools-2.3.4-cp38-cp38-win32.whl
(652.7 kB
view hashes)
Close
Hashes for srctools-2.3.4-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931671afb66f78055ea7f3e619dd9529e3df1089acecbefd70425267254a13a4 |
|
MD5 | 3a07b46838f8b87809c2ce911a176c7d |
|
BLAKE2b-256 | 14a74dc1f27220b43589f85aedf51279dcdc161695425c2e558b47c9466daef8 |
Close
Hashes for srctools-2.3.4-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d794b5a68b0bd01bca151243286b055401d1b3fbd56d01de0d91130334bbf7b1 |
|
MD5 | ac1827808fe97a78490acb1ef6e31866 |
|
BLAKE2b-256 | 2ebb81f933b06846a565376c4e7bd910141118c7c65fbac9568576bfcf8de4c5 |
Close
Hashes for srctools-2.3.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d4afe95ae8f60b2893345cfc775c1672a0efc0278adf990dd0c7406d38a82e |
|
MD5 | 0f60775dfe98090362ad1bf0d3e49d12 |
|
BLAKE2b-256 | d8aaded677d09e88728f2d77a9b286fbeed3d71ab04d9ea18cfebdea383c418f |
Close
Hashes for srctools-2.3.4-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3431ac00f91f99119a08b5bad5694ab07e8d2607a0097589ec5b8e0fa4cda2a0 |
|
MD5 | acb365b6d853299bfe2be1f5f0097442 |
|
BLAKE2b-256 | a5b658fadc0961883dd87b1b963f529e58a7dae79f0a08fef38d7a794f1da2ca |
Close
Hashes for srctools-2.3.4-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068cca9d17f186cffcab69c10cb6a4ba858792b7504b4017ff4b3b818e84f14b |
|
MD5 | 44305adeb717c995a99dd691ad2f72d1 |
|
BLAKE2b-256 | 3eaadb4954e6718f40be3977037ed6650907e4d74d892cb5bd5d4b3989b0723c |
Close
Hashes for srctools-2.3.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab632c214a0700e7caed9f48f7395d440b109ca94ce097a4587834991ca3a5c9 |
|
MD5 | e08e6134400e6e26341cd422ac49ac19 |
|
BLAKE2b-256 | d8e2fe3276c6383e37474d4d2d1feb3f5829575047596822cd523135cdd04c5d |
Close
Hashes for srctools-2.3.4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0393a7e1039c51efecddd042afde84d70d29107733355d5a1fda65247bae82c1 |
|
MD5 | 26ba91376c9b420720f079f4cabaa0a0 |
|
BLAKE2b-256 | 497930b77b22e5d0d8b41ca556ae0b64a563df0ed48cdd181e300604b3ccb524 |
Close
Hashes for srctools-2.3.4-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19883ffa3676b986881bd05700ffdd835c34a52301e25418b6eb71706ceec6b2 |
|
MD5 | b92ba8608028f4e601ccdaa27584a236 |
|
BLAKE2b-256 | 227052019b7ffb8079ce3109b1081c8c296a999d9744f97618ed5e75925cab6c |
Close
Hashes for srctools-2.3.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78503d4c1d77ddf64f28cea5caffa201ce6e2501938990553c655a64bdaa4fda |
|
MD5 | d2b964ba78b0cc197877677d1dade8dd |
|
BLAKE2b-256 | e01f6b0b5c4374929b4778b8346b3d2ca2851ca974f3b4a8ffbb4a3861d1f305 |
Close
Hashes for srctools-2.3.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fce3ad2a785951ee7b5be94e7e35c73198cf07c3525f804a82947b0139c9855 |
|
MD5 | 75dd735c1cfcaf3368d01060c5519f4d |
|
BLAKE2b-256 | 0cc93babd79532500893287a8210540c4d7302813569b912f5365e5ea3524c83 |
Close
Hashes for srctools-2.3.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3adb20c31a3102b14c7acca62b51555fcdae5f5b2981691162007e98b58574f |
|
MD5 | 23d05536503e9bffd2a63c544f4dfa49 |
|
BLAKE2b-256 | 577a3119fb2b998b18bcaab0e1662272243f8c6e9f0a805811137af5577246dd |
Close
Hashes for srctools-2.3.4-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68049fd6eed953581fd245a69a7deb8f47cd21b44cb3487b762076251edb57d8 |
|
MD5 | ac1453a1a4eb89a3ab37d5928a507b83 |
|
BLAKE2b-256 | 11bc84e1c63f3c57c97ecfe9e448aea2c362f64d6f2d522972fed4a21215b4d8 |
Close
Hashes for srctools-2.3.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6123069120c291b17c846a7ed253049485157b27438bb9d671ab4b73cb01bff0 |
|
MD5 | e7b10ce8acb67df6815e82ba943dda34 |
|
BLAKE2b-256 | 01ac249a8b4e6a93e5bbf03dd4abf0a34b04dfeba8c3782d40dbc002f0171128 |
Close
Hashes for srctools-2.3.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b82282bdc61fb793b8204d99a09644d050ac3a17f47de4dec5e17121b38f8ee |
|
MD5 | 61b483f70414834c6b25c35753ef9ecf |
|
BLAKE2b-256 | 174f137b147ed7da86e6d043df60b5be32fba21a463547bf37b8554779b0ad28 |