Module Expr Str ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Raise NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd NameLoad Num Return BoolOpOr Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad comprehension NameStore NameLoad CompareIn Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign NameStore Call NameLoad
N/A N/A 
The :py:mod:`nameparser.config` module manages the configuration of the
nameparser. 

A module-level instance of :py:class:`~nameparser.config.Constants` is created
and used by default for all HumanName instances. You can adjust the entire module's
configuration by importing this instance and changing it.

::

    >>> from nameparser.config import CONSTANTS
    >>> CONSTANTS.titles.remove('hon').add('chemistry','dean') # doctest: +ELLIPSIS
    SetManager(set([u'msgt', ..., u'adjutant']))

You can also adjust the configuration of individual instances by passing
``None`` as the second argument upon instantiation.

::

    >>> from nameparser import HumanName
    >>> hn = HumanName("Dean Robert Johns", None)
    >>> hn.C.titles.add('dean') # doctest: +ELLIPSIS
    SetManager(set([u'msgt', ..., u'adjutant']))
    >>> hn.parse_full_name() # need to run this again after config changes

**Potential Gotcha**: If you do not pass ``None`` as the second argument,
``hn.C`` will be a reference to the module config, possibly yielding 
unexpected results. See `Customizing the Parser <customize.html>`_.
 __future__ unicode_literals N/A collections nameparser.util lc nameparser.config.prefixes PREFIXES nameparser.config.capitalization CAPITALIZATION_EXCEPTIONS nameparser.config.conjunctions CONJUNCTIONS nameparser.config.suffixes SUFFIXES nameparser.config.titles TITLES nameparser.config.titles FIRST_NAME_TITLES nameparser.config.regexes REGEXES SetManager N/A N/A collections Set N/A N/A 
    Easily add and remove config variables per module or instance. Subclass of
    ``collections.Set``.
    
    Only special functionality beyond that provided by set() is
    to normalize constants for comparison (lower case, no periods)
    when they are add()ed and remove()d and allow passing multiple 
    string arguments to the :py:func:`add()` and :py:func:`remove()` methods.
    
     __init__ N/A N/A self elements N/A N/A N/A N/A self elements N/A set elements N/A __call__ N/A N/A self N/A N/A N/A N/A self elements N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A SetManager({}) format N/A self elements N/A __iter__ N/A N/A self N/A N/A N/A N/A iter N/A self elements N/A __contains__ N/A N/A self value N/A N/A N/A N/A value N/A self elements N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self elements N/A next N/A N/A self N/A N/A N/A N/A N/A self __next__ N/A __next__ N/A N/A self N/A N/A N/A N/A N/A self count N/A len N/A self elements N/A N/A N/A self count 0 N/A StopIteration N/A N/A c N/A self count N/A N/A self count N/A c 1 N/A N/A N/A getattr self N/A N/A self elements N/A c N/A next self N/A add N/A N/A self N/A strings N/A N/A 
        Add the lower case and no-period version of the string arguments to the set.
        Returns ``self`` for chaining.
         N/A N/A N/A N/A N/A self elements add N/A lc s N/A s strings N/A self N/A remove N/A N/A self N/A strings N/A N/A 
        Remove the lower case and no-period version of the string arguments from the set.
        Returns ``self`` for chaining.
         N/A N/A N/A N/A N/A self elements remove N/A lc s N/A s strings N/A N/A lc s N/A self elements N/A self N/A N/A TupleManager N/A dict N/A N/A 
    A dictionary with dot.notation access. Subclass of ``dict``. Makes the tuple constants 
    more friendly.
     __getattr__ N/A N/A self attr N/A N/A N/A N/A N/A self get attr N/A N/A __setattr__ N/A dict __setitem__ N/A __delattr__ N/A dict __delitem__ N/A Constants N/A object N/A N/A 
    An instance of this class hold all of the configuration constants for the parser.

    :param set prefixes: 
        :py:attr:`prefixes` wrapped with :py:class:`SetManager`.
    :param set titles: 
        :py:attr:`titles` wrapped with :py:class:`SetManager`.
    :param set first_name_titles: 
        :py:attr:`first_name_titles` wrapped with :py:class:`SetManager`.
    :param set suffixes: 
        :py:attr:`suffixes`  wrapped with :py:class:`SetManager`.
    :param set conjunctions: 
        :py:attr:`conjunctions`  wrapped with :py:class:`SetManager`.
    :type capitalization_exceptions: tuple or dict
    :param capitalization_exceptions: 
        :py:attr:`capitalization_exceptions` wrapped with :py:class:`TupleManager`.
    :type regexes: tuple or dict
    :param regexes: 
        :py:attr:`regexes`  wrapped with :py:class:`TupleManager`.
     __init__ N/A N/A self prefixes suffixes titles first_name_titles conjunctions capitalization_exceptions regexes N/A PREFIXES SUFFIXES TITLES FIRST_NAME_TITLES CONJUNCTIONS CAPITALIZATION_EXCEPTIONS REGEXES N/A N/A N/A self prefixes N/A SetManager prefixes N/A N/A self suffixes N/A SetManager suffixes N/A N/A self titles N/A SetManager titles N/A N/A self first_name_titles N/A SetManager first_name_titles N/A N/A self conjunctions N/A SetManager conjunctions N/A N/A self capitalization_exceptions N/A TupleManager capitalization_exceptions N/A N/A self regexes N/A TupleManager regexes N/A suffixes_prefixes_titles N/A N/A self N/A N/A N/A N/A N/A N/A self prefixes N/A self suffixes N/A self titles N/A property __repr__ N/A N/A self N/A N/A N/A <Constants() instance> N/A N/A N/A CONSTANTS N/A Constants