An open API service indexing awesome lists of open source software.

https://github.com/andrewpetrochenkov/self.py

@self decorator makes method return self (jQuery-like chaining)
https://github.com/andrewpetrochenkov/self.py

python

Last synced: about 2 months ago
JSON representation

@self decorator makes method return self (jQuery-like chaining)

Awesome Lists containing this project

README

        

[![](https://img.shields.io/pypi/v/self.svg?maxAge=3600)](https://pypi.org/project/self/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/self.py/workflows/tests42/badge.svg)](https://github.com/andrewp-as-is/self.py/actions)

### Installation
```bash
$ [sudo] pip install self
```

#### Examples
```python
>>> from self import self

>>> class CLS:
@self
def method(self):
...

@self
def method2(self):
...

>>> CLS().method().method2() # jQuery like chain
```


readme42.com