semvec/pypi-packages huggingface dataset:
inrgif 1.0.3
A Python package to make gif from images and videos
License: MIT

# pygif
A Python package to make gif from images and videos

## Usage

Following methods can be utilized to make gif

```
from inrgif import images_to_gif, video_to_gif
import glob
from PIL import Image
#from video to gif..
obj = video_to_gif.make_gif(video_path="videoplayback.mp4",duration = 400, loop = 0 )
images_to_gif.save(obj,"video.gif")

#from folder all images.
#here folder name is test
bytesio_object= images_to_gif.make_gif(frame_folder="test",duration = 400, loop = 0)
images_to_gif.save(bytesio_object,"folder.gif")

#from PIL objects to gif..
frames = [Image.open(image) for image in glob.glob(f"{'test'}/*")]
bytesio_object = images_to_gif.frame_gif(frames=frames,duration = 400, loop = 0)
images_to_gif.save(bytesio_object,"frames.gif")

```

To uninstall execute following..

```
pip uninstall inrgif

```
transport-dependency 0.0.1
A package to compute optimal transport based dependency measures such as the transport correlation
License: MIT

# Transport Dependency

This package provides a few simple functions to compute the transport correlation and other optimal transport based dependency measures as defined here: [Transport dependency: Optimal transport based dependency measures](https://arxiv.org/abs/2105.02073).

#### Pip installation

Since the library relies on the [Python Optimal Transport package](https://github.com/PythonOT) it is necessesary to first install 
some dependencies separately with the comand:
```console
pip install numpy scipy Cython
```
You can then install the package by typing:

```console
pip install transport_dependency
```

#### Short example

```python
# Compute transport correlation and test for independence
from transport_dependency import tcor, permutation_test
x = [[1, 2, 3],
     [4, 5, 6],
     [7, 8., 9]]
y = [1, 0, 0.3]
res = tcor(x, y)
test = permutation_test(x, y, coef=tcor)
p_val = test["p_val"]
```

#### References

[1] . G. Nies, T. Staudt, and A. Munk. [Transport dependency: Optimal transport based dependency measures](https://arxiv.org/abs/2105.02073)
arXiv Preprint, 2021.