daklib.filewriter
Helper code for file writing with optional compression.
@contact: Debian FTPMaster <ftpmaster@debian.org>
@copyright: 2011 Torsten Werner <twerner@debian.org>
@license: GNU General Public License version 2 or later
Classes
-
class daklib.filewriter.BaseFileWriter(template, **keywords)[source]
Base class for compressed and uncompressed file writing.
-
close() → None[source]
Closes the file object and does the compression and rename work.
-
compress(cmd, suffix, path) → None[source]
-
open() → TextIO[source]
Returns a file object for writing.
-
rename(filename: str) → None[source]
-
class daklib.filewriter.BinaryContentsFileWriter(**keywords)[source]
-
class daklib.filewriter.CompressionMethod(keyword: str, extension: str, command: Optional[list[str]])[source]
-
command: Optional[list[str]]
-
extension: str
-
keyword: str
-
class daklib.filewriter.PackagesFileWriter(**keywords)[source]
-
class daklib.filewriter.SourceContentsFileWriter(**keywords)[source]
-
class daklib.filewriter.SourcesFileWriter(**keywords)[source]
-
class daklib.filewriter.TranslationFileWriter(**keywords)[source]