{ "info": { "author": "Nabla Zero Labs", "author_email": "pablo.ordorica@nablazerolabs.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7" ], "description": "\n# shldn \nSheldon Cooper ALWAYS points out what (he thinks) is wrong with people and their work\n\n## What is it?\n\n`shldn` is a console-application that finds all the division operations in Python source code to facilitate transitioning Python 2 code to Python 3. It uses Python's [AST](https://docs.python.org/3/library/ast.html) module to process and parse the code. It, then traverses the abstract syntax tree to find all the division operations, and prints them in a normal or more readable format to the console. \n\n## Motivation\n\n- Python 2 won't be supported past 2020 \n\n [tic tac tic tac...](https://pythonclock.org/)\n\n- Division in Python 3 always returns a `float`; whereas division in Python 2 can return an `int`\n- Critical for large Python 2 code bases that perform division operations\n\n\n\n## Requirements\n- Python 3\n\n## Install\n\n### Method 1: Install from [Pypi](https://pypi.org/) Method\n\n```\npip3 install shldn\n```\n\nOr, if you use [pipenv](https://docs.pipenv.org/),\n```\npipenv install shldn\n```\n\n### Method 2: Clone repository\nMove to the desired directory to install [shldn](https://github.com/NablaZeroLabs/shldn)\n\n```\ngit clone https://github.com/NablaZeroLabs/shldn.git\n```\n\n## Usage\n\n### Method 1 (Installed from [Pypi](https://pypi.org/)):\nIn environment installed: \n1. Check if installed \n```\npip list\n```\n2. Execute\n```\nshldn [-h] [-hr] [-r] path\n```\n\n### Method 2 (Cloned repo):\n1. Execute\n```\npython3 leonard.py [-h] [-hr] [-r] path\n\n```\n#### Arguments \n```\npositional arguments:\n path path to python source file(s)\n\noptional arguments:\n -h, --help show this help message and exit\n -hr, --human_readable\n set for friendlier output\n -r, --recursive recursively check python files in path\n```\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE.txt](https://github.com/NablaZeroLabs/shldn/blob/master/LICENSE.txt) file for details.\n\n## More Resources\n- [Porting Python 2 Code to Python 3](https://docs.python.org/3/howto/pyporting.html) by Brett Cannon\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NablaZeroLabs/shldn", "keywords": "", "license": "MIT", "maintainer": "Pablo Ordorica Wiener", "maintainer_email": "", "name": "shldn", "package_url": "https://pypi.org/project/shldn/", "platform": "", "project_url": "https://pypi.org/project/shldn/", "project_urls": { "Homepage": "https://github.com/NablaZeroLabs/shldn" }, "release_url": "https://pypi.org/project/shldn/1.2.1/", "requires_dist": null, "requires_python": ">=3.6.0", "summary": "Find divisions in Python code", "version": "1.2.1" }, "last_serial": 4087729, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "c3cc7b6859b2d01c1dc55effc995ab1c", "sha256": "fcc251dd582378cac8cb41aee028cfd79de78451e2721b98031a5adb7935296b" }, "downloads": -1, "filename": "shldn-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c3cc7b6859b2d01c1dc55effc995ab1c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 5475, "upload_time": "2018-07-21T03:05:36", "url": "https://files.pythonhosted.org/packages/d0/36/3876dbc389acbbfcc08fc286d010b3fee92f7e7405400e2575d76ddb4c03/shldn-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab27e801b429c3eded00a60f7088412f", "sha256": "fe96b4dd20403930bb0f9849ff5329d0d2931ad0486ceace5808e5ae8363b12f" }, "downloads": -1, "filename": "shldn-1.2.0.tar.gz", "has_sig": false, "md5_digest": "ab27e801b429c3eded00a60f7088412f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5628, "upload_time": "2018-07-21T03:05:38", "url": "https://files.pythonhosted.org/packages/fe/44/6aec74614ec0f19ea5d34930306845170fdf1d2be4e95d5ef3967101d12a/shldn-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "9c89fdb9a2833bdfe54db65923734376", "sha256": "d72d78980536575d7bb12bbe2acbd38ab2fafd1ea4ba923de23aafbf6f8c433a" }, "downloads": -1, "filename": "shldn-1.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9c89fdb9a2833bdfe54db65923734376", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 5468, "upload_time": "2018-07-21T03:18:39", "url": "https://files.pythonhosted.org/packages/31/0e/76f4485cfde6f09f13257ac7d71278762ab16aeee8551de3ebaacd1142b0/shldn-1.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b5fa354e4109d8adc6d7d885f739e19b", "sha256": "11b366a6d894d3aee853c41077570982831ce11540d977f136c5e60a3dc5c71a" }, "downloads": -1, "filename": "shldn-1.2.1.tar.gz", "has_sig": false, "md5_digest": "b5fa354e4109d8adc6d7d885f739e19b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5627, "upload_time": "2018-07-21T03:18:41", "url": "https://files.pythonhosted.org/packages/9c/18/e60e1055af3ae7a5bb42ee98a2356e8d403d8e7a31054492e8841604cb72/shldn-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c89fdb9a2833bdfe54db65923734376", "sha256": "d72d78980536575d7bb12bbe2acbd38ab2fafd1ea4ba923de23aafbf6f8c433a" }, "downloads": -1, "filename": "shldn-1.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9c89fdb9a2833bdfe54db65923734376", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6.0", "size": 5468, "upload_time": "2018-07-21T03:18:39", "url": "https://files.pythonhosted.org/packages/31/0e/76f4485cfde6f09f13257ac7d71278762ab16aeee8551de3ebaacd1142b0/shldn-1.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b5fa354e4109d8adc6d7d885f739e19b", "sha256": "11b366a6d894d3aee853c41077570982831ce11540d977f136c5e60a3dc5c71a" }, "downloads": -1, "filename": "shldn-1.2.1.tar.gz", "has_sig": false, "md5_digest": "b5fa354e4109d8adc6d7d885f739e19b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5627, "upload_time": "2018-07-21T03:18:41", "url": "https://files.pythonhosted.org/packages/9c/18/e60e1055af3ae7a5bb42ee98a2356e8d403d8e7a31054492e8841604cb72/shldn-1.2.1.tar.gz" } ] }