Skip to content

Extending

Bundles can extend other bundles to build on previous versions.

From Chain

import bundlebase as bb

# Load committed bundle
base = await bb.open("/base/container")

# Extend to new directory with new modifications
extended = await base.extend("/extended/container")
await extended.attach("new_data.parquet")
import bundlebase.sync as bb

base = bb.open("/base/container")

extended = base.extend("/extended/container")
extended.attach("new_data.parquet")

Exporting

Export the entire bundle as a tar archive.

await c.export_tar("/path/to/output.tar")
c.export_tar("/path/to/output.tar")