Metadata-Version: 2.1
Name: caller
Version: 0.0.2
Summary: Set a Python property using a function call
Home-page: https://github.com/vtitor/caller
Author: Victor Titor
Author-email: vtitor.edumix@gmail.com
License: UNKNOWN
Description: # caller
        
        [![Build Status](https://travis-ci.org/vtitor/caller.svg?branch=master)](https://travis-ci.org/vtitor/caller)
        [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
        
        Caller is a little library for calling a property as a regular function.
        
        Installation
        ------------
        
        Install using pip:
        
            $ pip install caller
        
        Usage
        -----
        
        ```python
        from caller import property
        
        class Foo(object):
            def __init__(self, bar):
                self._bar = bar
        
            @property
            def bar(self):
                return self._bar
        
            @bar.setter
            def bar(self, new_bar):
                self._bar = new_bar
        
        foo = Foo('bar')
        foo.bar('new bar')
        
        print(foo.bar)
        ```
        
        Prints
        
        ```
        new bar
        ```
        
        Or with a separate caller
        
        ```python
        class Foo(object):
            ...
            @bar.caller
            def bar(self, new_bar):
                self._bar = new_bar[::-1]
                print(self._bar)
        
        Foo('bar').bar('new bar')
        ```
        
        Prints
        
        ```
        rab wen
        ```
        
        That's all.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Provides-Extra: dev
