跳转到主要内容

内在自我始终存在

项目描述

Innerself

Python Version Version License Build Status Coverage Status Code style

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

安装: pip install innerself

项目详情


下载文件

下载适合您平台文件的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分发

innerself-0.0.2.tar.gz (21.1 kB 查看哈希值)

上传时间

构建分发

innerself-0.0.2-py3-none-any.whl (5.9 kB 查看哈希值)

上传时间 Python 3

由以下机构支持