{"id":39965030,"url":"https://github.com/qoretechnologies/module-zip","last_synced_at":"2026-01-18T21:35:18.803Z","repository":{"id":331897946,"uuid":"1127128398","full_name":"qoretechnologies/module-zip","owner":"qoretechnologies","description":"Qore zip module for working with ZIP archives","archived":false,"fork":false,"pushed_at":"2026-01-11T14:47:56.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-01-11T18:04:31.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qoretechnologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.MIT","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":"2026-01-03T08:32:15.000Z","updated_at":"2026-01-11T14:48:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/qoretechnologies/module-zip","commit_stats":null,"previous_names":["qoretechnologies/module-zip"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/qoretechnologies/module-zip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qoretechnologies","download_url":"https://codeload.github.com/qoretechnologies/module-zip/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-zip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28551202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-18T21:35:18.726Z","updated_at":"2026-01-18T21:35:18.791Z","avatar_url":"https://github.com/qoretechnologies.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qore zip Module\n\n## Introduction\n\nThe `zip` module provides comprehensive ZIP archive functionality for Qore, including:\n\n- Creating, reading, and modifying ZIP archives\n- Multiple compression methods: deflate, bzip2, lzma, zstd, xz\n- ZIP64 support for large files (\u003e4GB) and many entries (\u003e65,535)\n- AES encryption (128/192/256-bit)\n- Streaming API for large file operations\n- Data provider module for integration with Qore's data provider framework\n\n## Requirements\n\n- Qore 2.0+\n- CMake 3.5+\n- C++11 compiler\n- zlib (required)\n- bzip2 (optional, for bzip2 compression)\n- liblzma (optional, for lzma/xz compression)\n- zstd (optional, for zstandard compression)\n- OpenSSL (optional, for AES encryption)\n\n## Building\n\n```bash\nmkdir build\ncd build\ncmake ..\nmake\nmake install\n```\n\n## Quick Start\n\n```qore\n#!/usr/bin/qore\n\n%requires zip\n\n# Create a new archive\n{\n    ZipFile zip(\"archive.zip\", \"w\");\n    zip.addText(\"readme.txt\", \"Hello, World!\");\n    zip.addFile(\"document.pdf\", \"/path/to/document.pdf\");\n    zip.addDirectory(\"images/\");\n    zip.close();\n}\n\n# Read archive contents\n{\n    ZipFile zip(\"archive.zip\", \"r\");\n    foreach hash\u003cQore::Zip::ZipEntryInfo\u003e entry in (zip.entries()) {\n        printf(\"Entry: %s, Size: %d bytes\\n\", entry.name, entry.size);\n    }\n    zip.close();\n}\n\n# Extract archive\n{\n    ZipFile zip(\"archive.zip\", \"r\");\n    zip.extractAll(\"/destination/path\");\n    zip.close();\n}\n```\n\n## Data Provider\n\nThe module includes `ZipDataProvider` for use with Qore's data provider framework:\n\n```qore\n%requires ZipDataProvider\n\n# Get the data provider factory and navigate to the action\nAbstractDataProvider dp = DataProvider::getFactoryObjectFromStringEx(\"zip{}/archive/create\");\n\n# Execute the action\nhash\u003cauto\u003e result = dp.doRequest({\n    \"path\": \"output.zip\",\n    \"files\": (\n        {\"name\": \"file.txt\", \"data\": \"Hello, World!\"},\n    ),\n});\n```\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n\n## Copyright\n\nCopyright 2026 Qore Technologies, s.r.o.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqoretechnologies%2Fmodule-zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-zip/lists"}