The inner self is ever-present
Project description
Innerself
class Zen:
@innerself
def __init__(self, the, path, to, enlightenment):
your_innerself = f'is {the} {path} {to} {enlightenment}'
@innerself(readonly=True)
def chaos(self, dont, let, the, anger, and_chaos, control, you):
return f'{you} {control} your own {path} {to} {enlightenment}'
>>> zen = Zen('the', 'path', 'to', 'enlightenment')
>>> zen.your_innerself
'is the path to enlightenment'
>>> zen.chaos("don't", 'let', 'the', 'anger', 'and chaos', 'control', 'you')
'you control your own path to enlightenment'
>>> hasattr(zen, 'enlightenment')
True
>>> hasattr(zen, 'anger')
False
To install: pip install innerself
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
innerself-0.0.2.tar.gz
(21.1 kB
view hashes)
Built Distribution
Close
Hashes for innerself-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66811bbb01469667fe26b1180eea8692594475be05059de2cbdadd5e9465fa00 |
|
MD5 | 06a981e52a3cfda21575de684632e680 |
|
BLAKE2b-256 | 58a0a6ce078efff6cf31fa36e023fcb6bcbb1b6afd89cbbf4de6c4cc7187f146 |