manifest

class steam.core.manifest.DepotFile(manifest, file_mapping)

Bases: object

Depot file

Parameters:
  • manifest (DepotManifest) – depot manifest
  • file_mapping (ContentManifestPayload.FileMapping) – depot file mapping instance
filename_raw

Filename with null terminator and whitespaces removed

Type:str
filename

Filename matching the OS

Type:str
linktarget_raw

Link target with null terminator and whitespaces removed

Type:str
linktarget

Link target matching the OS

Type:str
size

File size in bytes

Type:int
chunks

File chunks instances

Type:list [ContentManifestPayload.FileMapping.ChunkData]
flags

File flags

Type:EDepotFileFlag
is_directory
Type:bool
Type:bool
is_file
Type:bool
is_executable
Type:bool
class steam.core.manifest.DepotManifest(data=None)

Bases: object

Represents depot manifest

Parameters:data (bytes) – manifest data
DepotFileClass

alias of DepotFile

PROTOBUF_PAYLOAD_MAGIC = 1911953360
PROTOBUF_METADATA_MAGIC = 524817086
PROTOBUF_SIGNATURE_MAGIC = 461486103
PROTOBUF_ENDOFMANIFEST_MAGIC = 851711403
depot_id
Type:int
gid
Type:int
creation_time
Type:int
size_original
Type:int
size_compressed
Type:int
filenames_encrypted
Type:bool
decrypt_filenames(depot_key)

Decrypt all filenames in the manifest

Parameters:depot_key (bytes) – depot key
Raises:RuntimeError
deserialize(data)

Deserialize a manifest (compressed or uncompressed)

Parameters:data (bytes) – manifest data
serialize(compress=True)

Serialize manifest

Parameters:compress (bytes) – wether the output should be Zip compressed
iter_files(pattern=None)
Parameters:pattern (str) – unix shell wildcard pattern, see fnmatch()