const.py

Simple names for commonly used constants to avoid the excessive use of magic strings.

const.AMPERSAND = '&'
const.APPEND = 'a'
const.AT = '@'
const.BACKSLASH = '\\'
const.BACKTICK = '`'
const.CARET = '^'
const.COLON = ':'
const.COMMA = ','
const.DASH = '-'
const.DASHES = '--'

Two characters, but so commonly used in argument parsing, it seems worth its own constant

const.DOLLAR = '\\$'
const.DOT = '.'
const.EMPTY = ''
const.EQUALS = '='
const.GT = '>'
const.HASH = '#'
const.LANGLET = '<'

For use describing XML-based markup instead of LT or the hideously polysyllabic “ANGLE-BRACKET”

const.LBRACE = '{'

Don’t say “CURLY-BRACKET,” please.

const.LBRACKET = '['

Don’t say “SQUARE-BRACKET,” please.

const.LPAREN = '('
const.LT = '<'
const.NEWLINE = '\n'
const.OK = 'OK'
const.PERCENT = '%'
const.PLUS = '+'
const.QMARK = '?'
const.QUOTE = '"'
const.RANGLET = '>'

For use describing XML-based markup instead of GT or the hideously polysyllabic “ANGLE-BRACKET”

const.RBRACE = '}'

Don’t say “CURLY-BRACKET,” please.

const.RBRACKET = ']'

Don’t say “SQUARE-BRACKET,” please.

const.READ = 'r'
const.RPAREN = ')'
const.SEMICOLON = ';'
const.SHOUT = '!'
const.SLASH = '/'
const.SPACE = ' '
const.STAR = '*'
const.TAB = '\t'
const.TICK = "'"

(Single-quote character)

const.TILDE = '~'
const.UNDERBAR = '_'
const.VBAR = '|'
const.WRITE = 'w'