{ "info": { "author": "Paulo Meira", "author_email": "10246101+PMeira@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython" ], "description": "selfless\r\n========\r\n\r\nA small experimental, work-in-progress, module for implicit \"self\"\r\nsupport in Python (in some restricted contexts), targeting Python 2.7\r\n(if possible) and 3.6+.\r\n\r\nDocumentation and explicit examples will be added when the module is\r\nmore mature. This is used as a dependency for another module; when that\r\nmodule is made public, the existence of this module will be justified.\r\n\r\nWhat is this?\r\n=============\r\n\r\nIf you don't know, you probably don't need it. It can be used as an\r\nexample of AST transformer though.\r\n\r\nIn some contexts (this will be clarified in the future), writing and\r\nreading ``self.`` polutes the code and can be cumbersome. This module\r\ntries to alleviate that in some specific contexts.\r\n\r\nHow does it work?\r\n=================\r\n\r\nThis module inspects the source code of a class, extracts its AST and\r\ninserts ``self.`` for variables in a list (if provided) or variables not\r\nin the global and local contexts at the time of import.\r\n\r\nFinally, the transformed AST is compiled and inserting into the original\r\ncontext of the class ``selfless`` was applied to.\r\n\r\n*I'm also trying to restrict the transform to the ``with`` keyword but\r\nit's a work-in-progress.*\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PMeira/selfless", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "selfless", "package_url": "https://pypi.org/project/selfless/", "platform": "", "project_url": "https://pypi.org/project/selfless/", "project_urls": { "Homepage": "https://github.com/PMeira/selfless" }, "release_url": "https://pypi.org/project/selfless/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A small experimental module for implicit \"self\" support in Python (in some restricted contexts)", "version": "0.0.3" }, "last_serial": 3696786, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a5e4e638328fd9fcd514e8aa1ca008cc", "sha256": "efa7d9f862577faae8372f6a8e897fa59cfee1edfff6c7a1855786fb35d6620d" }, "downloads": -1, "filename": "selfless-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a5e4e638328fd9fcd514e8aa1ca008cc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 2937, "upload_time": "2018-02-12T22:41:04", "url": "https://files.pythonhosted.org/packages/86/3f/a4bf7718cf7d45aaab740184a29de63ecdc1157fab6998e5342e7635e7e0/selfless-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2a769f98850f5ad63ff3de934a63d5f3", "sha256": "303f3409714d607f0657f58a7c5a2d86b66559c82ce57d3efc2b0c6f9c80e687" }, "downloads": -1, "filename": "selfless-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "2a769f98850f5ad63ff3de934a63d5f3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5736, "upload_time": "2018-03-17T19:03:51", "url": "https://files.pythonhosted.org/packages/d8/e0/76b0d14efcbd8bf6b5353c1c2aac1d5cd198d1aeb7e415d64dccf30a63ba/selfless-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d08dddad32823a4a960427fb847f885", "sha256": "046c7fc05089520e5744a8ec8fced1e5a12e1c52dd6493c35b04077bcc652c49" }, "downloads": -1, "filename": "selfless-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3d08dddad32823a4a960427fb847f885", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4346, "upload_time": "2018-03-17T19:03:29", "url": "https://files.pythonhosted.org/packages/39/74/c18b04071196ec3b41a1a0366851b7d9483e2c48403399633fafcfde37ef/selfless-0.0.2-py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0c2ac3c62daca822494830b6480940e6", "sha256": "c31b4a9fcb454dfd85a3ec035101712506aaf53ed85b650cb582f06729c5ef4e" }, "downloads": -1, "filename": "selfless-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "0c2ac3c62daca822494830b6480940e6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5826, "upload_time": "2018-03-22T20:46:45", "url": "https://files.pythonhosted.org/packages/cb/fd/d503615ec0c7f76ab3820913ed7377d82a3de567dce1b64b42d640e707bb/selfless-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dbcf100bf0134493567ae335593d651a", "sha256": "240aea6106aed4bb7bc2c922dd8aca1ec2e517fc7334e7721b769130175b2778" }, "downloads": -1, "filename": "selfless-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "dbcf100bf0134493567ae335593d651a", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4438, "upload_time": "2018-03-22T20:44:30", "url": "https://files.pythonhosted.org/packages/31/a4/0143f49fbd6b866a0bbb105b52009b26b5237bf1026e78bfa788613fd29d/selfless-0.0.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0c2ac3c62daca822494830b6480940e6", "sha256": "c31b4a9fcb454dfd85a3ec035101712506aaf53ed85b650cb582f06729c5ef4e" }, "downloads": -1, "filename": "selfless-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "0c2ac3c62daca822494830b6480940e6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5826, "upload_time": "2018-03-22T20:46:45", "url": "https://files.pythonhosted.org/packages/cb/fd/d503615ec0c7f76ab3820913ed7377d82a3de567dce1b64b42d640e707bb/selfless-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dbcf100bf0134493567ae335593d651a", "sha256": "240aea6106aed4bb7bc2c922dd8aca1ec2e517fc7334e7721b769130175b2778" }, "downloads": -1, "filename": "selfless-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "dbcf100bf0134493567ae335593d651a", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 4438, "upload_time": "2018-03-22T20:44:30", "url": "https://files.pythonhosted.org/packages/31/a4/0143f49fbd6b866a0bbb105b52009b26b5237bf1026e78bfa788613fd29d/selfless-0.0.3-py3-none-any.whl" } ] }