Metadata-Version: 1.1
Name: CustomOperators
Version: 0.4
Summary: Custom operator implementation in Python
Home-page: https://github.com/qkrisi/python-custom-operators
Author: Qkrisi
Author-email: qruczkristof@gmail.com
License: MIT
Download-URL: https://github.com/qkrisi/python-custom-operators/archive/v_0_4.tar.gz
Description: CustomOperators
        ===============
        
        This module allows you to use operators specified by you.
        
        Setup
        -----
        
        To install the module, run: ``sudo pip3 install CustomOperators``
        
        Usage
        -----
        
        To import the module, use
        
        .. code:: py
        
            import CustomOperators
        
        To create an operator, use the ``CustomOperators.Operator`` decorator
        
        Examples:
        
        **2 operands:**
        
        .. code:: py
        
            import CustomOperators
        
            @CustomOperators.Operator("§")
            def Power(left, right):
                return left**right
        
        **1 operand:**
        
        .. code:: py
        
            import customOperators
        
            @CustomOperators.Operator("!")
            def Negate(base):
                return not base
        
        To run a script that uses the new operators, import it with
        ``CustomOperators.ImportModule``
        
        Example:
        
        .. code:: py
        
            #Module.py
        
            def run():
                print(4§5)
        
        .. code:: py
        
            #__main__.py
        
            import CustomOperators
        
            @CustomOperators.Operator("§")
            def Power(left, right):
                return left**right
        
            CustomOperators.ImportModule("Module")
            Module.run()    #Output: 1024
        
        **For more information about usage (operator overloading, operator
        rules), check out the** `wiki
        page <https://github.com/Qkrisi/python-custom-operators/wiki>`__
        
Keywords: Operator
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
