semvec/pypi-packages huggingface dataset:
req-update 2.9.0
Update python, node, go, docker, and other dependencies
Requires Python: >=3.10
Keywords: dependencies

# req-update

[![PyPI](https://img.shields.io/pypi/v/req-update)](https://pypi.org/project/req-update/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/req-update)
![PyPI - License](https://img.shields.io/pypi/l/req-update)

[![Build Status](https://drone.albertyw.com/api/badges/albertyw/req-update/status.svg)](https://drone.albertyw.com/albertyw/req-update)
[![Maintainability](https://qlty.sh/gh/albertyw/projects/req-update/maintainability.svg)](https://qlty.sh/gh/albertyw/projects/req-update)
[![Code Coverage](https://qlty.sh/gh/albertyw/projects/req-update/coverage.svg)](https://qlty.sh/gh/albertyw/projects/req-update)

`req-update` is a CLI tool to automatically update python, go, node, and git submodule dependencies.

## Usage

`req-update` requires no command line arguments.  Running `req-update` will
create a branch `dep-update`, check for outdated packages, and commit a
series of commits to update packages.

```
$ req_update.py -h
usage: req_update.py [-h] [-l LANGUAGE] [-p] [-i] [-d] [-v] [--version]

Update python, go, node, and git submodule dependencies for your project with git integration

https://github.com/albertyw/req-update

options:
  -h, --help            show this help message and exit
  -l, --language LANGUAGE
                        Language/package manager to update.  Options are: docker, drone, githubworkflow, gitsubmodule, go, node, python
  -p, --push            Push commits individually to remote origin
  -i, --ignore-cleanliness
                        Ignore checking if the repository is clean
  -d, --dryrun          Dry run
  -v, --verbose         Verbose output
  --version             show program's version number and exit
```

## Features

 - Update python dependencies in `requirements*.txt` pip.
 - Update go dependencies in `go.mod` and `go.sum` with go modules.
 - Update node dependencies in `package-lock.json` with npm.
 - Update git submodules in `.gitmodules` with git.
 - Integrates with git, creating a branch with one commit per updated dependency
 - No third party dependencies beyond python 3 standard library
 - Automatic detection of python, go, node, and git dependencies; no CLI arguments required

## Comparisons

 - `req-upgrader` - `req-update` integrates with git
extrazip 0.1.0
A compact Python library for archiving and extracting ZIP files.
Requires Python: >=3.8

# extrazip

![Zip Archiver Logo](https://img.shields.io/badge/extrazip%20-v0.1.0-blue?style=for-the-badge&logo=python)  
[![PyPI version](https://badge.fury.io/py/extrazip.svg)](https://badge.fury.io/py/extrazip)  
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)  
[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)  

A compact and easy-to-use Python library for archiving files and directories into ZIP files, as well as extracting ZIP archives. Built with standard Python libraries—no external dependencies required! 🚀

## Features ✨
- **Archive Files & Directories**: Recursively zip files or entire folders with customizable compression.
- **Extract ZIPs**: Easily unpack archives to any directory.
- **Lightweight**: Uses only `zipfile` and `os` from the standard library.
- **Flexible Compression**: Supports various ZIP compression methods (e.g., DEFLATED, STORED).
- **Cross-Platform**: Works on Windows, macOS, and Linux.

## Installation 📦
#### Install via pip from PyPI:

```bash
pip install extrazip
```

## Quick Start ⚡
### Archiving Files
#### Create an instance of archiver and use the archive method:
```Python
from extrazip import archiver

zip = archiver()  # Default compression: ZIP_DEFLATED

# Archive a file and a directory
zip.archive('my_archive.zip', ['example.txt', 'my_folder/'])
```
### Extracting Archives
#### Use the extract method to unpack:
```Python
from extrazip import archiver

zip = archiver()

# Extract to current directory
zip.extract('my_archive.zip')

# Or to a specific folder
zip.extract('my_archive.zip', extract_to='output/')
```

### Custom Compression
#### Specify compression during initialization:
```Python
import zipfile
from extrazip import archiver

zip = archiver(compression=zipfile.ZIP_STORED)  # No compression
zip.archive('fast_archive.zip', ['large_file.bin'])
```
## API Reference 📖
### Class: archiver
- `__init__(self, compression: int = zipfile.ZIP_DEFLATED)`: Initializes with optional compression type.
- `archive(self, zip_path: str, paths: list[str]) -> None`: Archives files/directories to a ZIP.
- `extract(self, zip_path: str, extract_to: str = '.') -> None`: Extracts ZIP to a directory.

## Error Handling ⚠️
Wrap calls in `try-except` for robustness:
```Python
try:
    archiver.archive('archive.zip', ['nonexistent.txt'])
except FileNotFoundError as e:
    print(f"Error: {e}")
```
## License 📄
This project is licensed under the MIT License - see the LICENSE file for details.