Writer

class Writer[source]

Bases: ABC

A writer for authorship.

Methods Summary

iter_lines(authorship)

Iterate over lines for the authorship.

print(authorship, **kwargs)

Print the authorship.

to_lines(authorship)

Make lines for the authorship.

to_str(authorship)

Make a string from the authorship.

write(authorship, *, path)

Write the authorship to a path.

Methods Documentation

abstract iter_lines(authorship)[source]

Iterate over lines for the authorship.

Return type

Iterable[str]

print(authorship, **kwargs)[source]

Print the authorship.

Return type

None

to_lines(authorship)[source]

Make lines for the authorship.

Return type

list[str]

to_str(authorship)[source]

Make a string from the authorship.

Return type

str

write(authorship, *, path)[source]

Write the authorship to a path.

Return type

None