rtissera / libchdr

Standalone library for reading MAME's CHDv1-v5 formats.
BSD 3-Clause "New" or "Revised" License
96 stars 38 forks source link

Are python bindings of this library yet? #79

Open i30817 opened 2 years ago

i30817 commented 2 years ago

I'd like to consider using it on a python project and it'd be swell if it was on pypi already. My usecase is simple identification of redump dumps of cue/bin and gdi/bin dumps, which necessarily needs to divide the tracks streams, so a way to get the track extents and the stream without file I/O would be nice. The 'data sha1sum' is not sufficient because redump does not have it.

If this ever gets write support, particularly write of delta chds, i'd like to make that xdelta->delta chd child feature in my other RFE if it's not done by this project, because it's a major usability barrier for romhack users, especially if they have to divide the tracks every time. FSM knows MAME upstream probably never will, with the way they think romhacks are for other projects and they 'must' control all dumps themselves.

chyyran commented 2 years ago

Would https://github.com/chyyran/chd-rs-py be of use?

I whipped this up in an hour, feel free to flesh it out as you need.

i30817 commented 2 years ago

@j68k check this out. Might be useful for your https://github.com/j68k/verifydump#readme project too if the crate can be built for all the platforms and placed on pypi.