semvec/pypi-packages huggingface dataset:
pyextract-junbo 0.0.8
Python Miwear tools for extracting and handling archives/logs
License: Apache-2.0
Requires Python: >=3.7

# Python Miwear

A comprehensive Python Miwear toolkit to extract and process archive and log files.

## Features

- Supports batch extraction of `.tar.gz` , `.zip` and `.gz` files.
- Command-line tools for log processing, validation, merging and unzipping.
- Designed for automation and integration into your workflow.
- No external dependencies, pure Python standard libraries.

## Installation

Install the latest release from PyPI:

```bash
pip install pyextract-jzb
```

Alternatively, install from source:

```bash
git clone https://github.com/Junbo-Zheng/pyextract.git
cd pyextract
pip install .
```

## Command-Line Tools

After installation, you get several standalone CLI tools:

- `miwear_log` : Main utility for extracting archive files.
- `miwear_assert` : Extract assertion information from logs.
- `miwear_gzlog` : Unzip and merge `.gz` log files.
- `miwear_targz` : Specialized extraction for `.tar.gz`.
- `miwear_unzip` : Versatile archive decompression utility.

## Usage Examples

### 1. Main Extraction Utility

```bash
miwear_log -s ~/Downloads -f log.tar.gz -o ./output_dir
```

### 2. Assertion Log Parser

```bash
miwear_assert -i mi.log -o assert_log.txt
```

### 3. GZ Log Merger

```bash
miwear_gzlog --path ./logs --log_file my.log --output_file merged.log
```

### 4. Targz Extraction

```bash
miwear_targz --input input.tar.gz --output extracted
```

### 5. Unzip Utility

```bash
miwear_unzip --file archive.zip --output ./unzipped
```

**Each tool includes a `--help` option to display supported parameters and usage:**

```bash
miwear_log --help
miwear_assert --help
...
```

## License

Apache License 2.0

## Author

- Junbo Zheng
- Email: 3273070@qq.com