A small Python library providing wrappers for external executables and Python functions to be used easily with Python’s functools.partial
copied from cf-staging / partialwrappartialwrap is a Python library providing easy wrapper functions to use with Python’s functools.partial. Partial's ingenious mechanism allows to use even very complex functions with many arguments and keyword arguments with routines that need functions in the simple form func(x). This includes Python's map function, the minimizers in scipy.optimize, and plenty of third-party modules such as emcee or pyeee. partialwrap allows to use any external executable as well as any Python function with arbitrary arguments and keywords to be used with functools.partial. It also allows to use the executables or functions with easy parallelization of code with, for example, the parallel map function of the multiprocessing module or via the Message Passing Interface (MPI).