Skip to content

Commit

Permalink
Variables docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Jul 4, 2017
1 parent dd8a229 commit d927343
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions uwsgiconf/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@


VERSION = '%V'
'''uWSGI version number'''

FORMAT_ESCAPE = '%['
'''ANSI escape \\033. useful for printing colors'''

FORMAT_END = '%s[0m' % FORMAT_ESCAPE

CONF_CURRENT_SECTION = '%x'
'''The current section identifier, eg. conf.ini:section.'''
CONF_CURRENT_SECTION_NTPL = '%x'

CONF_NAME_ORIGINAL = '%o'
'''The original conf filename, as specified on the command line'''
CONF_NAME_ORIGINAL_NTPL = '%O'

TIMESTAMP_STARTUP_S = '%t'
'''Unix time s, gathered at instance startup.'''
TIMESTAMP_STARTUP_MS = '%T'
'''Unix time ms, gathered at instance startup'''

DIR_VASSALS = '%v'
'''Vassals directory - pwd.'''

HOST_NAME = '%h'
CPU_CORES = '%k'
Expand Down

0 comments on commit d927343

Please sign in to comment.