pyaota.util.text module

Utility text functions for pyaota.

pyaota.util.text.banner(printf)[source]
Return type:

None

pyaota.util.text.oxford(items, conjunction='and')[source]

Join a list of strings with commas and an Oxford comma before the conjunction.

Return type:

str

Example

oxford([‘apples’, ‘bananas’, ‘cherries’]) returns ‘apples, bananas, and cherries’