Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[codebase-cleanup][m] Cleaning the whole codebase #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
venv
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ This dataset lists all the Media Types (MIME types), Media Subtypes, and their f

## Data

The details of the Media Types and Media Subtypes are taken from the [official registry of Media Types](http://www.iana.org/assignments/media-types/media-types.xhtml) maintained by IANA. The extension details are taken [the website](http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/conf/mime.types?view=annotate) of the Apache Software Foundation.
The details of the Media Types and Media Subtypes are taken from the [official registry of Media Types](http://www.iana.org/assignments/media-types/media-types.xhtml) maintained by IANA. The extension details are taken [the website](https://github.com/apache/httpd/blob/trunk/docs/conf/mime.types) of the Apache Software Foundation .

## Preparation

The Type, Subtype, and Template name were copied from IANA's websites into a Google Sheets document. The link to the Template was generated in a fourth column in the same sheet by concatenating the Template name with a reference to the Template folder on IANA's website.
The `media-types.csv` is processed using `scripts/process.py` script.

The extensions were copied from Apache's website into a separate sheet in the same Google Sheets document. The data was cleaned to place the extensions on their own in a single column without the Type and Subtype.

The extensions were finally added to the original sheet using VLOOKUP.
```
pip install -r scripts/requirements.txt
python scripts/process.py
```

Data was automated using Github Actions.

## License

Expand Down
Loading