semvec/pypi-packages huggingface dataset:
rubrik-cdm 2.0.10
A Python package for interacting with the Rubrik CDM API.

# Rubrik SDK for Python

This project provides a Python package that makes it easy to interact with the Rubrik CDM API.

The SDK has been tested against Python 2.7.6 and Python 3.6.4.

## Installation

Install from pip:

`pip install rubrik_cdm`

Install from source:
```
$ git clone https://github.com/rubrik-devops/rubrik-sdk-for-python
$ cd rubrik-sdk-for-python
$ python setup.py install
```
## Quick Start

* [Quick Start Guide](https://github.com/rubrikinc/rubrik-sdk-for-python/blob/master/docs/quick-start.md)

## Documentation

* [SDK Documentation](https://rubrik.gitbook.io/rubrik-sdk-for-python/)
* [Rubrik API Documentation](https://github.com/rubrikinc/api-documentation)

## Example

By default, the Rubrik SDK will attempt to read the the Rubrik Cluster credentials from the following environment variables:

* `rubrik_cdm_node_ip`
* `rubrik_cdm_username`
* `rubrik_cdm_password`
* `rubrik_cdm_token`

| Note: The `rubrik_cdm_username` and `rubrik_cdm_password` must be supplied together and may not be provided if the `rubrik_cdm_token` variable is present|
| --- |

```py
import rubrik_cdm
rubrik = rubrik_cdm.Connect()

cluster_version = rubrik.cluster_version()

print(cluster_version)
```

## Additional Links
* [VIDEO: Getting Start with the Rubrik SDK for Python](https://www.youtube.com/watch?v=TQM60X2_r_c&feature=youtu.be)
pyVideoPreviewGenerator 1.0.4
Python based script to generate mini previews of your videos, like tutorials or ...
Requires Python: >=3.6

![header_image](https://github.com/soroushamdg/pyVideoPreviewGenerator/raw/master/header.jpg)

# pyPreviewGenerator
**pyPreviewGenerator** is a python module you can use to generate short previews of your videos. Like you have made a short documentry for your school and you want to create a short preview to post on instagram, so you can quickly generate the preview using this script, it's super easy to use, and so much faster than doing it by video editors.


# Installation

you can both clone this repository or install it using pip, both instructions are below;
- installing using **pip**

    `pip install pyVideoPreviewGenerator`

you can checkout modules pip page here.

- Clone & Install
1. clone repo
2. run below command to install requirements:
3. change terminal directory to cloned directory
4. run: `pip install .`
5. you're ready to go!

## Usage
#### 1 - Using module in your python code
first you need to import the module

    from pyPreviewGenerator import pyPreviewGenerator
then to generate run below function

```python
from pyPreviewGenerator import pyPreviewGenerator
pyPreviewGenerator.generate_preview(filePath = "videos/test.mp4",   
                                    startRange = 50, #as second   
                                    endRange = 350, #as second   
                                    introRange=(0,50), # pick intro from 0 to 60 seconds of input video as intro - default = None   
                                    outroRange= (351,400), # pick outro from 351 to 400 seconds of input video as outro - default = None  
                                    miniClipsCount=3, # define how many parts your video split into - default = 3   
                                    fadeEffectBetweenClips= 1 , # define fade effect duration for between scenes as seconds - default = 1  
                                    fadeEffectPadding = -0.5,  # define padding between scenes - default = -0.5   
                                    exportPath = None # define export path - default = 'preview.mp4' next to input video  
                                    )
```
  
#### 2 - Using module as CMD or Terminal Application

first install module using pip, then in cmd or Terminal

for help : `python -m pyPreviewGenerator.pyPGCLI --help`

example :
 
 `python -m pyPreviewGenerator.pyPGCLI --filepath "videos\test.mp4" --startrange 65 -e 390 -i 0 65 -o 390 410 -m 4 -d 1 -p -0.5 -x "videos\pre_test.mp4"`


## License
**@soroushamdg made it.**

License attached to files(MIT License)

## Issues
if you found a bug, catch it and throw it in issues section