Module rpps.file

Wrapper for processing files

Classes

class file
Expand source code
class file:
    fmt = Format()

    @staticmethod
    def get_format():
        return file.fmt

    @staticmethod
    def read(meta: Meta, path: str, bins: int, offset: int = 0, skip=1, max_ittr=-1):
        file.fmt = Formats[meta.fmt]()
        for sym in file.fmt.read(meta, path, bins, offset, skip, max_ittr):
            yield sym

Class variables

var fmt

Static methods

def get_format()
def read(meta: Meta, path: str, bins: int, offset: int = 0, skip=1, max_ittr=-1)