This project provides a set of utilities for creating, extracting, and modifying gzip files. It includes functionalities to generate random or static data, compress it into gzip files, extract gzip files, and add text to existing gzip files.
.gitignore
activate_venv.sh
README.md
requirements.txt
src/
__pycache__/
add_frame.py
create_zipfile.py
do.py
settings.py
unpack_zipfile.py
tmp/
-
Clone the repository.
-
Create and activate a virtual environment:
source activate_venv.sh
This will also install the requirements (
pip install ...
)
To create a gzip file with random or static data, run the following command:
python src/create_zipfile.py
This will generate a gzip file at the path specified in the Settings
class in
To extract a gzip file, run the following command:
python src/unpack_zipfile.py
This will extract the gzip file specified in the Settings
class in
To add text to an existing gzip file, run the following command:
python src/add_frame.py
This will add the header-text to the gzip file , bothe specified in the Settings
class.
The project uses the pydantic-settings
library for configuration. You can set the configuration values in a .env
file or directly in the Settings
class.
- Python 3.x
pydantic
pydantic-settings
tqdm
This project is licensed under the MIT License.