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.3.tar.gz
(442.5 kB
view hashes)
Built Distributions
srctools-2.3.3-cp310-cp310-win32.whl
(646.2 kB
view hashes)
srctools-2.3.3-cp39-cp39-win32.whl
(649.0 kB
view hashes)
srctools-2.3.3-cp38-cp38-win32.whl
(650.0 kB
view hashes)
Close
Hashes for srctools-2.3.3-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20071270450c6ae8574abdbde53db61dde46667331c8bd4d4232f1d9ca88c44c |
|
MD5 | 0d8bc840fd27c5171b873928d529daf9 |
|
BLAKE2b-256 | 43c228eb955eb0c47a997a77b52d2bf68fa00bbe587278be93926e8e6972e502 |
Close
Hashes for srctools-2.3.3-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b99a7d29a12a74e0848439e7f1ca0768c5477a3ef946388bd3bb96f80bb0696 |
|
MD5 | a29322d50c6fecc81e95077f50d7a905 |
|
BLAKE2b-256 | aee22ed1654f37b2c4c1de89bb7f67ac9703b7b437f71eee4e49392e6e8f1574 |
Close
Hashes for srctools-2.3.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6871322fb0a11a29d024d43abcfc4de330e6338ef25b0ceab0e1f0579113ff |
|
MD5 | 9cc0124f04f1a71fb426d3308b957a3e |
|
BLAKE2b-256 | 93d46e89dd9b97624d4c9c99d36c012c09a0929790bfce535408325e052ec9f3 |
Close
Hashes for srctools-2.3.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c109da916c1dcb222ccf936d5c31f2f3d9a2f0fb0ae9e98c45b465789cd5d4e |
|
MD5 | 4dae6cebf688a7b9ff897f7335780a83 |
|
BLAKE2b-256 | c1a12874108399e765aadf0fa677bc34310b5661549e3d6ea54acbea4e4cadf3 |
Close
Hashes for srctools-2.3.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 360152f1bbcd8ff2c77609bedc39656b1b2de12c418892d8360e53076654a8dc |
|
MD5 | 18a9dc5ba7bb0097f915f74caf509c9f |
|
BLAKE2b-256 | 4d4bbbe2a3893fa1f0fecde8f9cd0559b4cdb2ff62f3f9b810bfb3ee2d7b83e5 |
Close
Hashes for srctools-2.3.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb2daed84dc8c51add688e4f24e61cf90995ee62280e9b1b03d4e26ddcf61c9 |
|
MD5 | 199ba3ae3d388eca464fc2436b7059e9 |
|
BLAKE2b-256 | b1e2e6a267baa3d608b252d8cd38b9955b510bb9ef71fe3af3ecdee7cf8e1f3a |
Close
Hashes for srctools-2.3.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc6aac323b95c8ad761e347b35b27956a2d4f4c631516d031212f00cbed3d37 |
|
MD5 | 0b8a3d0cce008f9398a365c00a7f6155 |
|
BLAKE2b-256 | 29b7777eac1321ce2ee234166b92a8e97875661d511e591d34a630db1a8a0b1f |
Close
Hashes for srctools-2.3.3-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47a04357114f80d0b7992eb29b0f560dcc14d1030d7d70318558149b46e2640 |
|
MD5 | 271f474f5bd5589dd74a4a99a6005a1d |
|
BLAKE2b-256 | b3219f62280820eb475b53451657ef297dae94007099487652ce76bcd165513b |
Close
Hashes for srctools-2.3.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe2c0a8e947661ce546d24300ba62d0c9d19fe6186371f4b41b6cc128eef541b |
|
MD5 | 83184715930a159c1f79eb65ad10b97e |
|
BLAKE2b-256 | a2ce0423a1eb39420a3d46017121972eb76b8645f60ef248184a976147b4b4cd |
Close
Hashes for srctools-2.3.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 880d720e838ead169097a6cd94418e87e756e54dc6a4fcd069d8ca2b30aa0c13 |
|
MD5 | 3902d0882f00a5b6e22b9d0a5a1d4663 |
|
BLAKE2b-256 | 19f3f1b944dab6d9f8fc1aa91f0cb0674e6c1263eb23b090295c77a31096d399 |
Close
Hashes for srctools-2.3.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f6ac68c446a5e27fc22cf0b2e03202f3f60b6e4c66ff2a7c3366159d9d9bc0 |
|
MD5 | 99dc0eb99ee1131e80360b65862f9e9f |
|
BLAKE2b-256 | f16740efcd1e99c2d782520903220e59407a786246f744b95d509be560aafe09 |
Close
Hashes for srctools-2.3.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05ae842b2fb250dd043be6e095f4df68202f38e18f616eea9c79bde84f3f350b |
|
MD5 | 170031096045adebb6b80e55b3dadfea |
|
BLAKE2b-256 | b7dc62d2a5acd51447954603d16f7ab7bf22e0c99a93e90b2e37f5de35ae5e45 |
Close
Hashes for srctools-2.3.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a83fc6f06b160e7354e5ebd6cc93a7a7c6e73cc6a3972a7d164013a02db814 |
|
MD5 | 7837290a9aea0f3ba5355bb2fc7d2751 |
|
BLAKE2b-256 | ce09a34782b31318a1f1c8521d32f0b01a9eef615e6e5ab204259165fd5cad93 |
Close
Hashes for srctools-2.3.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 875ec50276b74d448e0deac634c99c15719bc730d27abfd345d33b2995216661 |
|
MD5 | c0c793c05fca9b2857b0a06b246c8599 |
|
BLAKE2b-256 | e2bbe3700b3e03e02a63d7ba896ad0c34d9e1e6b94f5db194f9dca9541044679 |