{ "info": { "author": "Taylor Marks, Adam Karpierz", "author_email": "adam@karpierz.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Polish", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: IronPython", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: Stackless", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "let3\n====\n\n*Assign variables wherever, whenever you want.*\n\nOverview\n========\n\n *let3* is a strict fork of Taylor Marks's let_ package with a fix allowing\n to work with Python3 or higher and with a little code reformatting and\n minor improvements.\n\n Overview below is a copy from the original let_ website (with only the\n necessary changes regarding let3).\n\nQuick Start\n-----------\nOnce you've installed, you can really quickly verified that it works with just this:\n\n.. code-block:: python\n\n >>> from let import let\n >>> if let(count = len('Hello World!')):\n ... print(count)\n 12\n\nDocumentation\n-------------\nIn C, Java, and many other languages, it's possible to assign variables inside\nof if or while condition statements. This is useful in allowing you to concisely\nboth assign the value, and check whether a condition is met.\n\nThis ability doesn't exist in Python, because of the thought that when people\nwrite something like:\n\n.. code-block:: python\n\n if row = db.fetch_results():\n ...\n\nThey may have actually meant:\n\n.. code-block:: python\n\n if row == db.fetch_results():\n ...\n\nPersonally, I have never made this mistake. It seems far more like a theoretical\nmistake that could plausibly happen than one that actually happens and warrants\nremoving features, as was chosen in Python.\n\nAnyways, the let function in this module gives you something very close to that\nability in other languages. A few examples:\n\n.. code-block:: python\n\n if let(name = longInstanceName.longAttributeName):\n ...\n\n # Yes, db.fetch_results() should just return a generator. No, it doesn't.\n while let(results = db.fetch_results()):\n ...\n\n if let(count = len(nameValuePair)) != 1:\n raise Exception('Bad amount: {}'.format(count))\n\nInstallation\n============\n\n+ Python 3.4 or later\n\n * http://www.python.org/\n * 2.7 and 3.7 are primary test environments.\n\n+ pip and setuptools\n\n * http://pypi.org/project/pip/\n * http://pypi.org/project/setuptools/\n\nTo install run::\n\n python -m pip install --upgrade let3\n\nDevelopment\n===========\n\nVisit `development page `__\n\nInstallation from sources:\n\nClone the `sources `__ and run::\n\n python -m pip install ./let3\n\nor on development mode::\n\n python -m pip install --editable ./let3\n\nPrerequisites:\n\n+ Development is strictly based on *tox*. To install it run::\n\n python -m pip install tox\n\nLicense\n=======\n\n | Copyright (c) 2016 Taylor Marks\n | Copyright (c) 2016-2019 Adam Karpierz\n |\n | Licensed under the MIT License\n | http://opensource.org/licenses/MIT\n | Please refer to the accompanying LICENSE file.\n\nAuthors\n=======\n\n* Taylor Marks \n* Adam Karpierz \n\n.. _let: http://pypi.org/project/let/\n\nChangelog\n=========\n\n1.0.11 (2019-05-22)\n-------------------\n- Drop support for Python 2.\n\n1.0.10 (2019-05-21)\n-------------------\n- Update required setuptools version.\n- Setup update and improvements.\n- This is the latest release that supports Python 2.\n\n1.0.9 (2018-11-08)\n------------------\n- Drop support for Python 2.6 and 3.0-3.3\n- Update required setuptools version.\n\n1.0.8 (2018-05-08)\n------------------\n- Update required setuptools version.\n- Improve and simplify setup and packaging.\n\n1.0.7 (2018-02-26)\n------------------\n- Improve and simplify setup and packaging.\n\n1.0.6 (2018-01-28)\n------------------\n- Fix a bug and inconsistencies in tox.ini\n- Update of README.rst.\n\n1.0.3 (2018-01-24)\n------------------\n- Update required Sphinx version.\n- Update doc Sphinx configuration files.\n\n1.0.2 (2017-11-18)\n------------------\n- Setup improvements.\n- Other minor improvements.\n\n1.0.1 (2017-01-05)\n------------------\n- Creating a fork of Taylor Marks's *let* package with a fix allowing\n to work with Python3 or higher.\n- Minor improvements.\n\nChanges of the original *let*:\n\n1.0.1 (Feb 25, 2016)\n--------------------\n- Let now assigns the variables to the global namespace always - never\n the local namespace. The Python interpreter sometimes optimizes variables\n within the local namespace - it's best not to change values behind its\n back, as it leads to very difficult to discover bugs.\n\n1.0.0 (Feb. 7, 2016)\n--------------------\n- Initial commit", "description_content_type": "", "docs_url": null, "download_url": "http://pypi.org/project/let3/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.org/project/let3/", "keywords": "let,let3,assign,assignment,var,variable,conditional,if,while", "license": "MIT License ; http://opensource.org/licenses/MIT", "maintainer": "Taylor Marks, Adam Karpierz", "maintainer_email": "adam@karpierz.net", "name": "let3", "package_url": "https://pypi.org/project/let3/", "platform": "any", "project_url": "https://pypi.org/project/let3/", "project_urls": { "Download": "http://pypi.org/project/let3/", "Homepage": "http://pypi.org/project/let3/" }, "release_url": "https://pypi.org/project/let3/1.0.11/", "requires_dist": null, "requires_python": ">=3.4.0", "summary": "Assign variables wherever, whenever you want", "version": "1.0.11" }, "last_serial": 5853204, "releases": { "1.0.10": [ { "comment_text": "", "digests": { "md5": "c2c37798bc0d92637ae8e5f92de5f60f", "sha256": "50df9462d0d78dc9a4d5ab2a9df4ac76e63f59e3178574f7296f7d4f1f917c09" }, "downloads": -1, "filename": "let3-1.0.10.zip", "has_sig": false, "md5_digest": "c2c37798bc0d92637ae8e5f92de5f60f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7.0,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 17082, "upload_time": "2019-05-21T22:50:27", "url": "https://files.pythonhosted.org/packages/d3/96/abd93e5879dc7312909cbfc6acc813cd3ba000f0876f8ecd577a0d290d6a/let3-1.0.10.zip" } ], "1.0.11": [ { "comment_text": "", "digests": { "md5": "cb51f02df1552360f139f622f37310d3", "sha256": "2cf2893fbd9e49b43a296c69b0aaca78e8cafd6c7748fa8ef7037ecdac989c39" }, "downloads": -1, "filename": "let3-1.0.11.zip", "has_sig": false, "md5_digest": "cb51f02df1552360f139f622f37310d3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 16776, "upload_time": "2019-05-21T22:54:13", "url": "https://files.pythonhosted.org/packages/12/9c/fb87095ba07b82babd5159099cb9a1b349453fea68047c594020fac1347d/let3-1.0.11.zip" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "a97b0cf4d19b1085cde128fa04594619", "sha256": "44688be98a6b61de14815af0da9414c9adbecd426e01f2b5fbe68abecb0c174a" }, "downloads": -1, "filename": "let3-1.0.9.zip", "has_sig": false, "md5_digest": "a97b0cf4d19b1085cde128fa04594619", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13187, "upload_time": "2018-11-08T20:48:01", "url": "https://files.pythonhosted.org/packages/f4/f7/7ca923b8ba2c3d9c5d0d3bf38ccff508bb6c1d4e2ee4a89d14a56c06f8d0/let3-1.0.9.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb51f02df1552360f139f622f37310d3", "sha256": "2cf2893fbd9e49b43a296c69b0aaca78e8cafd6c7748fa8ef7037ecdac989c39" }, "downloads": -1, "filename": "let3-1.0.11.zip", "has_sig": false, "md5_digest": "cb51f02df1552360f139f622f37310d3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4.0", "size": 16776, "upload_time": "2019-05-21T22:54:13", "url": "https://files.pythonhosted.org/packages/12/9c/fb87095ba07b82babd5159099cb9a1b349453fea68047c594020fac1347d/let3-1.0.11.zip" } ] }