Registry / testing / robotframework-archivelibrary

robotframework-archivelibrary

JSON →
library0.4.3pypypi✓ verified 86d ago

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
INSTALL
IMPORT
SIG · ROBOTFRAMEWORK-ARC
R
robotframework-archivelibrary
testingpythonv0.4.3
Install
2.0s avg
Import
718ms
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.734s · 23.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.0s · import 0.702s · 24MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ArchiveLibrary
from ArchiveLibrary import ArchiveLibrary
Case-sensitive import, capital A and L

A minimal Robot Framework test case using ArchiveLibrary to create and extract a ZIP file.

*** 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/
Debug
Known issues
gotchaImport must be case-sensitive: `Library ArchiveLibrary` not `archivelibrary` or `ArchiveLibrary` (case matters in Robot Framework).
fix
Use exactly `Library    ArchiveLibrary` in your settings.
affects: all
gotchaLibrary 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.
affects: all
deprecatedThe `add zip` keyword (v0.3.x) is deprecated; replaced by `Create Zip`.
fix
Replace `Add Zip` with `Create Zip`.
affects: 0.4.x
Errors
Common errors & fixes
No keyword with name 'ArchiveLibrary' found.
Incorrect import: case-sensitive name not matching or missing Library declaration.
fix
Add `Library    ArchiveLibrary` in your Robot Framework test suite settings.
ImportError: No module named 'ArchiveLibrary'
Library not installed or Python environment mismatch.
fix
Run `pip install robotframework-archivelibrary` and ensure Robot Framework is installed.
TypeError: 'str' object is not callable
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.
Upgrade
Version history
0.4.3latest on PyPI · released Oct 26, 2024
Audit
Dependencies
robotframeworkrequiredCore framework required to use this library
Agent activity
13 hits · last 30 days
node
11
OpenAI (training)
1
Resources
robotframework-archivelibrary — pip install robotframework-archivelibrary · libregistry