You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/15 07:36:24 UTC

[GitHub] [arrow] jorisvandenbossche commented on a diff in pull request #13595: ARROW-16093: [Python] Address docstrings in Filesystems (Python Implementations)

jorisvandenbossche commented on code in PR #13595:
URL: https://github.com/apache/arrow/pull/13595#discussion_r921896331


##########
python/pyarrow/_fs.pyx:
##########
@@ -1027,6 +1027,23 @@ cdef class PyFileSystem(FileSystem):
     ----------
     handler : FileSystemHandler
         The handler object implementing custom filesystem behavior.
+
+    Examples
+    --------
+    Create an fsspec-based filesystem object for GitHub:
+
+    >>> from fsspec.implementations import github
+    >>> gfs = github.GithubFileSystem('apache', 'arrow')
+
+    Get a PyArrow FileSystem object:
+
+    >>> from pyarrow.fs import PyFileSystem, FSSpecHandler
+    >>> pa_fs = PyFileSystem(FSSpecHandler(gfs))
+
+    Use :func:`~pyarrow.fs.FileSystem` functionality `get_file_info()`:

Review Comment:
   ```suggestion
       Use :func:`~pyarrow.fs.FileSystem` functionality ``get_file_info()``:
   ```



-- 
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: github-unsubscribe@arrow.apache.org

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