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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org