{"id":18928125,"url":"https://github.com/hearthsim/decrunch","last_synced_at":"2025-04-15T14:31:15.221Z","repository":{"id":46768488,"uuid":"84006510","full_name":"HearthSim/decrunch","owner":"HearthSim","description":"Python wrapper around Crunch DXTc decompressor","archived":false,"fork":false,"pushed_at":"2021-09-27T08:27:21.000Z","size":142,"stargazers_count":14,"open_issues_count":11,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-06T20:48:30.910Z","etag":null,"topics":["crunch","dxtc","python"],"latest_commit_sha":null,"homepage":"https://hearthsim.info","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HearthSim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-05T22:19:37.000Z","updated_at":"2024-05-14T14:06:46.000Z","dependencies_parsed_at":"2022-09-02T12:11:50.898Z","dependency_job_id":null,"html_url":"https://github.com/HearthSim/decrunch","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdecrunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdecrunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdecrunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HearthSim%2Fdecrunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HearthSim","download_url":"https://codeload.github.com/HearthSim/decrunch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223674559,"owners_count":17183896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crunch","dxtc","python"],"created_at":"2024-11-08T11:23:01.787Z","updated_at":"2024-11-08T11:23:02.323Z","avatar_url":"https://github.com/HearthSim.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# decrunch\n[![Build Status](https://api.travis-ci.org/HearthSim/decrunch.svg?branch=master)](https://travis-ci.org/HearthSim/decrunch)\n\ndecrunch is a Python wrapper around [crunch's](https://github.com/BinomialLLC/crunch) decompressor.\n\n\n## Setup\n\n- To install directly from PyPI: `pip install decrunch`\n- To install from source: `pip install Cython`, then `./setup.py install`\n\n\n## Usage\n\n```py\nimport decrunch\n\nwith open(\"example.crn\", \"rb\") as f:\n\tbuf = f.read()\n\nfi = decrunch.File(buf)\ntex_info = fi.info()\n\nfor level in range(tex_info[\"levels\"]):\n\tprint(\"Level info %i: %r\" % (level, fi.info(level)))\n\nwith open(\"out.bc1\", \"wb\") as f:\n\tf.write(fi.decode_level(0))\n```\n\nFurther image decoding requires a DXTn decompressor, such as the one that\ncan be found in [Pillow](https://github.com/python-pillow/Pillow) as `bcn`.\n\n## License\n\nThe full license text is available in the `LICENSE` file.\nSee crunch/license.txt for the license of files in the `crunch/` subdirectory.\n\nThe files in `crunch/` are an unaltered subset of the original code; the\nentirety of crunch may be obtained at \u003chttps://github.com/BinomialLLC/crunch\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearthsim%2Fdecrunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhearthsim%2Fdecrunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearthsim%2Fdecrunch/lists"}