ExamplePackage

ExamplePackage(
    package_name: str = str(example_package_properties().name),
    with_resources: bool = True,
)

Create a temporary data package with optional resources for demoing or testing.

Examples

import seedcase_sprout as sp
with sp.ExamplePackage() as package_path:
    properties = sp.read_properties(package_path.properties())

with sp.ExamplePackage(with_resources=False):
    properties = sp.read_properties()

with sp.ExamplePackage(package_name="my-package"):
    properties = sp.read_properties()