def __get(name, stype, **kwargs):
folder    = kwargs.get('<STR_LIT>', CONFIG['<STR_LIT>'])<EOL>file_path = kwargs.get('<STR_LIT>', CONFIG['<STR_LIT>'])<EOL>style_url = kwargs.get('<STR_LIT>', folder+file_path).format(stype=stype, name=name)<EOL>if not kwargs.get('<STR_LIT>', False) and CACHE.is_cached(stype, name):<EOL><INDENT>logger.debug('<STR_LIT>'.format(stype))<EOL>with open(CACHE.file_path(stype=stype, name=name), '<STR_LIT:r>') as f:<EOL><INDENT>content = remove_comments(f.read())<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>logger.debug('<STR_LIT>'.format(style_url))<EOL>with urlopen(style_url) as f:<EOL><INDENT>content = remove_comments(f.read().decode())<EOL><DEDENT>logger.debug('<STR_LIT>'.format(stype))<EOL>CACHE.add(stype, name, content)<EOL><DEDENT>except ValueError as e:  <EOL><INDENT>logger.debug('<STR_LIT>'.format(str(e)))<EOL>logger.debug('<STR_LIT>')<EOL>try:<EOL><INDENT>with open(style_url) as f:<EOL><INDENT>content = remove_comments(f.read())<EOL><DEDENT>logger.debug('<STR_LIT>'.format(stype))<EOL><DEDENT>except IOError:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>except HTTPError as e:<EOL><INDENT>raise<EOL><DEDENT>except URLError as e:<EOL><INDENT>logger.debug('<STR_LIT>'.format(str(e)))<EOL>raise<EOL><DEDENT><DEDENT>try:<EOL><INDENT>logger.debug('<STR_LIT>')<EOL>return json.loads(content)<EOL><DEDENT>except json.JSONDecodeError as e:<EOL><INDENT>logger.debug('<STR_LIT>'.format(str(e)))<EOL>raise<EOL><DEDENT>
Parameters
----------
name: str

stype: str

kwargs:
- style_url: str

- stylelib_url: str

- stylelib_format: str

- ignore_cache: bool

Raises
------
IOError:
HTTPError:
URLError:
JSONDecodeError: