Powered by Tachyonic Project Luxon Framework v0.0.0

Luxon Framework for rapid application development. (luxon)

Version

Text Utilities

Filter none text

luxon.utils.text.filter_none_text(string)[source]

Parse String and filter Binary

If Bytes does not contain string then return ‘BINARY’ else original string will be returned.

Parameters:string (bytes) – Bytes String
Returns:“BINARY” if the argument contained binary

Blank to none

luxon.utils.text.blank_to_none(value, default=None)[source]

Converts an empty string or byte object to None

If value is an empty string or an empty byte array None is returned else value is returned

Parameters:value (str/bytes) – object to be converted

Try Lower

luxon.utils.text.try_lower(string)[source]

Converts string to lower case

Parameters:string (str) – ascii string
Returns:converted string

Indent

luxon.utils.text.indent(text, indent)[source]

Indent Text.

Parameters:
  • text (str) – body of text
  • indent (str) – characters with which to indent
Returns:

text indeneted with given characters

Unquote String

luxon.utils.text.unquote_string(quoted)[source]

Unquote an “quoted-string”.

Parameters:quoted (str) – Original quoted string
Returns:Unquoted string