import seedcase_sprout as sp
with sp.ExamplePackage():
sp.create_resource_properties_script("my-resource")PosixPath('/tmp/tmp9akjq3vr/example-package/scripts/resource_properties_my_resource.py')
Create a script using the resource properties template.
You can include the resource name and the fields’ name and type information. If the script already exists, it will not be overwritten.
resource_name : str | None = NoneThe name of the new resource. Defaults to None.
fields : list[FieldProperties] | None = NoneThe fields (columns) of the new resource. Defaults to None.
path : Path | None = NoneThe path to the package folder. Defaults to the current working directory.
PathThe path to the newly created script file.
ValueErrorIf the resource name is not correct (e.g., contains spaces).