You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/06/04 09:31:05 UTC

[incubator-opendal] branch main updated: docs improvement of Python binding (#2411)

This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 9b13ac6ae docs improvement of Python binding (#2411)
9b13ac6ae is described below

commit 9b13ac6aefa3b16433bf4624bde3f0e8daee0a8c
Author: Shang Yuanchun <id...@gmail.com>
AuthorDate: Sun Jun 4 17:31:01 2023 +0800

    docs improvement of Python binding (#2411)
    
    * docs: fix syntax error of python for oss
    
    * docs: need to import opendal in quickstart example
---
 website/docs/overview.md      | 1 +
 website/docs/services/oss.mdx | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/website/docs/overview.md b/website/docs/overview.md
index 2d4a32957..04c6277c2 100644
--- a/website/docs/overview.md
+++ b/website/docs/overview.md
@@ -50,6 +50,7 @@ async fn main() -> Result<()> {
 ### Python
 
 ```python
+import opendal
 import asyncio
 
 async def main():
diff --git a/website/docs/services/oss.mdx b/website/docs/services/oss.mdx
index 28e40daee..c97762ae9 100644
--- a/website/docs/services/oss.mdx
+++ b/website/docs/services/oss.mdx
@@ -62,7 +62,7 @@ async function main() {
 import opendal
 
 op = opendal.Operator("oss",
-    root:"/path/to/dir",
+    root="/path/to/dir",
     bucket="test",
     endpoint="https://oss-cn-beijing.aliyuncs.com",
     access_key_id="access_key_id",