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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file innerself-0.0.2.tar.gz.
File metadata
- Download URL: innerself-0.0.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62511580232c180af75680d93069544db4cfc70c6df2b0a66ac98642ab17efe
|
|
| MD5 |
77b172711bea505f9961550a4cad662f
|
|
| BLAKE2b-256 |
5efcff2c50a983157962bc80551c91fdffb4002b51b630a53163d441e9950591
|
File details
Details for the file innerself-0.0.2-py3-none-any.whl.
File metadata
- Download URL: innerself-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66811bbb01469667fe26b1180eea8692594475be05059de2cbdadd5e9465fa00
|
|
| MD5 |
06a981e52a3cfda21575de684632e680
|
|
| BLAKE2b-256 |
58a0a6ce078efff6cf31fa36e023fcb6bcbb1b6afd89cbbf4de6c4cc7187f146
|