Python: module fileobj

fileobj | index /tmp/makerelease-pwman-python.dxpe53Tq/pwman-python-2.12/libpwman/fileobj.py

# Simple object file format.
# Copyright (c) 2011-2024 Michael Büsch <m@bues.ch>
# Licensed under the GNU/GPL version 2 or later.

Modules
errno |  |  |

Classes
|  | builtins.Exception(builtins.BaseException) FileObjError builtins.object FileObj FileObjCollection
class FileObj(builtins.object)
| FileObj(name, data)
| Methods defined here: __init__(self, name, data) Construct FileObj(). name: The object name. Must be bytes-like. data: The object payload. Must be bytes-like. getData(self) getName(self) getRaw(self, buffer) Class methods defined here: parseRaw(raw)
class FileObjCollection(builtins.object)
| FileObjCollection(objects)
| Methods defined here: __init__(self, objects) Initialize self. See help(type(self)) for accurate signature. get(self, name, error=None, default=None) getRaw(self) writeFile(self, filepath) Class methods defined here: parseFile(filepath) parseRaw(raw) Readonly properties defined here: objects
class FileObjError(builtins.Exception)
|  | Method resolution order: FileObjError builtins.Exception builtins.BaseException builtins.object Data descriptors defined here: __weakref__ list of weak references to the object Methods inherited from builtins.Exception: __init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. Static methods inherited from builtins.Exception: __new__(*args, **kwargs) class method of builtins.Exception Create and return a new object. See help(type) for accurate signature. Methods inherited from builtins.BaseException: __getattribute__(self, name, /) Return getattr(self, name). __reduce__(...) Helper for pickle. __repr__(self, /) Return repr(self). __setstate__(...) __str__(self, /) Return str(self). add_note(...) Exception.add_note(note) -- add a note to the exception with_traceback(...) Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self. Data descriptors inherited from builtins.BaseException: __cause__ exception cause __context__ exception context __dict__ __suppress_context__ __traceback__ args

Data
|  | __all__ = ['FileObjError', 'FileObj', 'FileObjCollection']