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
Metadata
Release files for innerself 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| innerself-0.0.2.tar.gz | 21.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| innerself-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.0 kB
Release files / innerself-0.0.2.tar.gz
| Download URL | innerself-0.0.2.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c62511580232c180af75680d93069544db4cfc70c6df2b0a66ac98642ab17efe
|
|
BLAKE2b-256 checksum How to use checksums |
5efcff2c50a983157962bc80551c91fdffb4002b51b630a53163d441e9950591
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / innerself-0.0.2-py3-none-any.whl
| Download URL | innerself-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66811bbb01469667fe26b1180eea8692594475be05059de2cbdadd5e9465fa00
|
|
BLAKE2b-256 checksum How to use checksums |
58a0a6ce078efff6cf31fa36e023fcb6bcbb1b6afd89cbbf4de6c4cc7187f146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|