Parse comments from various source files.
### extract_comments Signature
def extract_comments(filename, mime=None): """Extracts and returns the comments from the given source file. Args: filename: String name of the file to extract comments from. mime: Optional MIME type for file (str). Note some MIME types accepted don't comply with RFC2045. If not given, an attempt to deduce the MIME type will occur. Returns: Python list of parsers.common.Comment in the order that they appear in the source file. Raises: UnsupportedError: If filename is of an unsupported MIME type. """
## Supported Programming Languages
- Shell scripts (Bash, sh, etc.)
- More to come!
Check comment_parser.py for corresponding MIME types.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size comment_parser-1.0.3.tar.gz (4.8 kB)||File type Source||Python version None||Upload date||Hashes View|