{ "info": { "author": "Ankush Sharma", "author_email": "darxtrix@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "lehar\n=====\n\n|Header image|\n\n|travis\\_badge| |Code Climate| |Test Coverage| |Issue Count|\n\nPython library to generate sparklines \u2581\u2582\u2584\u2585\u2587\u2588 in your shell based upon\nrelative ordering of data. ``lehar`` is a `Hindi`_ word which means\nwave. ``lehar`` can be invoked via *commandline* also.\n\n.. code:: bash\n\n # Find commits by authors in a git repo\n $ git shortlog -s | cut -f1 | lehar\n \u2587\u2581\u2581\u2581\u2581\u2581\u2581\u2582\u2583\u2581\u2581\u2588\u2581\u2581\u2582\u2583\u2585\u2581\u2581\u2581\u2582\u2586\u2581\u2581\u2581\u2582\u2581\u2581\u2581\u2581\u2582\u2587\u2581\u2585\u2586\u2581\u2581\u2581\u2584\u2581\u2581\u2588\u2581\u2581\u2582\u2581\u2582\u2581\n\n`Some cool usage`_\n\nDemo\n----\n\nInstallation\n------------\n\nUsing ``homebrew``:\n\n.. code:: bash\n\n $ brew install lehar \n\nUsing ``pip``\n\n::\n\n $ pip install lehar\n\ngi\n\nAPI\n---\n\nlehar.draw(numbers,options)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nnumbers\n^^^^^^^\n\n``type`` : ``list``\n\noptions\n^^^^^^^\n\n| Only supported option is ``color``\n| eg. ``color='red'``\n\nBasic Usage\n^^^^^^^^^^^\n\n.. code:: python\n\n\n >>> import lehar\n\n # Strings\n >>> lehar.draw([\"0\",\"1\",\"2\",\"3\",\"4\"])\n '\u2581\u2582\u2584\u2586\u2588'\n\n # Numbers\n >>> lehar.draw([0,1,2,3,4])\n '\u2581\u2582\u2584\u2586\u2588'\n\n # Negatives\n >>> lehar.draw([1,3,-34,12,44,81,0])\n '\u2583\u2583\u2581\u2584\u2586\u2588\u2583'\n\n # Missing data\n >>> lehar.draw([1,3,-34,'',12,44,'',81,0])\n '\u2583\u2583\u2581 \u2584\u2586 \u2588\u2583'\n\nAdding colors\n^^^^^^^^^^^^^\n\n.. code:: python\n\n >>> lehar.draw([\"0\",\"1\",\"2\",\"3\",\"4\"],color=\"yellow\")\n\n >>> lehar.draw([1,3,-34,'',12,44,'',81,0],color=\"cyan\")\n\nCommand line\n------------\n\n.. code:: bash\n\n $ lehar 1 2 3 4 5\n\n $ lehar -c red 1 2 3 4 5\n\n $ echo \"-c cyan 1 2 3 4 5\" | lehar\n\n $ lehar < input\n\nSupport\n-------\n\n``lehar`` supports both ``Python2`` & ``Python3``.\n\nContributing Guide\n------------------\n\n- Setup\n\n .. code:: bash\n\n $ git clone https://github.com/darxtrix/lehar\n $ cd lehar \n $ pip install -r requirements.txt\n $ python setup.py develop\n $ lehar \n\n- Tests are located at ``lehar/tests.py`` and covergae tests are\n located at ``.travis.yml``\n\n .. code:: bash\n\n $ python tests.py\n\n- While sending a pull request increment the version at `VERSION`_ and\n make sure the travis build passes.\n\n\nLicense\n-------\nMIT \u00a9 [Ankush Sharma](http://github.com/darxtrix)\n\n\n.. _Hindi: https://en.wikipedia.org/wiki/Hindi\n.. _Some cool usage: https://github.com/holman/spark/wiki/Wicked-Cool-Usage\n.. _VERSION: https://github.com/darxtrix/lehar/blob/master/lehar/VERSION\n\n.. |Header image| image:: docs/header.png\n.. |travis\\_badge| image:: https://travis-ci.org/darxtrix/lehar.svg?branch=master\n.. |Code Climate| image:: https://codeclimate.com/github/darxtrix/lehar/badges/gpa.svg\n :target: https://codeclimate.com/github/darxtrix/lehar\n.. |Test Coverage| image:: https://codeclimate.com/github/darxtrix/lehar/badges/coverage.svg\n :target: https://codeclimate.com/github/darxtrix/lehar/coverage\n.. |Issue Count| image:: https://codeclimate.com/github/darxtrix/lehar/badges/issue_count.svg\n :target: https://codeclimate.com/github/darxtrix/lehar\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/darxtrix/lehar", "keywords": "terminal sparklines spark unicode lehar shell", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lehar", "package_url": "https://pypi.org/project/lehar/", "platform": "", "project_url": "https://pypi.org/project/lehar/", "project_urls": { "Homepage": "https://github.com/darxtrix/lehar" }, "release_url": "https://pypi.org/project/lehar/0.4/", "requires_dist": [ "codeclimate-test-reporter; extra == 'test'", "coverage; extra == 'test'" ], "requires_python": "", "summary": "", "version": "0.4" }, "last_serial": 3093798, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d2b603ffa8b3eb5868cf1f451a888363", "sha256": "f839ff3684eee692b29ba50efda855d50faad01b77ac83a65949c24fc8611351" }, "downloads": -1, "filename": "lehar-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d2b603ffa8b3eb5868cf1f451a888363", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7140, "upload_time": "2017-08-13T04:45:42", "url": "https://files.pythonhosted.org/packages/19/ba/03f9f2dd407b7531517436c1070b6e74ca14101122d82253936b3b960321/lehar-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2578e329fc64bb6afe9d74578dc9badd", "sha256": "b3690e0d975f8f04243f3bb63769e7bb92607db105d5a8cb55c263af49f5e6a9" }, "downloads": -1, "filename": "lehar-0.1.tar.gz", "has_sig": false, "md5_digest": "2578e329fc64bb6afe9d74578dc9badd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2503, "upload_time": "2017-08-13T04:45:45", "url": "https://files.pythonhosted.org/packages/37/c2/6d04753ddeb2d8724031448710ee56931e30b43d4c916170511da0708af6/lehar-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "018b928796e0bd0125dee4f260584562", "sha256": "712668fa0bb0dfe57732e76d05083274d4aae0642a4b54a429310b3c9ba71805" }, "downloads": -1, "filename": "lehar-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "018b928796e0bd0125dee4f260584562", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7138, "upload_time": "2017-08-13T04:58:25", "url": "https://files.pythonhosted.org/packages/b6/37/f0a17a6d6da1f46b9d19845d381aae7f714851d4b541b7583be3d4a90fd0/lehar-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d4c0912dd98aeaa3666ded4d25b834c9", "sha256": "fe2f55218a0bdbdacccf3d66500e60026773b76fad844b37abcc4e6f82268cc2" }, "downloads": -1, "filename": "lehar-0.2.tar.gz", "has_sig": false, "md5_digest": "d4c0912dd98aeaa3666ded4d25b834c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7232, "upload_time": "2017-08-13T04:58:27", "url": "https://files.pythonhosted.org/packages/79/85/fe5bb7b8f145ee5fa3b4c212c4bdec59faffcda35fc1fe4d7a776490a0b5/lehar-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "28b48a3478e72a4c7ed663553f6dacc8", "sha256": "d8e61dd607ec0f39dadc18105db823e642f6777696e2a133f8660a901aae7ad2" }, "downloads": -1, "filename": "lehar-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "28b48a3478e72a4c7ed663553f6dacc8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7137, "upload_time": "2017-08-13T05:00:09", "url": "https://files.pythonhosted.org/packages/de/51/47e510b30c08ed054e7566a8685b786538cac7bd6ab4437a55c65449a98a/lehar-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdce785fdbebc59ad854fa15db961d47", "sha256": "7baac856a0cf365471701f1cf3d0e817e97c4f20b1a69e27e6ea7efada7d4bd9" }, "downloads": -1, "filename": "lehar-0.3.tar.gz", "has_sig": false, "md5_digest": "cdce785fdbebc59ad854fa15db961d47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7237, "upload_time": "2017-08-13T05:00:11", "url": "https://files.pythonhosted.org/packages/d6/12/f4992b6b73fdc22269f11e2b20e68eef20c8e1e9d98b767819e64605bf31/lehar-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "af6ddd15b3facaa5381a806e00283a32", "sha256": "b34436fedb8610c4228b916205352a166c4d1241cd7cb2024648ec80ebf8c059" }, "downloads": -1, "filename": "lehar-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "af6ddd15b3facaa5381a806e00283a32", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7313, "upload_time": "2017-08-13T13:49:55", "url": "https://files.pythonhosted.org/packages/54/73/7594752e6f05eb30d940ffedaf3bb99eb4af38bf322010cb6693bfb9a852/lehar-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "405888730519657db234ae440aa4e153", "sha256": "09ed8ec66e72b612858d2b0c8e47d6535b8cf393b77f6a02b49c815f36737cd9" }, "downloads": -1, "filename": "lehar-0.4.tar.gz", "has_sig": false, "md5_digest": "405888730519657db234ae440aa4e153", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7263, "upload_time": "2017-08-13T13:49:58", "url": "https://files.pythonhosted.org/packages/77/3b/6bd27337a2dd90d0556277bbac698828e6e0423dc52f1d0e194b3a85f8af/lehar-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af6ddd15b3facaa5381a806e00283a32", "sha256": "b34436fedb8610c4228b916205352a166c4d1241cd7cb2024648ec80ebf8c059" }, "downloads": -1, "filename": "lehar-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "af6ddd15b3facaa5381a806e00283a32", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7313, "upload_time": "2017-08-13T13:49:55", "url": "https://files.pythonhosted.org/packages/54/73/7594752e6f05eb30d940ffedaf3bb99eb4af38bf322010cb6693bfb9a852/lehar-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "405888730519657db234ae440aa4e153", "sha256": "09ed8ec66e72b612858d2b0c8e47d6535b8cf393b77f6a02b49c815f36737cd9" }, "downloads": -1, "filename": "lehar-0.4.tar.gz", "has_sig": false, "md5_digest": "405888730519657db234ae440aa4e153", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7263, "upload_time": "2017-08-13T13:49:58", "url": "https://files.pythonhosted.org/packages/77/3b/6bd27337a2dd90d0556277bbac698828e6e0423dc52f1d0e194b3a85f8af/lehar-0.4.tar.gz" } ] }