1.4 KiB
1.4 KiB
MIME Type Reference
This project provides a quick and easy way to browse and search for official IANA-registered MIME types. It consists of two main parts:
- A Python script (
fetcher.py) that downloads the latest MIME type registration data from the official IANA website. - A self-contained HTML file (
index.html) that displays the data in a clean, searchable, and user-friendly interface.
Features
- Up-to-date Data: Fetches data directly from IANA's official sources.
- Categorized View: Organizes MIME types by category (text, image, application, etc.).
- Obsolete/Deprecated Handling: Separately categorizes and displays obsolete or deprecated types for clarity.
- Live Search: Instantly filter all categories with a single search bar.
- Zero Dependencies: The
index.htmlfile is completely self-contained and requires no external libraries or frameworks.
How to Use
1. Fetch the Data
To get the latest MIME types, run the Python script. This will download the data from IANA and create a mime_types.json file in the same directory.
You will need aiohttp to run the script:
pip install aiohttp
python fetcher.py
2. View the Data
Simply open the index.html file in any modern web browser. It will automatically load the mime_types.json file and display the data.
You can now browse the categories or use the search bar to find specific MIME types.