Python Quick Start¶
Choose your API style¶
Bundlebase has two Python API styles:
- Sync (
bundlebase.sync) — for scripts and Jupyter notebooks. Noawaitneeded. - Async (
bundlebase) — for concurrent operations and production code.
Create a bundle¶
The path can be a local filepath or a remote URL (S3, Azure, GCS):
Attach data¶
Parquet, CSV, and JSON are all supported. Attaching multiple files unions them together, even across formats. Paths can be relative to the bundle or absolute URLs.
Note
CSV columns are imported as text. Use cast_column() to convert to integer, float, etc. See Column Types for details.
Transform¶
Commit¶
Query with SQL¶
Full Apache DataFusion SQL syntax:
Export¶
Method chaining¶
All mutation methods return self:
Next steps¶
- Basic Concepts — bundles, operations, and versioning
- User Guide — deep dive into advanced topics
- API Reference — complete API documentation