py-ezbar


Namepy-ezbar JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/kdrkrgz/ez-bar
SummarySimple progress bar for terminal
upload_time2023-04-11 20:17:39
maintainer
docs_urlNone
authorkadir-karagoz
requires_python>=3.6
licenseThe MIT License (MIT) Copyright (c) 2023 Kadir Karagoz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords progress bar terminal
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Ez-Bar

Very simple customizable progress bar.

## Installation
```bash
pip install py-ezbar
```

## Usage and Examples

import, configure and use it's easy
```bash
from py_ezbar import ProgressBar, BarStyles, BarColors
    
progress_bar = ProgressBar(color=BarColors.YELLOW, style=BarStyles.DEFAULT, show_fractions=True)
t = range(327)
x = [fake.bs() for _ in range(5)]
y = {
    "1": "a",
    "2": "b",
    "3": "c",
    "4": "d",
    "5": "e",
}

for i in t:
    progress_bar(index=i, iterable=t, current=i)
    sleep(0.01)

for i, v in enumerate(x):
    progress_bar(index=i, iterable=x, current=v)
    sleep(0.01)

for i, (k, v) in enumerate(y.items()):
    progress_bar(index=i, iterable=x, current=v)
    sleep(0.01)
```

![example](https://raw.githubusercontent.com/kdrkrgz/ez-bar/master/docs/gifs/example.gif)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kdrkrgz/ez-bar",
    "name": "py-ezbar",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "progress,bar,terminal",
    "author": "kadir-karagoz",
    "author_email": "Kadir Karagoz <kadir@kadirkaragoz.com>",
    "download_url": "https://files.pythonhosted.org/packages/2a/1a/02fea9ea57cc6fb7d23b36f19ef80329fd9a00f8a75b29de02bf680e68f5/py_ezbar-0.1.2.tar.gz",
    "platform": null,
    "description": "\n# Ez-Bar\n\nVery simple customizable progress bar.\n\n## Installation\n```bash\npip install py-ezbar\n```\n\n## Usage and Examples\n\nimport, configure and use it's easy\n```bash\nfrom py_ezbar import ProgressBar, BarStyles, BarColors\n    \nprogress_bar = ProgressBar(color=BarColors.YELLOW, style=BarStyles.DEFAULT, show_fractions=True)\nt = range(327)\nx = [fake.bs() for _ in range(5)]\ny = {\n    \"1\": \"a\",\n    \"2\": \"b\",\n    \"3\": \"c\",\n    \"4\": \"d\",\n    \"5\": \"e\",\n}\n\nfor i in t:\n    progress_bar(index=i, iterable=t, current=i)\n    sleep(0.01)\n\nfor i, v in enumerate(x):\n    progress_bar(index=i, iterable=x, current=v)\n    sleep(0.01)\n\nfor i, (k, v) in enumerate(y.items()):\n    progress_bar(index=i, iterable=x, current=v)\n    sleep(0.01)\n```\n\n![example](https://raw.githubusercontent.com/kdrkrgz/ez-bar/master/docs/gifs/example.gif)\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2023 Kadir Karagoz  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Simple progress bar for terminal",
    "version": "0.1.2",
    "split_keywords": [
        "progress",
        "bar",
        "terminal"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67530c6d99c820cc4c93312cd44b238edda40c8aa73a54c31c4b2f843ae07b80",
                "md5": "c0e10b66b8fd6c171fb6feae0f816e46",
                "sha256": "dcd9906df5175f9226297218deb3cc4f8d600700588a1b45df9d7f63529fc8df"
            },
            "downloads": -1,
            "filename": "py_ezbar-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c0e10b66b8fd6c171fb6feae0f816e46",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4522,
            "upload_time": "2023-04-11T20:17:36",
            "upload_time_iso_8601": "2023-04-11T20:17:36.955197Z",
            "url": "https://files.pythonhosted.org/packages/67/53/0c6d99c820cc4c93312cd44b238edda40c8aa73a54c31c4b2f843ae07b80/py_ezbar-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a1a02fea9ea57cc6fb7d23b36f19ef80329fd9a00f8a75b29de02bf680e68f5",
                "md5": "5ff3bf56f4ebb490ca77c55c7d4000fa",
                "sha256": "3c97a990db7fa820492f3ebf949ef84cc945e1e3c1a12d65073f6028b124c970"
            },
            "downloads": -1,
            "filename": "py_ezbar-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5ff3bf56f4ebb490ca77c55c7d4000fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3912,
            "upload_time": "2023-04-11T20:17:39",
            "upload_time_iso_8601": "2023-04-11T20:17:39.338026Z",
            "url": "https://files.pythonhosted.org/packages/2a/1a/02fea9ea57cc6fb7d23b36f19ef80329fd9a00f8a75b29de02bf680e68f5/py_ezbar-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-11 20:17:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "kdrkrgz",
    "github_project": "ez-bar",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "py-ezbar"
}
        
Elapsed time: 0.06619s