semvec/pypi-packages huggingface dataset:
3d-video-converter 0.0.4
FFMPEG-based tool for converting either two separate stereo videos or an existing 3D video into a wide range of 3D video formats.

# 3D Video Converter

A simple FFMPEG-based script for converting either two separate stereo videos or an existing 3D video into a wide range of 3D video formats.

## Installation

### Install `3d-video-converter`

From PyPI:

```bash
pip install 3d-video-converter
```

Or from the source on GitHub:

```bash
pip install "3d-video-converter @ git+https://github.com/evoth/3d-video-converter"
```

The package will be installed with the module name `video_converter_3d`.

### Install FFmpeg

This package depends on [ffmpeg-python](https://github.com/kkroening/ffmpeg-python), which means that [FFmpeg](https://ffmpeg.org/) must be installed and accessible via the `$PATH` environment variable. Please follow appropriate installation instructions for your platform.

To check if FFmpeg is installed, run the `ffmpeg` command from the terminal. If it is installed correctly, you should see version and build information.

## Usage examples

Convert a full-width parallel view video to full color red/cyan anaglyph:

```python
from video_converter_3d import convert_3d

convert_3d("video_parallel.mp4", "sbsl", "video_anaglyph.mp4", "arcc")
```

Combine two separate stereo videos into a full-width parallel view video, only keeping audio from the left video:

```python
from video_converter_3d import convert_2d_to_3d

convert_2d_to_3d(
    "video_left.mp4",
    "video_right.mp4",
    True,
    False,
    "video_parallel.mp4",
    "sbsl"
)
```
cfn-guard-test 0.6.0
cfn-guard-test is a wrapper for cfn-guard that allows you to run unit tests for your cfn-guard rules.
Requires Python: >=3.8

# cfn-guard-test

[![License](https://img.shields.io/badge/License-MIT-green.svg)](./LICENSE.md)
[![Maintenance](https://img.shields.io/badge/Maintained-yes-green.svg)](https://github.com/Nr18/cfn-guard-test/graphs/commit-activity)
[![GitHub release](https://img.shields.io/github/release/Nr18/cfn-guard-test.svg)](https://github.com/Nr18/cfn-guard-test/releases/)
[![Continuous Integration](https://github.com/Nr18/cfn-guard-test/actions/workflows/ci.yml/badge.svg)](https://github.com/Nr18/cfn-guard-test/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/Nr18/cfn-guard-test/branch/main/graph/badge.svg?token=RMPJ8DBMKZ)](https://codecov.io/gh/Nr18/cfn-guard-test)

This tool allows you to easily run your [cfn-guard][cfn-guard] tests against your cfn-guard rules.

`cfn-guard-test` is a tool that converts various reports into the JUnit format.

## Installation

You can install the `cfn-guard-test` tool by running the following command:

```bash
pip install cfn_guard_test
```

### Installation in venv

Typically, you would want to run your dependencies isolated. You can install [cfn-guard-test][cfn-guard-test] in a `venv`
using the following commands:

```bash
python -m venv .venv
source .venv/bin/activate
pip install cfn_guard_test
```

## Alternative installation: Docker

Build the docker image

```bash
docker build -t cfn-guard-test-docker .
```

#### Docker usage

Run the `cfn-guard-test` command as follows

```bash
docker run --rm -it -v `pwd`:/tests cfn-guard-test-docker cfn-guard-test
```

## Usage

To use `cfn-guard-test` you just execute the following command:

```bash
cfn-guard-test
```

This will (by default) look for a test file in `tests/reports` and it there is a yaml file that matches the same name in
the `reports` folder. It will then validate the rules defined in the `reports` folder against the test definition.

You can get a more verbose output if you add one of the following commands:

```bash
cfn-guard-test -v
cfn-guard-test --verbose
```

If you use a different folder structure you can define the rules and test paths as followed:

```bash
cfn-guard-test \
  --rules-path reports \
  --test-path tests/reports
```

When you do not have the `cfn-guard` binary installed, and you need to supply an alternative path you can do that with
the following command:

```bash
cfn-guard-test \
  --cfn-guard-path "/my/custom/path/cfn-guard"
```

### Generate a JUnit XML Report

You can generate a JUnit XML Report using the `--junit-path` option. Once given it will generate a JUnit XML compatible
report at the given location. Example:

```bash
cfn-guard-test \
  --junit-path "reports/cfn-guard.xml"
```

[cfn-guard]: https://github.com/aws-cloudformation/cloudformation-guard "AWS CloudFormation Guard"
[cfn-guard-test]: https://github.com/Nr18/cfn-guard-test "CloudFormation Guard Test"