MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / __init__

Method __init__

src/__init__.py:1955–1966  ·  view source on GitHub ↗

Archive(dirname [, path]) - from folder Archive(file [, path]) - from file name or object Archive(data, name) - from memory item Archive() - empty archive Archive(archive [, path]) - from archive

( self, *args)

Source from the content-addressed store, hash-verified

1953
1954class Archive:
1955 def __init__( self, *args):
1956 '''
1957 Archive(dirname [, path]) - from folder
1958 Archive(file [, path]) - from file name or object
1959 Archive(data, name) - from memory item
1960 Archive() - empty archive
1961 Archive(archive [, path]) - from archive
1962 '''
1963 self._subarchives = list()
1964 self.this = mupdf.fz_new_multi_archive()
1965 if args:
1966 self.add( *args)
1967
1968 def __repr__( self):
1969 return f'Archive, sub-archives: {len(self._subarchives)}'

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected