class_docstr: Handles metadata supplied in configuration files.
class_docstr_tok: ["Handles","metadata","supplied","in","configuration","files","."]
docstr: Represents value as a string, allowing including text
  from nearest files using `file:` directive.
  
  Directive is sandboxed and won't reach anything outside
  directory with setup.py.
  
  Examples:
      file: README.rst, CHANGELOG.md, src/file.txt
  
  :param str value:
  :rtype: str
docstr_tok: ["Represents","value","as","a","string",",","allowing","including","text","from","nearest","files","using","`","file",":","`","directive",".","Directive","is","sandboxed","and","wo","n't","reach","anything","outside","directory","with","setup.py",".","Examples",":","file",":","README.rst",",","CHANGELOG.md",",","src\/file.txt",":","param","str","value",":",":","rtype",":","str"]
code: def _parse_file(cls, value):
      """Represents value as a string, allowing including text
      from nearest files using `file:` directive.
  
      Directive is sandboxed and won't reach anything outside
      directory with setup.py.
  
      Examples:
          file: README.rst, CHANGELOG.md, src/file.txt
  
      :param str value:
      :rtype: str
      """
      include_directive = "file:"
  
      if not isinstance(value, string_types):
          return value
  
      if not value.startswith(include_directive):
          return value
  
      spec = value[len(include_directive) :]
      filepaths = (
          os.path.abspath(path.strip()) for path in spec.split(",")
      )
      return "\n".join(
          cls._read_file(path)
          for path in filepaths
          if (cls._assert_local(path) or True) and os.path.isfile(path)
      )
  
imports: from __future__ import absolute_import, unicode_literals
  import io
  import os
  import sys
  import warnings
  import functools
  from collections import defaultdict
  from functools import partial
  from functools import wraps
  from importlib import import_module
  from distutils.errors import DistutilsOptionError, DistutilsFileError
  from setuptools.extern.packaging.version import LegacyVersion, parse
  from setuptools.extern.packaging.specifiers import SpecifierSet
  from setuptools.extern.six import string_types, PY3
label_desc: Use image node_id 8 for calling the ConfigHandler obj's underlying member method code with example usage: obj._parse_file(cls, value) and returns: str, value, value