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)
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/self.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2015-09-20T06:30:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:24:22.000Z (over 4 years ago)
- Last Synced: 2025-04-06T11:47:30.432Z (about 2 months ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://pypi.org/project/self/)
[](https://unlicense.org/)
[](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
```