abc-property-1.0
توضیحات
Python ABC with a simple @abstract_property decorated checked after instantiation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | abc-property-1.0 |
| نام | abc-property |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nicolas Deutschmann |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/ndeutschmann/better_abc |
| آدرس اینترنتی | https://pypi.org/project/abc-property/ |
| مجوز | MIT |
# Better Abstract Basic Classes
Python ABC with a simple @abstract_property decorated checked after instantiation
Entirely based on [this StackOverflow answer](https://stackoverflow.com/questions/23831510/abstract-attribute-not-property/50381071#50381071) by [krassowski](https://stackoverflow.com/users/6646912/krassowski).
## Example:
```
from better_abc import BetterABC,abstract_property
class AbstractClassWithAbstractAttribute(BetterABC):
@abstract_property
def prop(self):
pass
otherprop = abstract_property()
class ClassWithProperty(AbstractClassWithAbstractAttribute)
def __init__(self,propvalue=12):
self.prop = 12
self.otherprop = "a string"
```
نحوه نصب
نصب پکیج whl abc-property-1.0:
pip install abc-property-1.0.whl
نصب پکیج tar.gz abc-property-1.0:
pip install abc-property-1.0.tar.gz