@self decorator makes method return self (jQuery-like chaining)
Project description
Install
$ [sudo] pip install self
Functions
function | description |
---|---|
self.self(method, self, *args, **kwargs) |
@self method decorator to return self object |
Examples
>>> from self import self
>>> class CLS:
@self
def method(self):
...
@self
def method2(self):
...
>>> CLS().method().method2() # jQuery like chain
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
self-2018.11.20.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for self-2018.11.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b5b1d6adede5d872822a712403deaa171c63f9fd32d66f7e1d0506071e9932 |
|
MD5 | bc0407d3fc803b41f59c3aaba2a9fcaa |
|
BLAKE2b-256 | 9e5ae868144ed05fa0536f3197d2971e75bad6263af4163d3d34df5984b3e564 |