Module ImportFrom alias alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad For NameStore TupleLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Str Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Return Str Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad NameLoad body Return Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str Str Assign NameStore TupleLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad If CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse If CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If NameLoad body Return Str orelse Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore GeneratorExp Call AttributeLoad Call NameLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Return Str Return BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Num keyword BinOpSub BinOpPow Num Num Num keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot NameLoad CompareIs NameLoad NameLoad body Return NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A __future__ absolute_import unicode_literals N/A logging N/A re N/A socket mopidy compat mopidy.config validators mopidy.internal log path decode N/A N/A value N/A N/A N/A N/A isinstance value N/A compat text_type N/A N/A value N/A N/A N/A N/A N/A value decode string-escape decode utf-8 N/A encode N/A N/A value N/A N/A N/A N/A N/A isinstance value N/A compat text_type N/A N/A value N/A char N/A \ N/A N/A value N/A N/A value replace char N/A N/A char encode unicode-escape N/A N/A N/A value encode utf-8 N/A ExpandedPath N/A bytes N/A __new__ N/A N/A cls original expanded N/A N/A N/A N/A N/A N/A super ExpandedPath cls __new__ cls expanded N/A __init__ N/A N/A self original expanded N/A N/A N/A N/A self original original N/A N/A DeprecatedValue N/A object N/A N/A N/A ConfigValue N/A object N/A N/A Represents a config key's value and how to handle it.

    Normally you will only be interacting with sub-classes for config values
    that encode either deserialization behavior and/or validation.

    Each config value should be used for the following actions:

    1. Deserializing from a raw string and validating, raising ValueError on
       failure.
    2. Serializing a value back to a string that can be stored in a config.
    3. Formatting a value to a printable form (useful for masking secrets).

    :class:`None` values should not be deserialized, serialized or formatted,
    the code interacting with the config should simply skip None config values.
     deserialize N/A N/A self value N/A N/A N/A Cast raw string to appropriate type. N/A value N/A serialize N/A N/A self value display N/A False N/A N/A Convert value back to string for saving. N/A N/A value None N/A N/A N/A N/A bytes value N/A N/A Deprecated N/A ConfigValue N/A N/A Deprecated value

    Used for ignoring old config values that are no longer in use, but should
    not cause the config parser to crash.
     deserialize N/A N/A self value N/A N/A N/A N/A DeprecatedValue N/A serialize N/A N/A self value display N/A False N/A N/A N/A DeprecatedValue N/A N/A String N/A ConfigValue N/A N/A String value.

    Is decoded as utf-8 and \n \t escapes should work and be preserved.
     __init__ N/A N/A self optional choices N/A False None N/A N/A N/A self _required N/A optional N/A N/A self _choices choices N/A deserialize N/A N/A self value N/A N/A N/A value N/A N/A N/A decode value strip N/A N/A N/A validators validate_required value N/A self _required N/A N/A value N/A N/A None N/A N/A N/A validators validate_choice value N/A self _choices N/A value N/A serialize N/A N/A self value display N/A False N/A N/A N/A value None N/A N/A N/A N/A encode value N/A N/A Secret N/A String N/A N/A Secret string value.

    Is decoded as utf-8 and \n \t escapes should work and be preserved.

    Should be used for passwords, auth tokens etc. Will mask value when being
    displayed.
     __init__ N/A N/A self optional choices N/A False None N/A N/A N/A self _required N/A optional N/A N/A self _choices None N/A serialize N/A N/A self value display N/A False N/A N/A N/A N/A value None display N/A N/A ******** N/A N/A N/A N/A super Secret self serialize value display N/A N/A Integer N/A ConfigValue N/A N/A Integer value. __init__ N/A N/A self minimum maximum choices optional N/A None None None False N/A N/A N/A self _required N/A optional N/A N/A self _minimum minimum N/A N/A self _maximum maximum N/A N/A self _choices choices N/A deserialize N/A N/A self value N/A N/A N/A N/A N/A validators validate_required value N/A self _required N/A N/A value N/A N/A None N/A value N/A int value N/A N/A N/A validators validate_choice value N/A self _choices N/A N/A N/A validators validate_minimum value N/A self _minimum N/A N/A N/A validators validate_maximum value N/A self _maximum N/A value N/A N/A Boolean N/A ConfigValue N/A N/A Boolean value.

    Accepts ``1``, ``yes``, ``true``, and ``on`` with any casing as
    :class:`True`.

    Accepts ``0``, ``no``, ``false``, and ``off`` with any casing as
    :class:`False`.
     N/A true_values N/A 1 yes true on N/A false_values N/A 0 no false off __init__ N/A N/A self optional N/A False N/A N/A N/A self _required N/A optional N/A deserialize N/A N/A self value N/A N/A N/A N/A N/A validators validate_required value N/A self _required N/A N/A value N/A N/A None N/A N/A N/A N/A value lower N/A self true_values N/A N/A True N/A N/A N/A N/A N/A value lower N/A self false_values N/A N/A False N/A N/A ValueError N/A invalid value for boolean: %r value N/A serialize N/A N/A self value display N/A False N/A N/A value N/A N/A true N/A N/A false N/A N/A List N/A ConfigValue N/A N/A List value.

    Supports elements split by commas or newlines. Newlines take presedence and
    empty list items will be filtered out.
     __init__ N/A N/A self optional N/A False N/A N/A N/A self _required N/A optional N/A deserialize N/A N/A self value N/A N/A N/A N/A value N/A N/A values N/A N/A re split \s*\n\s* value N/A N/A values N/A N/A re split \s*,\s* value N/A values N/A N/A N/A N/A decode v strip N/A v values N/A values N/A filter None values N/A N/A N/A validators validate_required values N/A self _required N/A N/A tuple values N/A serialize N/A N/A self value display N/A False N/A N/A N/A value N/A N/A N/A N/A N/A N/A join N/A N/A encode v N/A v value v N/A N/A LogColor N/A ConfigValue N/A deserialize N/A N/A self value N/A N/A N/A N/A N/A validators validate_choice N/A N/A value lower N/A log COLORS N/A N/A N/A value lower N/A serialize N/A N/A self value display N/A False N/A N/A N/A N/A N/A value lower N/A log COLORS N/A N/A N/A N/A value lower N/A N/A N/A LogLevel N/A ConfigValue N/A N/A Log level value.

    Expects one of ``critical``, ``error``, ``warning``, ``info``, ``debug``,
    or ``all``, with any casing.
     N/A levels N/A critical error warning info debug all N/A logging CRITICAL N/A logging ERROR N/A logging WARNING N/A logging INFO N/A logging DEBUG N/A logging NOTSET deserialize N/A N/A self value N/A N/A N/A N/A N/A validators validate_choice N/A N/A value lower N/A N/A N/A self levels keys N/A N/A N/A N/A self levels get N/A N/A value lower N/A serialize N/A N/A self value display N/A False N/A N/A lookup N/A dict N/A N/A v k N/A N/A k v N/A N/A N/A self levels items N/A N/A value lookup N/A N/A N/A lookup N/A value N/A N/A N/A Hostname N/A ConfigValue N/A N/A Network hostname value. __init__ N/A N/A self optional N/A False N/A N/A N/A self _required N/A optional N/A deserialize N/A N/A self value display N/A False N/A N/A N/A N/A validators validate_required value N/A self _required N/A N/A N/A N/A value strip N/A N/A None N/A N/A N/A N/A N/A socket getaddrinfo value None N/A N/A N/A N/A socket error N/A N/A N/A ValueError must be a resolveable hostname or valid IP N/A value N/A N/A Port N/A Integer N/A N/A Network port value.

    Expects integer in the range 0-65535, zero tells the kernel to simply
    allocate a port for us.
     __init__ N/A N/A self choices optional N/A None False N/A N/A N/A N/A N/A super Port self __init__ minimum 0 maximum N/A N/A 2 16 1 choices choices optional optional N/A N/A Path N/A ConfigValue N/A N/A File system path

    The following expansions of the path will be done:

    - ``~`` to the current user's home directory

    - ``$XDG_CACHE_DIR`` according to the XDG spec

    - ``$XDG_CONFIG_DIR`` according to the XDG spec

    - ``$XDG_DATA_DIR`` according to the XDG spec

    - ``$XDG_MUSIC_DIR`` according to the XDG spec
     __init__ N/A N/A self optional N/A False N/A N/A N/A self _required N/A optional N/A deserialize N/A N/A self value N/A N/A N/A value N/A N/A value strip N/A expanded N/A N/A path expand_path value N/A N/A N/A validators validate_required value N/A self _required N/A N/A N/A validators validate_required expanded N/A self _required N/A N/A N/A value N/A expanded None N/A N/A None N/A N/A ExpandedPath value expanded N/A serialize N/A N/A self value display N/A False N/A N/A N/A isinstance value N/A compat text_type N/A N/A N/A ValueError paths should always be bytes N/A N/A isinstance value ExpandedPath N/A N/A N/A value original N/A value N/A N/A