Explorar o código

[docs] Example of Python API for ADLS

Romain Rigaux %!s(int64=4) %!d(string=hai) anos
pai
achega
7c8e19ec80
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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