{ "info": { "author": "Florian Leitner", "author_email": "florian.leitner@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "============\nprogress_bar\n============\n----------------------------------------------\na module to display progress bars in terminals\n----------------------------------------------\n\nA simple way of providing an informative and clean progress bar on the\nterminal that:\n\n- *knows a terminal's current width*\n- has a header\n- works *out of the box* when *reading files*\n- always shows a relative percentage\n- works for Python 2.6+ and 3.0+\n\nSynopsis\n========\n\n::\n\n file.txt: [========================79.3%===============> ]\n\nInstallation\n============\n\n``pip install progress_bar``\n\nUsage\n=====\n\nGenerally, to create any kind of progress bar with a default \"size\"\nof 100 arbitrary units:\n\n.. code-block:: python\n\n from progress_bar import InitBar\n\n pbar = InitBar()\n pbar(10) # update % to 10%\n pbar(20) # update % to 20%\n pbar(15) # simulate a Microsoft progress bar\n pbar(100) # done\n \n del pbar # write the newline\n\nTo easily create a progress bar for reporting (reading) progress in a\nfilehandle that can ``tell()`` its offset:\n\n.. code-block:: python\n\n from progress_bar import InitBarForInfile\n\n pbar = InitBarForInfile(\"./README.rst\")\n instream = open(\"./README.rst\")\n\n for line in iter(instream.readline, ''):\n pbar(instream.tell())\n\n del pbar\n\nWith those default arguments, the bar will be as wide as the terminal window.\nHowever, it will have two whitespaces on both sides of the bar to achieve a\nvisually more appealing display. Terminal window width is defined by\n``termios`` using ``fcntl``, both from the standard library. The progress bar\nwill be prefixed with the *basename* of the input file (\"file.txt\" in the\nabove example).\n\nVersion History\n===============\n\n- 8: README improvements thanks to Marc Abramowitz, @msabramo\n- 7: fixed error with InitBar when no title is given\n- 6: removed remaining function annotations (Py2.7; thanks to Adam Knight\n @ahknight)\n- 5: fixed a few rough edges from the last update\n- 4: made the bars with titles one-liners and fixed functions names\n (FunctionNames, ClassNames, methodNames, variable_names) because the PEP8\n convention of using \"snake_case\" for nearly all names makes no sense to me\n what-so-ever...\n Finally, fixed the documentation to reflect Sphinx standards.\n- 3: fixed the version number so PEP426 issues are avoided (pip install now\n works...)\n- 2: updated the readme/usage section to reflect tell() issues with Python3\n- 1: initial release\n\nCopyright and License\n=====================\n\nLicense: `Apache License v2 `_.\nCopyright 2007-2014 Florian Leitner. All rights reserved.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fnl/progress_bar", "keywords": null, "license": "Apache License v2", "maintainer": null, "maintainer_email": null, "name": "progress_bar", "package_url": "https://pypi.org/project/progress_bar/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/progress_bar/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fnl/progress_bar" }, "release_url": "https://pypi.org/project/progress_bar/8/", "requires_dist": null, "requires_python": null, "summary": "An annotated, single-line progress bar for terminals.", "version": "8" }, "last_serial": 1344007, "releases": { "1": [ { "comment_text": "", "digests": { "md5": "368a9570dbe27bd2b9abe809d0d25299", "sha256": "0ead88145d4eedbd620a966d866e6812577afef4cbe86435a220e89a374c3544" }, "downloads": -1, "filename": "progress_bar-1.tar.gz", "has_sig": false, "md5_digest": "368a9570dbe27bd2b9abe809d0d25299", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4194, "upload_time": "2013-12-05T10:42:56", "url": "https://files.pythonhosted.org/packages/e2/83/2c6e08e201b67ad3575e52af836d4067995097730bb9410dce6f97f38a23/progress_bar-1.tar.gz" } ], "2": [ { "comment_text": "", "digests": { "md5": "470ab23a97dbf78f7d9f8b874648f914", "sha256": "0cad38c988fe8ab8398b60631d62b6e47a1757621f1acba4507efbd917c331b5" }, "downloads": -1, "filename": "progress_bar-2.tar.gz", "has_sig": false, "md5_digest": "470ab23a97dbf78f7d9f8b874648f914", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4289, "upload_time": "2013-12-09T15:09:35", "url": "https://files.pythonhosted.org/packages/ea/f9/a693b67fdcd128a4e16d9f86413dafeaee576b740a0056c1a12f414a3822/progress_bar-2.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "a05cbd582b180c296e91d5826d4ffe1d", "sha256": "d1610320a139c68596efa6616993851b6f4a93596f451ada4b8f2459b7d9d27c" }, "downloads": -1, "filename": "progress_bar-3.0.0.tar.gz", "has_sig": false, "md5_digest": "a05cbd582b180c296e91d5826d4ffe1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4340, "upload_time": "2013-12-09T15:35:30", "url": "https://files.pythonhosted.org/packages/aa/99/47a2e886cdaf93e9fc5dd5cf788730722af0b058fa5d3134227f9ff17c46/progress_bar-3.0.0.tar.gz" } ], "4.0": [ { "comment_text": "", "digests": { "md5": "b514da16cd995c20f89adbaddf08d8a8", "sha256": "46289d3476a924fea4c73e104cc1f9c463957b1a9a5a6af7f9d6d483bce94acd" }, "downloads": -1, "filename": "progress_bar-4.0.tar.gz", "has_sig": false, "md5_digest": "b514da16cd995c20f89adbaddf08d8a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4792, "upload_time": "2013-12-09T16:43:01", "url": "https://files.pythonhosted.org/packages/b8/fc/fbf868372ede85a248d20938b7c3efba604bc5f5c36c33ba9ef4c79af65a/progress_bar-4.0.tar.gz" } ], "5.0": [ { "comment_text": "", "digests": { "md5": "d4e47c30265af5a513d9678f72ee5c51", "sha256": "7de4e70917a5ebe37e39cd82de7117fcd8c9db396d3118ab905e80e431547625" }, "downloads": -1, "filename": "progress_bar-5.0.tar.gz", "has_sig": false, "md5_digest": "d4e47c30265af5a513d9678f72ee5c51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4823, "upload_time": "2013-12-09T17:06:46", "url": "https://files.pythonhosted.org/packages/a5/34/71d137bc112295780d8708a75fa46e36a28f9ac5a45a1cb5011116173244/progress_bar-5.0.tar.gz" } ], "6.0": [ { "comment_text": "", "digests": { "md5": "48fe96e8d93c3f9269c027c5c373cd1e", "sha256": "a3107ec7d0976867f67a473323247d0d1e9fe4f306155d2c7746c18f5e4fcec8" }, "downloads": -1, "filename": "progress_bar-6.0.tar.gz", "has_sig": false, "md5_digest": "48fe96e8d93c3f9269c027c5c373cd1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4817, "upload_time": "2014-05-14T06:47:30", "url": "https://files.pythonhosted.org/packages/bf/f7/984662f6f054a5dab82c2f1dbcfea0ee0646810ec4c59fc44f4438efe52f/progress_bar-6.0.tar.gz" } ], "7": [ { "comment_text": "", "digests": { "md5": "78c6b16a30bc9c80e46acd52bf3f648f", "sha256": "f5b847d66264174d8d85233d02f932ea789f599fecc994fa9cb02aba2282481f" }, "downloads": -1, "filename": "progress_bar-7.tar.gz", "has_sig": false, "md5_digest": "78c6b16a30bc9c80e46acd52bf3f648f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5108, "upload_time": "2014-12-14T17:27:18", "url": "https://files.pythonhosted.org/packages/93/e9/7c9f43704a2215ee6f19b3084da01087cd23fb539ac9e7b614c087164254/progress_bar-7.tar.gz" } ], "8": [ { "comment_text": "", "digests": { "md5": "291e607126757b8d0de015e4743441aa", "sha256": "befbbcc07fbce96c7b2bed17fffd2203d0269d94ade502b6e003652ba0050efd" }, "downloads": -1, "filename": "progress_bar-8.tar.gz", "has_sig": false, "md5_digest": "291e607126757b8d0de015e4743441aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5181, "upload_time": "2014-12-15T08:45:13", "url": "https://files.pythonhosted.org/packages/b4/fb/d45c6a34e1242f4c7abef5f98aeb29e7096518defcf390bd601b5d3148ff/progress_bar-8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "291e607126757b8d0de015e4743441aa", "sha256": "befbbcc07fbce96c7b2bed17fffd2203d0269d94ade502b6e003652ba0050efd" }, "downloads": -1, "filename": "progress_bar-8.tar.gz", "has_sig": false, "md5_digest": "291e607126757b8d0de015e4743441aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5181, "upload_time": "2014-12-15T08:45:13", "url": "https://files.pythonhosted.org/packages/b4/fb/d45c6a34e1242f4c7abef5f98aeb29e7096518defcf390bd601b5d3148ff/progress_bar-8.tar.gz" } ] }