| Name | classist JSON |
| Version |
0.0.1
JSON |
| download |
| home_page | https://github.com/sirno/classist |
| Summary | Pretty classist signature inheritance with decoration |
| upload_time | 2024-08-08 14:10:41 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | None |
| license | MIT |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# Classist
Pretty classist signature inheritance with decorators.
## Features
This is just a basic proof of concept. Currently, only very basic runtime
signature inheritance is implemented. It may be possible to generate stubs to
support static type checking.
## Usage
```python
import classist
import inspect
class A:
def __init__(self, a: int):
self.a = a
@classist.decorate
class B:
def __init__(self, t: int, *args):
self.b = b
super().__init__(*args)
print(inspect.signature(B.__init__))
```
## Installation
```bash
pip install classist
```
MIT License
Copyright (c) 2024 Nicolas Ochsner
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/sirno/classist",
"name": "classist",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4f/3c/23ccd351a93578d7959b031b45d2fc3f2e18ed5581b250ed29546e0343c5/classist-0.0.1.tar.gz",
"platform": null,
"description": "# Classist\n\nPretty classist signature inheritance with decorators.\n\n## Features\n\nThis is just a basic proof of concept. Currently, only very basic runtime\nsignature inheritance is implemented. It may be possible to generate stubs to\nsupport static type checking.\n\n## Usage\n\n```python\nimport classist\nimport inspect\n\nclass A:\n def __init__(self, a: int):\n self.a = a\n\n@classist.decorate\nclass B:\n def __init__(self, t: int, *args):\n self.b = b\n super().__init__(*args)\n\nprint(inspect.signature(B.__init__))\n```\n\n## Installation\n\n```bash\npip install classist\n```\n\nMIT License\n\nCopyright (c) 2024 Nicolas Ochsner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Pretty classist signature inheritance with decoration",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/sirno/classist"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "44a92610f2af0d2b7a9a143ed0482e73f45d8cdeb7e9b8dfdc9d8e44bfc74789",
"md5": "3717286d7ff38fa0295506b976bc6c5f",
"sha256": "7383659ff6434e382c75fc784902d671170edf099bd6f4f0079a1d1ff7a5ff9b"
},
"downloads": -1,
"filename": "classist-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3717286d7ff38fa0295506b976bc6c5f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3453,
"upload_time": "2024-08-08T14:10:40",
"upload_time_iso_8601": "2024-08-08T14:10:40.039654Z",
"url": "https://files.pythonhosted.org/packages/44/a9/2610f2af0d2b7a9a143ed0482e73f45d8cdeb7e9b8dfdc9d8e44bfc74789/classist-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4f3c23ccd351a93578d7959b031b45d2fc3f2e18ed5581b250ed29546e0343c5",
"md5": "e3fff242a64630a7842d5d3492348331",
"sha256": "9b1859c12eadb2039fddf17040d999678967643459233d2fd4e06b61dd32207c"
},
"downloads": -1,
"filename": "classist-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "e3fff242a64630a7842d5d3492348331",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2696,
"upload_time": "2024-08-08T14:10:41",
"upload_time_iso_8601": "2024-08-08T14:10:41.603715Z",
"url": "https://files.pythonhosted.org/packages/4f/3c/23ccd351a93578d7959b031b45d2fc3f2e18ed5581b250ed29546e0343c5/classist-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-08 14:10:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sirno",
"github_project": "classist",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "classist"
}