Public API

Contents

Public API#

Purpose#

partialwrap provides wrappers for Python functions and external executables so that they can easily be partialised with functools.partial.

copyright:

Copyright 2016-2024 Matthias Cuntz; see AUTHORS.rst for details.

license:

MIT License, see LICENSE for details.

Subpackages#

wrappers

Wrappers to partialize functions so that they can simply be called as func(x).

std_io

Parameter writer and output reader functions

History
  • Written Mar 2020 by Matthias Cuntz (mc (at) macu (dot) de)

  • v1.0, initial PyPI commit, Jun 2020, Matthias Cuntz

  • v1.0.1, trigger zenodo, Jun 2020, Matthias Cuntz

  • v1.1, make flake8 compliant, Dec 2020, Matthias Cuntz

  • v1.2, remove scipy.optimize from tests, Dec 2020, Matthias Cuntz

  • v1.3, allow non-numeric parameters, May 2021, Matthias Cuntz

  • v1.3.1, more general treatment of right-hand side in sub_params_names, May 2021, Matthias Cuntz

  • v1.3.2, protect saved groups in replacement pattern in std_io, May 2021, Matthias Cuntz

  • v1.3.3, deleted trailing print statement, May 2021, Matthias Cuntz

  • v1.3.4, escape backslash in params in std_io, May 2021, Matthias Cuntz

  • v1.3.5, escape backslash also in sub_params_ja, May 2021, Matthias Cuntz

  • v1.4, move to pyproject.toml setup with Github actions, Oct 2021, Matthias Cuntz

  • v1.5, Allow empty right-hand sides in files, such as name1 =, Nov 2021, Matthias Cuntz

  • v1.6, Use subprocess.run for Python > v3.6, Aug 2022, Matthias Cuntz

  • v1.7, Added error function in exe_wrapper, Aug 2022, Matthias Cuntz

  • v2.0, Major update of documentation and docstrings, Nov 2023, Matthias Cuntz