Metadata-Version: 2.1
Name: eli_utils
Version: 0.0.13
Summary: Useful utilities I re-use in multiple projects
Home-page: https://github.com/elifriedman/eli_utils
Author: Eli Friedman
Author-email: 
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

eli_utils
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Install

``` sh
pip install 'git+https://github.com/elifriedman/eli_utils.git'
```

## How to use

### Plotting Utils

``` python
from PIL import Image
import numpy as np
from eli_utils import imshow, image_grid

image1 = Image.open("file1.png")
image2 = np.zeros((128, 128, 3))
image3 = np.ones((128, 128, 3))
imshow(image3)
image_grid([image1, image2], shape=(2, 1))
```

### IO Utils

``` python
from eli_utils import load_json, save_json

my_dict = {"a": 1, "b": 2}
save_json(my_dict, 'file.json')
loaded_dict = load_json('file.json')
```

### Video Utils

``` python
from eli_utils import get_video_properties, load_frames

frames = load_frames("myvideo.mp4")
frame_count, fps, duration = get_video_properties("myvideo.mp4")
```


