semvec/pypi-packages huggingface dataset:
veridian-client 0.1.3
Client SDK for Veridian AI Safety Platform

# Veridian Client SDK

The official Python client for the Veridian AI Safety Platform.

## Installation

```bash
pip install veridian-client
```

## Usage

Initialize the client with your API key:

```python
from veridian import Veridian

client = Veridian(api_key="your-api-key")
```

### Features

- **Check Prompt**: Verify if an inbound user prompt is safe.
  ```python
  result = client.check_prompt("Is this safe?")
  ```

- **Check Output**: Verify if an outbound agent response is safe.
  ```python
  result = client.check_output("Generated response")
  ```

- **Log Action**: Log and check an agent tool call.
  ```python
  result = client.log_action("tool_name", "tool_args")
  ```

- **Run Red Team**: Trigger a red team campaign.
  ```python
  result = client.run_redteam("user_intent", "target_description")
  ```
minizip 0.1.4
A compact Python library for archiving and extracting ZIP files.
Requires Python: >=3.8

# minizip

![Zip Archiver Logo](https://img.shields.io/badge/minizip%20-v0.1.0-blue?style=for-the-badge&logo=python)  
[![PyPI version](https://badge.fury.io/py/minizip.svg)](https://badge.fury.io/py/minizip)  
[![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 minizip
```

## Quick Start ⚡
### Archiving Files
#### Create an instance of archiver and use the archive method:
```Python
from minizip 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 minizip 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 minizip 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.