HF RL Explorer

Task: Extracting a Zip File Contents to Memory in Python

Task: Extracting a Zip File Contents to Memory in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that extracts the contents of a zip file into memory (not to disk) and returns a dictionary mapping each file name to its contents as bytes.

The task

Write a Python script that extracts the contents of a zip file **into memory** (not to disk) and returns a dictionary mapping each file name to its contents as bytes.

Part of PrimeIntellect/Terminal-Lego-15k.