class_docstr: Automatic detection and parsing of API docs to Sphinx-parsable reST format.
class_docstr_tok: ["Automatic","detection","and","parsing","of","API","docs","to","Sphinx-parsable","reST","format","."]
docstr: Initialize package for parsing
  
  Parameters
  ----------
  package_name : string
      Name of the top-level package. *package_name* must be the
      name of an importable package.
  rst_extension : string, optional
      Extension for reST files, default '.rst'.
  package_skip_patterns : None or sequence of {strings, regexps}
      Sequence of strings giving URIs of packages to be excluded
      Operates on the package path, starting at (including) the
      first dot in the package path, after *package_name* - so,
      if *package_name* is ``sphinx``, then ``sphinx.util`` will
      result in ``.util`` being passed for searching by these
      regexps.  If is None, gives default. Default is ``['\.tests$']``.
  module_skip_patterns : None or sequence
      Sequence of strings giving URIs of modules to be excluded
      Operates on the module name including preceding URI path,
      back to the first dot after *package_name*.  For example
      ``sphinx.util.console`` results in the string to search of
      ``.util.console``.
      If is None, gives default. Default is ``['\.setup$', '\._']``.
docstr_tok: ["Initialize","package","for","parsing","Parameters","--","--","--","--","--","package_name",":","string","Name","of","the","top-level","package",".","*","package_name","*","must","be","the","name","of","an","importable","package",".","rst_extension",":","string",",","optional","Extension","for","reST","files",",","default","'.rst","'",".","package_skip_patterns",":","None","or","sequence","of","{","strings",",","regexps","}","Sequence","of","strings","giving","URIs","of","packages","to","be","excluded","Operates","on","the","package","path",",","starting","at","(","including",")","the","first","dot","in","the","package","path",",","after","*","package_name","*","-","so",",","if","*","package_name","*","is","``","sphinx","``",",","then","``","sphinx.util","``","will","result","in","``",".util","``","being","passed","for","searching","by","these","regexps",".","If","is","None",",","gives","default",".","Default","is","``","[","'\\.tests","$","'","]","``",".","module_skip_patterns",":","None","or","sequence","Sequence","of","strings","giving","URIs","of","modules","to","be","excluded","Operates","on","the","module","name","including","preceding","URI","path",",","back","to","the","first","dot","after","*","package_name","*",".","For","example","``","sphinx.util.console","``","results","in","the","string","to","search","of","``",".util.console","``",".","If","is","None",",","gives","default",".","Default","is","``","[","'\\.setup","$","'",",","'\\._","'","]","``","."]
code: def __init__(
      self,
      package_name,
      rst_extension=".rst",
      package_skip_patterns=None,
      module_skip_patterns=None,
  ):
      r"""Initialize package for parsing
  
      Parameters
      ----------
      package_name : string
          Name of the top-level package. *package_name* must be the
          name of an importable package.
      rst_extension : string, optional
          Extension for reST files, default '.rst'.
      package_skip_patterns : None or sequence of {strings, regexps}
          Sequence of strings giving URIs of packages to be excluded
          Operates on the package path, starting at (including) the
          first dot in the package path, after *package_name* - so,
          if *package_name* is ``sphinx``, then ``sphinx.util`` will
          result in ``.util`` being passed for searching by these
          regexps.  If is None, gives default. Default is ``['\.tests$']``.
      module_skip_patterns : None or sequence
          Sequence of strings giving URIs of modules to be excluded
          Operates on the module name including preceding URI path,
          back to the first dot after *package_name*.  For example
          ``sphinx.util.console`` results in the string to search of
          ``.util.console``.
          If is None, gives default. Default is ``['\.setup$', '\._']``.
      """
      if package_skip_patterns is None:
          package_skip_patterns = ["\\.tests$"]
      if module_skip_patterns is None:
          module_skip_patterns = ["\\.setup$", "\\._"]
      self.package_name = package_name
      self.rst_extension = rst_extension
      self.package_skip_patterns = package_skip_patterns
      self.module_skip_patterns = module_skip_patterns
  
file_path: scikit-image/doc/tools/apigen.py
imports: import os
  import re
  from types import BuiltinFunctionType, FunctionType, ModuleType
label_desc: Use image node_id 1 to create a new ApiDocWriter object  with example: obj = ApiDocWriter(package_name, rst_extension, package_skip_patterns, module_skip_patterns)