From c00e2b3c8d83b1219a93418427191462a80a1ffe Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 13 Mar 2026 01:59:41 +0000 Subject: [PATCH] feat: Add `magic` for file type detection. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8b31cfd..b18d621 100644 --- a/README.md +++ b/README.md @@ -182,15 +182,15 @@ ### Data Format -- File Type: **`mimetypes`**(builtin) -- INI: **`configparser`**(builtin) -- JSON: `json`(builtin), [**`orjson`**](https://github.com/ijl/orjson) -- CSV: `csv`(builtin), [**`pandas`**](https://pandas.pydata.org/) +- File Type: **`mimetypes`** (builtin), [**`magic`**](https://github.com/ahupp/python-magic) +- INI: **`configparser`** (builtin) +- JSON: `json` (builtin), [**`orjson`**](https://github.com/ijl/orjson) +- CSV: `csv` (builtin), [**`pandas`**](https://pandas.pydata.org/) - Excel: [**`openpyxl`**](https://openpyxl.readthedocs.io/en/stable/), [**`pandas`**](https://pandas.pydata.org/) - Parquet: [**`pyarrow`**](https://arrow.apache.org/docs/python/), [**`fastparquet`**](https://fastparquet.readthedocs.io/en/stable/) -- XML: `xml.etree.ElementTree`(builtin), [**`lxml`**](https://lxml.de/) -- YAML: `yaml`(builtin), [**`pyyaml`**](https://pyyaml.org/) -- HTML: `html.parser`(builtin), [**`lxml`**](https://lxml.de/) +- XML: `xml.etree.ElementTree` (builtin), [**`lxml`**](https://lxml.de/) +- YAML: `yaml` (builtin), [**`pyyaml`**](https://pyyaml.org/) +- HTML: `html.parser` (builtin), [**`lxml`**](https://lxml.de/) - PDF: [**`pdfminer.six`**](https://github.com/pdfminer/pdfminer.six) - Image: [**`Pillow`**](https://pillow.readthedocs.io/en/stable/)