For the Scientific Research to test problems.
rainpy.read(file_path, *args, *kwargs)
rainpy.save(file_path, *args, *kwargs) or rainpy.write(file_path, *args, *kwargs)
rainpy -n example -a zmdsn -e [email protected]
def func(data): data['base'] = "rainpy base" return data
rainpy --run func.py --file ./test.json --save ./result.json
or
@rainpy(from="./test.json", to="./result.json") def func(data): data['base'] = "rainpy base" return data