class_docstr: A BytesIO-like object, backed by a Python file object.
  
  .. deprecated:: 1.4.0
     FilePath is supplanted by open's new opener keyword argument,
     and will be removed in 2.0.0.
docstr: Create a new wrapper around the provided file-like object.
  
  Parameters
  ----------
  filelike_obj : file-like object
      Open file-like object. Currently only reading is supported.
  filename : str, optional
      An optional filename. A unique one will otherwise be generated.
  
  Returns
  -------
  PythonVSIFile
docstr_tok: ["Create","a","new","wrapper","around","the","provided","file-like","object",".","Parameters","--","--","--","--","--","filelike_obj",":","file-like","object","Open","file-like","object",".","Currently","only","reading","is","supported",".","filename",":","str",",","optional","An","optional","filename",".","A","unique","one","will","otherwise","be","generated",".","Returns","--","--","--","-","PythonVSIFile"]
code: def __init__(self, filelike_obj, dirname=None, filename=None):
      """Create a new wrapper around the provided file-like object.
  
      Parameters
      ----------
      filelike_obj : file-like object
          Open file-like object. Currently only reading is supported.
      filename : str, optional
          An optional filename. A unique one will otherwise be generated.
  
      Returns
      -------
      PythonVSIFile
      """
      warnings.warn(
          "FilePath is supplanted by open's new opener keyword argument, and will be removed in 2.0.0.",
          RasterioDeprecationWarning,
      )
      super().__init__(filelike_obj, dirname=dirname, filename=filename)
  
imports: import logging
  import warnings
  from rasterio._base import get_dataset_driver, driver_can_create, driver_can_create_copy
  from rasterio._io import DatasetReaderBase, DatasetWriterBase, BufferedDatasetWriterBase, MemoryFileBase
  from rasterio.windows import WindowMethodsMixin
  from rasterio.env import ensure_env
  from rasterio.errors import RasterioDeprecationWarning
  from rasterio.transform import TransformMethodsMixin
  from rasterio._path import _UnparsedPath
label_desc: Use image node_id 1 to create a new _FilePath object from inherited base classes: FilePathBase with example: obj = _FilePath(filelike_obj, dirname, filename)