Skip to main content

The inner self is ever-present

Project description

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

To install: pip install innerself

Project details


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)

Uploaded Source

Built Distribution

innerself-0.0.2-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page