소스 검색

[docs] Example of Python API for ADLS

Romain Rigaux 4 년 전
부모
커밋
7c8e19ec80
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      docs/docs-site/content/developer/api/python/_index.md

+ 8 - 0
docs/docs-site/content/developer/api/python/_index.md

@@ -39,6 +39,14 @@ Or perform various FS operations:
     s3fs.listdir_stats('s3a://gethue/user/gethue')
     s3fs.mkdir('s3a://gethue/user/gethue/demo')
 
+### ADLS
+
+    from desktop.lib.fsmanager import get_client
+
+    fs = get_client('default', 'abfs', 'romain')
+
+    fs.stats('https://gethue.blob.core.windows.net/data')
+
 ## Server
 
 ### Making a user admin