eli-utils


Nameeli-utils JSON
Version 0.0.21 PyPI version JSON
download
home_pagehttps://github.com/elifriedman/eli_utils
SummaryUseful utilities I re-use in multiple projects
upload_time2024-09-15 08:55:18
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/83/11/784deea05576fef3677a8ffb8b1d56b9a6d99a5aa4a1b3cf57443c0a7722/eli_utils-0.0.21.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",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Useful utilities I re-use in multiple projects",
    "version": "0.0.21",
    "project_urls": {
        "Homepage": "https://github.com/elifriedman/eli_utils"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2dd1b00879fa9633c7fef268d859fd0427d19a102a8bf6c298737c640d6f54d3",
                "md5": "956b28f036ebdea8fef1270c7d4d6b1a",
                "sha256": "d18075050a6098895cf33a0b5d13613bd53c65324d4c4effbc6d0d77d5b3c46c"
            },
            "downloads": -1,
            "filename": "eli_utils-0.0.21-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "956b28f036ebdea8fef1270c7d4d6b1a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8100,
            "upload_time": "2024-09-15T08:55:16",
            "upload_time_iso_8601": "2024-09-15T08:55:16.725690Z",
            "url": "https://files.pythonhosted.org/packages/2d/d1/b00879fa9633c7fef268d859fd0427d19a102a8bf6c298737c640d6f54d3/eli_utils-0.0.21-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8311784deea05576fef3677a8ffb8b1d56b9a6d99a5aa4a1b3cf57443c0a7722",
                "md5": "963df8478b74a585508772fa79d2b3b7",
                "sha256": "bfefcbc43d64b96a21de6bb51274dd6c2966d1a95a9c215f796a2d7fccfea7e2"
            },
            "downloads": -1,
            "filename": "eli_utils-0.0.21.tar.gz",
            "has_sig": false,
            "md5_digest": "963df8478b74a585508772fa79d2b3b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7476,
            "upload_time": "2024-09-15T08:55:18",
            "upload_time_iso_8601": "2024-09-15T08:55:18.488013Z",
            "url": "https://files.pythonhosted.org/packages/83/11/784deea05576fef3677a8ffb8b1d56b9a6d99a5aa4a1b3cf57443c0a7722/eli_utils-0.0.21.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-15 08:55:18",
    "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.28309s