Forum Discussion
How to read/write lakehouse files from Linux/python solution?
- 10 months ago
Hi prathijp ,
To read or write files from Lakehouse folders using Linux or Python, the best options are:
1. OneLake REST API - You can use Python (requests or httpx) to interact with OneLake endpoints for uploading, downloading, or listing files.
2. ABFS Paths - Lakehouse files are accessible via Azure Blob File System (ABFS). You can use Azure CLI or Python SDK (azure-storage-file-datalake) to connect and manage files from Linux environments.
3. Mounting via ADLS
Gen2-compatible tools - If your VM supports it, you can mount OneLake as a filesystem ateract with it like local storage(only on windows).
Thanks,
Sai Teja
Hi. If you don't want to use Fabric web portal to work with the lakehouse, you can connect because it's an open format. Take a look at this doc and the others that continue for getting started: https://learn.microsoft.com/en-us/fabric/onelake/onelake-access-api
I hope that helps,