ExamplePackage

Warning

🚧 Sprout is still in active development and evolving quickly, so the documentation and functionality may not work as described and could undergo substantial changes 🚧

ExamplePackage(
    self,
    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()