{"id":26048014,"url":"https://github.com/etdon/detect-compression","last_synced_at":"2025-10-04T00:49:23.947Z","repository":{"id":270762371,"uuid":"911364455","full_name":"etdon/detect-compression","owner":"etdon","description":"Simple script to detect popular compression algorithms based on their magic number.","archived":false,"fork":false,"pushed_at":"2025-01-03T04:23:46.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T00:49:22.897Z","etag":null,"topics":["compression","compression-algorithm","decompression","decompression-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etdon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-02T21:01:12.000Z","updated_at":"2025-01-03T04:23:48.000Z","dependencies_parsed_at":"2025-01-02T23:26:44.596Z","dependency_job_id":"8e3d44ee-c6c2-4926-9790-376802d93bbb","html_url":"https://github.com/etdon/detect-compression","commit_stats":null,"previous_names":["etdon/detect-compression"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/etdon/detect-compression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etdon%2Fdetect-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etdon%2Fdetect-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etdon%2Fdetect-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etdon%2Fdetect-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etdon","download_url":"https://codeload.github.com/etdon/detect-compression/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etdon%2Fdetect-compression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278250081,"owners_count":25955839,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compression","compression-algorithm","decompression","decompression-algorithm"],"created_at":"2025-03-07T23:41:07.214Z","updated_at":"2025-10-04T00:49:23.928Z","avatar_url":"https://github.com/etdon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e  \n    \u003cimg src=\"https://tools.etdon.com/placeholder-image/generate?width=830\u0026height=207\u0026background-color=393E41,1E2019,D3D0CB,1E2019\u0026text=detect-compression\u0026text-color=FFFFFF\" width=830 height=207\u003e    \n\u003c/p\u003e\n\n## 🔰 Introduction\n\nThe `detect-compression` project is a simple and easy to use script for detecting the compression algorithm used for the provided input.\nIt is powered by magic value analysis that allows the script to detect over 20 (including sub-types) popular compression algorithms.\nWhile relying purely on magic value analysis of the header for compression algorithm detection is generally speaking not fully dependable\nthe system is processing in a most-to-least confident order and will provide meaningful results in common scenarios.\n\n## 🚀 Getting Started\n\n\u003e [!IMPORTANT]\n\u003e Requirements:\n\u003e - Python 3\n\nTo download the script click on the green `Code` button and select `Download ZIP`. After unpacking the downloaded `.zip` archive you\nwill be able to run the script by executing the following command:\n```\npython detect_compression.py \u003cinput\u003e\n```\nThe `input` parameter can either be a path to a file or a hex value. If a file path is provided the script will read the first 8 bytes of it and treat it as the input magic value for analysis.\n\n## 🫴 Contributing\nThe contribution guidelines are a part of the `shared-guidelines` repository and can be found here: [Contributing][contributing]\n\n## 📄 License\nThe `detect-compression` project is licensed under the [Apache 2.0 License][license].\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n[contributing]: https://github.com/etdon/shared-guidelines/blob/main/CONTRIBUTING.md\n[license]: https://github.com/etdon/detect-compression/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetdon%2Fdetect-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetdon%2Fdetect-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetdon%2Fdetect-compression/lists"}