Robot Framework ArchiveLibrary
raw JSON → 0.4.3 verified Fri May 01 auth: no python
A Robot Framework keyword library for handling ZIP files. Current version is 0.4.3, provides keywords to create, extract, and list contents of ZIP archives. Release cadence is irregular.
pip install robotframework-archivelibrary Common errors
error No keyword with name 'ArchiveLibrary' found. ↓
cause Incorrect import: case-sensitive name not matching or missing Library declaration.
fix
Add
Library ArchiveLibrary in your Robot Framework test suite settings. error ImportError: No module named 'ArchiveLibrary' ↓
cause Library not installed or Python environment mismatch.
fix
Run
pip install robotframework-archivelibrary and ensure Robot Framework is installed. error TypeError: 'str' object is not callable ↓
cause Using deprecated keyword `add zip` incorrectly as a function call in Python code directly.
fix
Use Robot Framework keywords in .robot files, not Python scripts, or use the library's API correctly.
Warnings
gotcha Import must be case-sensitive: `Library ArchiveLibrary` not `archivelibrary` or `ArchiveLibrary` (case matters in Robot Framework). ↓
fix Use exactly `Library ArchiveLibrary` in your settings.
gotcha Library uses `zipfile` module; does not support encryption or passwords. Creating password-protected ZIPs will fail. ↓
fix Use another library (e.g. Python's standard `zipfile` with pyminizip) for password-protected ZIPs.
deprecated The `add zip` keyword (v0.3.x) is deprecated; replaced by `Create Zip`. ↓
fix Replace `Add Zip` with `Create Zip`.
Imports
- ArchiveLibrary
from ArchiveLibrary import ArchiveLibrary
Quickstart
*** Settings ***
Library ArchiveLibrary
*** Test Cases ***
Create ZIP File
Create Zip ${CURDIR}/example.zip ${CURDIR}/files/
Extract ZIP File
Extract Zip ${CURDIR}/example.zip ${CURDIR}/output/