@self decorator makes method return self (jQuery-like chaining)
Project description
Installation
$ [sudo] pip install self
Functions
function | __doc__ |
---|---|
self.self(method, *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
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-2019.3.22.tar.gz
(1.4 kB
view hashes)
Built Distribution
self-2019.3.22-py2.py3-none-any.whl
(154.9 kB
view hashes)
Close
Hashes for self-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eafd0bf088aaf4d4f6a183b7256be36a853b480a52f0811833d22e40a8abc454 |
|
MD5 | 250abae63f3621974f812717c0a56336 |
|
BLAKE2b-256 | 081739ec654d9dd297a0fe9257ca6a5ab5049fe7b06f6544e0bce39f6e988961 |