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 JSONL (newline-delimited JSON) are all supported. Attaching multiple files unions them together, even across formats. A .json file is read as newline-delimited too -- for JSON arrays or nested API responses, use a connector. 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 -- attaching, filtering, joins, indexes, and more
- API Reference -- API reference