Skip to content

chyyran/chd-rs-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chd-rs-py

Extremly basic Python bindings to chd-rs.

pip install chd-rs-py

Usage

from chd import chd_open

chd_file = chd_open("Test.chd")
metadata = chd_file.metadata()

for m in metadata:
    # decode fourcc tag and unicode byte data
    print(i.tag().to_bytes(4, byteorder='big'), bytes(i.data()).decode())

for h in range(len(chd_file)):
    # read the hunk (as bytes)
    hunk = chd_file.hunk(h)

About

Python bindings to chd-rs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published