Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
:param config_content: Configuration file's content
:param forced_type: Forced configuration parser type
:param kwargs: Backend specific optional arguments, e.g. {"indent": 2} for
    JSON loader/dumper backend
:return: Dict-like object (instance of
    anyconfig.mergeabledict.MergeableDict by default) supports merge
    operations.

        def loads(config_content, forced_type=None, **kwargs):
    """
    :param config_content: Configuration file's content
    :param forced_type: Forced configuration parser type
    :param kwargs: Backend specific optional arguments, e.g. {"indent": 2} for
        JSON loader/dumper backend
    :return: Dict-like object (instance of
        anyconfig.mergeabledict.MergeableDict by default) supports merge
        operations.
    """
    if forced_type is None:
        return P.parse(config_content)

    cparser = find_loader(None, forced_type)
    if cparser is None:
        return P.parse(config_content)

    return cparser.loads(config_content, **kwargs)
        


src/a/n/anyconfig-0.0.3.11/anyconfig/__init__.py   anyconfig(Download)
"""
from .globals import AUTHOR, VERSION
from .api import single_load, multi_load, load, loads, dump, dumps, \
    list_types, find_loader, container, logging, set_loglevel, \
    MS_REPLACE, MS_NO_REPLACE, MS_DICTS, MS_DICTS_AND_LISTS

src/p/y/python-anyconfig-HEAD/anyconfig/__init__.py   python-anyconfig(Download)
"""
from .globals import AUTHOR, VERSION
from .api import single_load, multi_load, load, loads, dump, dumps, \
    list_types, find_loader, container, logging, set_loglevel, \
    MS_REPLACE, MS_NO_REPLACE, MS_DICTS, MS_DICTS_AND_LISTS