You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "fatelei (via GitHub)" <gi...@apache.org> on 2026/01/07 09:56:56 UTC

[PR] feat: python bindings support writer to allow real stream [opendal]

fatelei opened a new pull request, #7139:
URL: https://github.com/apache/opendal/pull/7139

   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   Closes #7138
   
   # Rationale for this change
   
   <!--
   Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
   Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
   -->
   
   python bindings support writer to allow real stream
   
   <!--
   There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
   -->
   
   # Are there any user-facing changes?
   
   
   <!--
   If there are user-facing changes then we may require documentation to be updated before approving the PR.
   -->
   
   <!---
   If there are any breaking changes to public APIs, please add the `breaking-changes` label.
   -->
   
   # AI Usage Statement
   
   <!--
   If you are using AI tools to build this PR, please include a statement specifying the tool and models you are using.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: python bindings support writer to allow real stream [opendal]

Posted by "fatelei (via GitHub)" <gi...@apache.org>.
fatelei closed pull request #7139: feat: python bindings support writer to allow real stream
URL: https://github.com/apache/opendal/pull/7139


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: python bindings support writer to allow real stream [opendal]

Posted by "fatelei (via GitHub)" <gi...@apache.org>.
fatelei commented on code in PR #7139:
URL: https://github.com/apache/opendal/pull/7139#discussion_r2670990311


##########
bindings/python/python/opendal/__init__.py:
##########
@@ -31,12 +32,13 @@
 __version__: builtins.str
 
 __all__ = [
+    "AsyncOperator",
+    "Operator",
     "capability",
     "exceptions",
     "file",
     "layers",
+    "operator",
     "services",
     "types",
-    "AsyncOperator",

Review Comment:
   <img width="1632" height="626" alt="image" src="https://github.com/user-attachments/assets/568973eb-9497-4680-8bed-06f92358c8c6" />
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: python bindings support writer to allow real stream [opendal]

Posted by "chitralverma (via GitHub)" <gi...@apache.org>.
chitralverma commented on code in PR #7139:
URL: https://github.com/apache/opendal/pull/7139#discussion_r2670951321


##########
bindings/python/python/opendal/__init__.py:
##########
@@ -31,12 +32,13 @@
 __version__: builtins.str
 
 __all__ = [
+    "AsyncOperator",
+    "Operator",
     "capability",
     "exceptions",
     "file",
     "layers",
+    "operator",
     "services",
     "types",
-    "AsyncOperator",

Review Comment:
   I think these are formatting changes, can you try running the following in the project root ?
   
   ```
   just fmt
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat: python bindings support writer to allow real stream [opendal]

Posted by "chitralverma (via GitHub)" <gi...@apache.org>.
chitralverma commented on PR #7139:
URL: https://github.com/apache/opendal/pull/7139#issuecomment-3722093400

   @fatelei from the first looks of it, this PR doesn't seem to add any new functionality/ capability.
   
   you can already do things with,
   
   ```py
   op: Operator = ...
   content: bytes: = ...
   
   with op.open("path", mode = "wb", <other writer options>) as f:
     f.write(content)
   ```
   
   works in a similar manner with `AsyncOperator` as well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org