pyiron_base
pyiron_base copied to clipboard
Add support for functions without arguments
Example:
import subprocess
from pyiron_base import Project
def get_python_version():
return subprocess.check_output("python --version", shell=True, universal_newlines=True)
pr = Project("test")
python_version = pr.wrap_python_function(
python_function=get_python_version,
delayed=True,
)
python_version.pull()
>>> 'Python 3.12.5\n'