also-0.0.2
توضیحات
UNKNOWN
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | also-0.0.2 |
| نام | also |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Huan Do |
| ایمیل نویسنده | doboy0@gmail.com |
| آدرس صفحه اصلی | https://github.com/Doboy/Also |
| آدرس اینترنتی | https://pypi.org/project/also/ |
| مجوز | UNKNOWN |
## Also
Ever had lots of methods that do the same thing?!
You want to set them to the same thing but dont want to do something lame like
```python
def method(self):
pass
othermethod = method
```
Rather you want to do it with style like
```python
@also('othermethod')
def method(self):
pass
```
Then do I have a solution for you!
## Installation
```
pip install also
```
## Usage
```python
from also import also, AlsoMetaClass
class Foo:
__metaclass__ = AlsoMetaClass
@also('getThing')
@also('get_thing')
def getthing(self):
return 'go bears'
foo = Foo()
assert (foo.getthing() == foo.get_thing() ==
foo.getThing() == 'go bears')
```
نحوه نصب
نصب پکیج whl also-0.0.2:
pip install also-0.0.2.whl
نصب پکیج tar.gz also-0.0.2:
pip install also-0.0.2.tar.gz