eli-utils


Nameeli-utils JSON
Version 0.0.17 PyPI version JSON
download
home_pagehttps://github.com/elifriedman/eli_utils
SummaryUseful utilities I re-use in multiple projects
upload_time2024-04-16 08:32:29
maintainerNone
docs_urlNone
authorEli Friedman
requires_python>=3.7
licenseApache Software License 2.0
keywords nbdev jupyter notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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")
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/elifriedman/eli_utils",
    "name": "eli-utils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "nbdev jupyter notebook python",
    "author": "Eli Friedman",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/c4/7e/fab74550796554990f1be3d297d89d5a64bbfebf5f81f68fe78b2c74021e/eli_utils-0.0.17.tar.gz",
    "platform": null,
    "description": "eli_utils\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n## Install\n\n``` sh\npip install 'git+https://github.com/elifriedman/eli_utils.git'\n```\n\n## How to use\n\n### Plotting Utils\n\n``` python\nfrom PIL import Image\nimport numpy as np\nfrom eli_utils import imshow, image_grid\n\nimage1 = Image.open(\"file1.png\")\nimage2 = np.zeros((128, 128, 3))\nimage3 = np.ones((128, 128, 3))\nimshow(image3)\nimage_grid([image1, image2], shape=(2, 1))\n```\n\n### IO Utils\n\n``` python\nfrom eli_utils import load_json, save_json\n\nmy_dict = {\"a\": 1, \"b\": 2}\nsave_json(my_dict, 'file.json')\nloaded_dict = load_json('file.json')\n```\n\n### Video Utils\n\n``` python\nfrom eli_utils import get_video_properties, load_frames\n\nframes = load_frames(\"myvideo.mp4\")\nframe_count, fps, duration = get_video_properties(\"myvideo.mp4\")\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Useful utilities I re-use in multiple projects",
    "version": "0.0.17",
    "project_urls": {
        "Homepage": "https://github.com/elifriedman/eli_utils"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1503594d371da9ae67c12d4b42ee057697bbe9916b401d86da8f77cd4056160",
                "md5": "bf725149abb2f4dbd610ba034ce793af",
                "sha256": "33fd644f6a919dafa13d46ca1f67bb3fd0450dff089d2b70d735da23199b6ae6"
            },
            "downloads": -1,
            "filename": "eli_utils-0.0.17-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bf725149abb2f4dbd610ba034ce793af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7978,
            "upload_time": "2024-04-16T08:32:27",
            "upload_time_iso_8601": "2024-04-16T08:32:27.488990Z",
            "url": "https://files.pythonhosted.org/packages/f1/50/3594d371da9ae67c12d4b42ee057697bbe9916b401d86da8f77cd4056160/eli_utils-0.0.17-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c47efab74550796554990f1be3d297d89d5a64bbfebf5f81f68fe78b2c74021e",
                "md5": "675c825f3997c38f5af79e4b418e2216",
                "sha256": "1a5c48f731bd7315f7701977d4e7100765008407bd5172a6148f24a20fb93381"
            },
            "downloads": -1,
            "filename": "eli_utils-0.0.17.tar.gz",
            "has_sig": false,
            "md5_digest": "675c825f3997c38f5af79e4b418e2216",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7502,
            "upload_time": "2024-04-16T08:32:29",
            "upload_time_iso_8601": "2024-04-16T08:32:29.204708Z",
            "url": "https://files.pythonhosted.org/packages/c4/7e/fab74550796554990f1be3d297d89d5a64bbfebf5f81f68fe78b2c74021e/eli_utils-0.0.17.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 08:32:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "elifriedman",
    "github_project": "eli_utils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "eli-utils"
}
        
Elapsed time: 0.24543s