components.helpers Module

This module contains helper functions and casses.

components.helpers.COORDINATES_PATTERN = '(\\d*\\.\\d*), *(\\d*\\.\\d*)'

Regex pattern for coordinates tuples.

Type

str

components.helpers.setlocale(name)

Wrapper to set locale. Use like:

with setlocale('de_DE.UTF-8'):
    return string.strptime('%B %Y')
Return type

Generator