selfish


Nameselfish JSON
Version 0.3.1 PyPI version JSON
download
home_pageNone
Summaryimplicit self
upload_time2024-07-31 17:22:18
maintainerNone
docs_urlNone
authorDaniel Pepper
requires_python>=3
licenseThe MIT License (MIT) Copyright (c) 2018 Daniel Pepper Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords simplify
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            selfish
======
Making 'self' implicit, because even Java did a better job at this.


### Install
```pip install selfish```


### Usage
```python
@selfish
class Foo():
    def __init__(val): self.val = val

    def val(): return self.val

    @classmethod
    def klass(): return self


Foo(1).val()
> 1

Foo.klass()
> Foo
```

----
[![installs](https://img.shields.io/pypi/dm/selfish.svg?label=installs)](https://pypi.org/project/selfish)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "selfish",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": "simplify",
    "author": "Daniel Pepper",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/40/a2/6b6d20f13dc73b8f2c039e1687194e8c30f6263e73da3ad57a2f48f6e0c5/selfish-0.3.1.tar.gz",
    "platform": null,
    "description": "selfish\n======\nMaking 'self' implicit, because even Java did a better job at this.\n\n\n### Install\n```pip install selfish```\n\n\n### Usage\n```python\n@selfish\nclass Foo():\n    def __init__(val): self.val = val\n\n    def val(): return self.val\n\n    @classmethod\n    def klass(): return self\n\n\nFoo(1).val()\n> 1\n\nFoo.klass()\n> Foo\n```\n\n----\n[![installs](https://img.shields.io/pypi/dm/selfish.svg?label=installs)](https://pypi.org/project/selfish)\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2018 Daniel Pepper  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  ",
    "summary": "implicit self",
    "version": "0.3.1",
    "project_urls": {
        "Homepage": "https://github.com/dpep/selfish_py"
    },
    "split_keywords": [
        "simplify"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afc9646dfb53cca4d3c142a9471ac7dd2602cc9c4a22739ec7b4327b11e7ef5d",
                "md5": "9855f7c2ec7ce19e23fb09ae98e660b8",
                "sha256": "b9d594991ce27018109ae075882c6af568463d0d9727cff51a6ef98beed8d418"
            },
            "downloads": -1,
            "filename": "selfish-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9855f7c2ec7ce19e23fb09ae98e660b8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 3944,
            "upload_time": "2024-07-31T17:22:17",
            "upload_time_iso_8601": "2024-07-31T17:22:17.762414Z",
            "url": "https://files.pythonhosted.org/packages/af/c9/646dfb53cca4d3c142a9471ac7dd2602cc9c4a22739ec7b4327b11e7ef5d/selfish-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "40a26b6d20f13dc73b8f2c039e1687194e8c30f6263e73da3ad57a2f48f6e0c5",
                "md5": "3188c6b032289a4d00ff56902f9ca48c",
                "sha256": "59adc6eb5ca108b0833cc5bc4b59edcba9c33e8313c63737756d7f16d937ce0d"
            },
            "downloads": -1,
            "filename": "selfish-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3188c6b032289a4d00ff56902f9ca48c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 4482,
            "upload_time": "2024-07-31T17:22:18",
            "upload_time_iso_8601": "2024-07-31T17:22:18.764409Z",
            "url": "https://files.pythonhosted.org/packages/40/a2/6b6d20f13dc73b8f2c039e1687194e8c30f6263e73da3ad57a2f48f6e0c5/selfish-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-31 17:22:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dpep",
    "github_project": "selfish_py",
    "github_not_found": true,
    "lcname": "selfish"
}
        
Elapsed time: 0.35209s