{"id":21905324,"url":"https://github.com/pedrolcl/libq7zip","last_synced_at":"2025-04-15T23:34:42.905Z","repository":{"id":40653473,"uuid":"222923038","full_name":"pedrolcl/libq7zip","owner":"pedrolcl","description":"7-zip library and buildsystems for Qt applications","archived":false,"fork":false,"pushed_at":"2023-03-26T16:13:37.000Z","size":506,"stargazers_count":29,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T02:41:42.177Z","etag":null,"topics":["7z","7zip","cmake","compression","qmake","qt5","qt6","uncompress"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedrolcl.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":"2019-11-20T11:33:06.000Z","updated_at":"2025-01-05T16:31:10.000Z","dependencies_parsed_at":"2022-08-10T00:01:09.804Z","dependency_job_id":null,"html_url":"https://github.com/pedrolcl/libq7zip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrolcl%2Flibq7zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrolcl%2Flibq7zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrolcl%2Flibq7zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrolcl%2Flibq7zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrolcl","download_url":"https://codeload.github.com/pedrolcl/libq7zip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173056,"owners_count":21224481,"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":["7z","7zip","cmake","compression","qmake","qt5","qt6","uncompress"],"created_at":"2024-11-28T16:32:45.953Z","updated_at":"2025-04-15T23:34:42.870Z","avatar_url":"https://github.com/pedrolcl.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libq7zip\n7-zip library and buildsystems for Qt based applications.\n\n[![Build and Test](https://github.com/pedrolcl/libq7zip/actions/workflows/cmake.yml/badge.svg)](https://github.com/pedrolcl/libq7zip/actions/workflows/cmake.yml)\n\nThis repository contains source code from the [7-zip](https://www.7-zip.org) and [p7zip](http://p7zip.sourceforge.net) projects and some classes from the [Qt Installer Framework](https://doc.qt.io/qtinstallerframework/index.html), with CMake and Qmake buildsystems allowing to build static and dynamic libraries for most operating systems and platforms.\n\nThis library allows easy and comfortable file and resource compress and uncompress using the 7z format in Qt applications. The following example snippets are taken from the library unit tests.\n\nThe default is to build the library for Qt6. There is a cmake option: USE_QT5=ON to link to Qt5 instead.\n\nThe unit tests are built by default. If you prefer to not do it, pass the cmake option BUILD_TESTING=OFF.\n\n## compress files\n\n    #include \u003cq7z_create.h\u003e\n    #include \u003cq7z_facade.h\u003e\n\n    [...]\n\n    Q7z::initSevenZ();\n    QTemporaryFile target;\n    target.open();\n    Q7z::createArchive(\u0026target, QStringList() \u003c\u003c path1 \u003c\u003c path2);\n\n\n## check compressed archive format\n \n    #include \u003cq7z_facade.h\u003e\n\n    [...]\n    \n    Q7z::initSevenZ();\n    bool ok = Q7z::isSupportedArchive(\"data.7z\")\n\n\n## list compressed archive contents\n\n    #include \u003cq7z_facade.h\u003e\n    #include \u003cq7z_list.h\u003e\n\n    [...]\n    \n    Q7z::initSevenZ();\n    QFile file(\":///testdata.7z\"); // embedded resource\n    file.open(QIODevice::ReadOnly);\n\n    QVector\u003cQ7z::File\u003e files = Q7z::listArchive(\u0026file);\n\n\n## extract compressed files\n\n    #include \u003cq7z_extract.h\u003e\n    #include \u003cq7z_facade.h\u003e\n\n    [...]\n\n    Q7z::initSevenZ();\n    QFile source(\":///testdata.7z\"); // embedded resource\n    source.open(QIODevice::ReadOnly);\n    Q7z::extractArchive(\u0026source, QDir::tempPath());\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrolcl%2Flibq7zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrolcl%2Flibq7zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrolcl%2Flibq7zip/lists"}