一些有意思的Python 模块 Python 的 HTML 转 PDF 文档 WeasyPrint

python-magic  文件类型识别库