Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Str For NameStore Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Str NameLoad If UnaryOpNot NameLoad body If CompareEq NameLoad Str body AugAssignAdd NameStore Str Assign NameStore NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num Str body If CompareNotEq NameLoad Str body AugAssignAdd NameStore Str Assign NameStore Str AugAssignAdd NameStore BinOpMod Str SubscriptLoad NameLoad Slice Num orelse If CompareEq NameLoad Str body AugAssignAdd NameStore Str Assign NameStore NameLoad AugAssignAdd NameStore BinOpMod Str NameLoad If CompareEq NameLoad Str body AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Yield Call NameLoad ListComp TupleLoad NameLoad Call NameLoad NameLoad Str comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr attr Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd CompareNotIn Str NameLoad CompareNotIn Str NameLoad CompareEq AttributeLoad NameLoad attr Num body Return Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIsNot Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore BinOpAdd NameLoad Str
N/A N/A Package of utilities for use by Tango sites external to core Tango framework. N/A csv N/A re datetime date time mktime strptime N/A first_cap_re N/A N/A re compile (.)([A-Z][a-z]+) N/A all_cap_re N/A N/A re compile ([a-z0-9])([A-Z]) simple_text_to_html N/A N/A content N/A N/A N/A 
    Puts <p> around lines of text, creates <ul> / <li> for lines that begin
    with *

    >>> text = "Simple line of text."
    >>> print(simple_text_to_html(text))
    <p>Simple line of text.</p>
    <BLANKLINE>
    >>>

    >>> text = '''Simple line of text.
    ...
    ... And another line.'''
    >>> print(simple_text_to_html(text))
    <p>Simple line of text.</p>
    <p>And another line.</p>
    <BLANKLINE>
    >>>

    >>> text = '''Simple line of text followed by a list:
    ...
    ... * with an item
    ... * and another item'''
    >>> print(simple_text_to_html(text))
    <p>Simple line of text followed by a list:</p>
    <ul>
    <li>with an item</li>
    <li>and another item</li>
    </ul>
    <BLANKLINE>
    >>>

    >>> text = '''
    ...
    ...
    ...
    ...
    ... '''
    >>> print(simple_text_to_html(text))
    <BLANKLINE>
    >>>

    >>> text = '''A paragraph followed by a list:
    ... * item A
    ... * item B
    ... Followed by another paragraph and then two lists:
    ... * item alpha
    ... * item beta
    ...
    ... * item gamma
    ... * item delta'''
    >>> print(simple_text_to_html(text))
    <p>A paragraph followed by a list:</p>
    <ul>
    <li>item A</li>
    <li>item B</li>
    </ul>
    <p>Followed by another paragraph and then two lists:</p>
    <ul>
    <li>item alpha</li>
    <li>item beta</li>
    </ul>
    <ul>
    <li>item gamma</li>
    <li>item delta</li>
    </ul>
    <BLANKLINE>
    >>>
     N/A current_tag None N/A output N/A line N/A N/A content split N/A N/A N/A N/A re sub ^\s line N/A N/A line N/A N/A N/A current_tag ul N/A N/A output </ul>
 N/A current_tag None N/A N/A N/A N/A line N/A 0 * N/A N/A N/A current_tag ul N/A N/A output <ul>
 N/A current_tag ul N/A output N/A <li>%s</li>
 N/A line N/A 2 N/A N/A N/A current_tag ul N/A N/A output </ul>
 N/A current_tag None N/A output N/A <p>%s</p>
 line N/A N/A current_tag ul N/A N/A output </ul>
 N/A output N/A UnicodeDictReader N/A N/A utf8_data N/A kwargs N/A N/A A (mostly) UTF8-safe wrapper for csv.DictReader.

    This function does not encode the header row, and there's likely a less
    fragile way to skin the proverbial cat. See: http://bit.ly/gR6qnN

    >>> contents = [i for i in UnicodeDictReader(open(csv_test_file, 'rU'))]
    >>> contents[0]['colA']
    u'row1A'
    >>> contents[0]['colB']
    u'row1B'
    >>> contents[1]['colA']
    u'row2A'
    >>> contents[1]['colB']
    u'row2B'

     N/A reader N/A N/A csv DictReader utf8_data kwargs N/A row reader N/A N/A N/A N/A dict N/A N/A key N/A unicode value utf-8 N/A N/A key value N/A N/A row iteritems N/A camel_case N/A N/A name N/A N/A N/A Convert CamelCase to style of camel_case. StackOverflow #1175208

    Examples:

    >>> camel_case('camel')
    'camel'
    >>> camel_case('Camel')
    'camel'
    >>> camel_case('CamelCase')
    'camel_case'
    >>> camel_case('camelCase')
    'camel_case'
    >>> camel_case('CamelCamelCase')
    'camel_camel_case'
    >>> camel_case('Camel2Camel2Case')
    'camel2_camel2_case'
    >>> camel_case('getHTTPResponseCode')
    'get_http_response_code'
    >>> camel_case('get2HTTPResponseCode')
    'get2_http_response_code'
    >>> camel_case('HTTPResponseCode')
    'http_response_code'
    >>> camel_case('HTTPResponseCodeXYZ')
    'http_response_code_xyz'
    >>>
     N/A first_pass N/A N/A first_cap_re sub \1_\2 name N/A N/A N/A N/A N/A all_cap_re sub \1_\2 first_pass lower N/A N/A special_chars_re N/A N/A re compile [^\w\s-] N/A dash_and_space_re N/A N/A re compile [-\s]+ slugify N/A N/A value N/A N/A N/A Normalize a string to a url-ready slug by lowercasing, converting spaces
    to hyphens, and removing non-alpha characters.

    Examples:

    >>> slugify('slug')
    'slug'
    >>> slugify('a slug')
    'a-slug'
    >>> slugify('  a slug')
    'a-slug'
    >>> slugify('&%a@-*slug')
    'a-slug'
    >>> slugify('crAZy CaPs')
    'crazy-caps'
    >>> slugify('a - slug')
    'a-slug'
    >>> slugify('-a slug')
    '-a-slug'
    >>>
     N/A value N/A N/A N/A N/A N/A N/A special_chars_re sub value strip lower N/A N/A N/A dash_and_space_re sub - value N/A make_timestamp N/A N/A string formatter N/A N/A N/A Make a stringified UNIX timestamp out of a given ``string`` that follows
    the date format specified by ``formatter``.

    Dates prior to the UNIX epoch will return a negative result. ``string``
    must match the format of ``formatter`` or a ValueError will be raised.

    Examples:

    >>> make_timestamp('March 04', '%B %y')
    '1078117200'
    >>> make_timestamp('January 1950', '%B %Y')
    '-631134000'
    >>> make_timestamp('Feb.08 2011 4:00 PM', '%b.%d %Y %I:%M %p')
    '1297198800'
    >>> make_timestamp('Feb.08 2011 4:00 PM', '%b.%d %Y %I:%M')
    Traceback (most recent call last):
    ...
    ValueError: unconverted data remains:  PM
    >>>
     N/A struct N/A strptime string formatter N/A N/A format N/A mktime struct .0f N/A date_from_string N/A N/A string formatter N/A N/A N/A Return a datetime date object from a given ``string`` that follows the
    date format specified by ``formatter``.

    At minimum, the function requires that ``formatter`` contain a day and a
    month.  When year is not given, date defaults to current year.

    Raises Value error when ``string`` does not match ``formatter``.

    Examples:

    >>> date_from_string('November 11, 2011', '%B %d, %Y')
    datetime.date(2011, 11, 11)
    >>> date_from_string('November 11', '%B %d') #doctest:+ELLIPSIS
    datetime.date(..., 11, 11)
    >>> _.year == date.today().year
    True
    >>> date_from_string('Feb.08 4:00 PM', '%b.%d %I:%M %p') #doctest:+ELLIPSIS
    datetime.date(..., 2, 8)
    >>> _.year == date.today().year
    True
    >>> date_from_string('Feb.08 2011 4:00 PM', '%b.%d %Y %I:%M %p')
    datetime.date(2011, 2, 8)
    >>> date_from_string('Feb.08 2011 4:00 PM', '%b.%d %Y %I:%M')
    Traceback (most recent call last):
    ...
    ValueError: unconverted data remains:  PM
    >>>
     N/A struct N/A strptime string formatter N/A N/A N/A %Y formatter N/A %y formatter N/A N/A struct tm_year 1900 N/A N/A N/A date N/A N/A N/A date today year N/A struct tm_mon N/A struct tm_mday N/A N/A N/A date fromtimestamp N/A mktime struct N/A url_parameter_match N/A N/A route parameter N/A N/A N/A Determine whether a route contains a url parameter, return True if so.

    Example:
    >>> url_parameter_match('/<argument>', 'argument')
    True
    >>> url_parameter_match('/<argument>/', 'argument')
    True
    >>> url_parameter_match('/<int:argument>', 'argument')
    True
    >>> url_parameter_match('/int:<argument>/', 'argument')
    True
    >>> url_parameter_match('/path:<argument>/', 'argument')
    True
    >>> url_parameter_match('/path/to/<parameter>/', 'parameter')
    True
    >>> url_parameter_match('/path/to/<path:parameter>/', 'parameter')
    True
    >>> url_parameter_match('/path/to/<aparameter>/', 'parameter')
    False
    >>> url_parameter_match('/path/to/<path:aparameter>/', 'parameter')
    False
    >>> url_parameter_match('/', 'parameter')
    False
    >>>
     N/A N/A N/A N/A re search N/A N/A [<:]{0}> format parameter route None N/A N/A os.path N/A directory N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A tests_directory N/A N/A N/A os path abspath N/A N/A N/A os path join directory ../../tests/ N/A csv_test_file N/A tests_directory /csv.csv