Pure-Python RAR and GIF handling

Useful Hacks @ ssokolow.com

I just pushed my attempts at RAR and GIF handling in Python to my useful hacks page.

The GIF one functions as a partial validator, but it’s main designed purpose was to tell static from animated GIFs without a ton of dependencies.

The RAR one is only really useful for identifying RAR files by header and listing their contents so far, but I eventually hope to add support for extracting files which were stored without compression. (Usually video files, as the docstring says)

Enjoy.

Update: I’ve since been made aware of an alternative Python package for reading RAR files simply named rarfile. When I can find the time, I plan to examine it and, if it meets my needs or can be easily patched to do so, plan a migration and retirement path for my own rar.py.

Update 2: Broken link fixed

Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
This entry was posted in Geek Stuff, Site Updates. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution under the same terms as the associated post.