classproperties-0.2.0
توضیحات
property for class methods
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | classproperties-0.2.0 |
| نام | classproperties |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Pepper |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/dpep/pyclassproperties |
| آدرس اینترنتی | https://pypi.org/project/classproperties/ |
| مجوز | MIT |
classproperty
======
#### Install
```pip install classproperties```
#### Usage
```
from classproperties import classproperty
class Foo:
@classproperty
def prop():
return 'hi there'
@classproperty
def other(cls):
return 'also works'
Foo.prop
Foo.other
```
نحوه نصب
نصب پکیج whl classproperties-0.2.0:
pip install classproperties-0.2.0.whl
نصب پکیج tar.gz classproperties-0.2.0:
pip install classproperties-0.2.0.tar.gz