Function (version 0.0.1)
index
Function.html

This package implements tools to build python package and tools.
 
>>> from Function import *
>>> @def_Function
def print_char(char): print(char)
...
>>> _ = print_char << "abc"
a
b
c
>>> print_char('a')
a
>>> print_char = Function(print)
>>> _ = print_char << "abc"
a
b
c
>>> print_char('a')
a
>>>

 
Classes
       
collections.abc.Callable(builtins.object)
Function

 
class Function(collections.abc.Callable)
    Function(function: collections.abc.Callable)
 
This class implements features for basic function.
 
 
Method resolution order:
Function
collections.abc.Callable
builtins.object

Methods defined here:
__call__(self, *args, **kwargs) -> Any
Call self as a function.
__init__(self, function: collections.abc.Callable)
Initialize self.  See help(type(self)) for accurate signature.
__lshift__(self, other: Iterator) -> List[Any]
This function implements '<Function> << <Iterator>'.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
__abstractmethods__ = frozenset()

Class methods inherited from collections.abc.Callable:
__class_getitem__ = _CallableGenericAlias(args) from abc.ABCMeta
Represent `Callable[argtypes, resulttype]`.
 
This sets ``__args__`` to a tuple containing the flattened ``argtypes``
followed by ``resulttype``.
 
Example: ``Callable[[int, str], float]`` sets ``__args__`` to
``(int, str, float)``.
__subclasshook__(C) from abc.ABCMeta
Abstract classes can override this to customize issubclass().
 
This is invoked early on by abc.ABCMeta.__subclasscheck__().
It should return True, False or NotImplemented.  If it returns
NotImplemented, the normal algorithm is used.  Otherwise, it
overrides the normal algorithm (and the outcome is cached).

 
Functions
       
def_Function(function: collections.abc.Callable) -> collections.abc.Callable
This decorator transform basic function in Function.

 
Data
        __all__ = ['def_Function', 'Function']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nPythonToolsKit Copyright (C) 2022 Maurice Lam...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis package implements tools to build python package and tools.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/PythonToolsKit'

 
Author
        Maurice Lambert