BaseResourceHandle¶
- class lsst.resources._resourceHandles._baseResourceHandle.BaseResourceHandle(mode: str, log: logging.Logger, uri: ResourcePath, *, newline: AnyStr | None = None)¶
Bases:
ABC
,ResourceHandleProtocol
[U
]Base class interface for the handle like interface of
ResourcePath
subclasses.- Parameters:
- mode
str
Handle modes as described in the python
io
module.- log
Logger
Logger to used when writing messages.
- uri
lsst.resources.ResourcePath
The URI of the resource being opened.
- newline
str
When doing multiline operations, break the stream on given character Defaults to newline.
- mode
Notes
Documentation on the methods of this class line should refer to the corresponding methods in the
io
module.Attributes Summary
Methods Summary
close
()fileno
()flush
()read
([size])readable
()readline
([size])readlines
([hint])seek
(offset[, whence])seekable
()tell
()truncate
([size])writable
()write
(b, /)writelines
(lines, /)Attributes Documentation
- closed¶
- isatty¶
- mode¶
- name¶
Methods Documentation