age.utils package

Submodules

age.utils.asciiarmor module

class age.utils.asciiarmor.AsciiArmoredInput(label, stream)

Bases: io.RawIOBase

Parameters
read(size=- 1)
readable()

Return whether object was opened for reading.

If False, read() will raise OSError.

class age.utils.asciiarmor.AsciiArmoredOutput(label, stream)

Bases: io.RawIOBase

Parameters
close()

Flush and close the IO object.

This method has no effect if the file is already closed.

writable()

Return whether object was opened for writing.

If False, write() will raise OSError.

write(data)
age.utils.asciiarmor.read_ascii_armored(file, strict_line_length=True)
Parameters
Return type

Iterator[Tuple[str, bytes]]

age.utils.asciiarmor.write_ascii_armored(file, label, data)
Parameters
Return type

None

age.utils.copy_doc module

age.utils.copy_doc.copy_doc(original_function)

Decorator to copy docstring from original_function to decorated function

age.utils.env module

age.utils.env.is_sphinx()

Module contents