Skip to main content

Examples

Runnable scripts live under bindings/python/examples/:

ScriptTopic
quickstart.pySync connect → mkdir → write → read → delete
async_demo.pyAsyncGoosefs + asyncio.gather fan-out
streaming.pyChunked read/write, seek, read_at
positioned_read.pyHigh-level positioned_read + low-level AsyncWorkerClient
batch_status.pybatch_get_status / batch_exists / list_status_grouped
batch_files.pybatch_create_file / batch_open_file / batch_rename / batch_delete
with_pyarrow.pyArrow Table → Parquet → GooseFS round-trip
pandas_csv.pypandas DataFrame ↔ CSV round-trip
page_cache.pyClient local page cache via open_file
diagnose_pread.pyDebug: trace the Python read_at path (RUST_LOG=goosefs_sdk=debug)
export GOOSEFS_MASTER_ADDR=127.0.0.1:9200
pip install 'goosefs[examples]'

cd bindings/python
python examples/quickstart.py
python examples/batch_status.py
python examples/batch_files.py
python examples/positioned_read.py