Skip to content

Commit 88fae1f

Browse files
committed
add acknowledgement for mimeData.json
1 parent 7ec8417 commit 88fae1f

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,7 @@ mime_type = from_path("/path/to/document.pdf") # MimeType.APPLICATION_PDF
103103
For detailed usage examples, see the [Usage Guide](docs/usage.md).
104104

105105
For complete API documentation, see the [API Reference](docs/api.md).
106+
107+
## Acknowledgments
108+
109+
This project uses the `mimeData.json` file from [mimetype-io](https://github.com/patrickmccallum/mimetype-io) by Patrick McCallum.

THIRD-PARTY-NOTICES

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
mime-enum Third-Party Notices
2+
================================
3+
4+
This project incorporates components from third-party projects. The original copyright notices and licenses under which the mime-enum library received such components are set forth below.
5+
6+
mimetype-io
7+
-----------
8+
Source: https://github.com/patrickmccallum/mimetype-io
9+
License: MIT License
10+
11+
Copyright (c) 2023 Patrick McCallum
12+
13+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,7 @@ mime_type = from_path("/path/to/document.pdf") # MimeType.APPLICATION_PDF
103103
For detailed usage examples, see the [Usage Guide](usage.md).
104104

105105
For complete API documentation, see the [API Reference](api.md).
106+
107+
## Acknowledgments
108+
109+
This project uses the `mimeData.json` file from [mimetype-io](https://github.com/patrickmccallum/mimetype-io) by Patrick McCallum.

src/mime_enum/mimetype.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Auto-generated by scripts/generate_mimetypes.py — DO NOT EDIT.
2+
# Data source: mimetype-io (https://github.com/patrickmccallum/mimetype-io)
3+
24
from __future__ import annotations
35

46
from enum import StrEnum

src/mime_enum/scripts/generate_mimetypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def py_tuple_str(items: list[str]) -> str:
102102

103103
lines = []
104104
lines.append("# Auto-generated by scripts/generate_mimetypes.py — DO NOT EDIT.")
105+
lines.append("# Data source: mimetype-io (https://github.com/patrickmccallum/mimetype-io)")
106+
lines.append("")
105107
lines.append("from __future__ import annotations")
106108
lines.append("from enum import StrEnum")
107109
lines.append("")

0 commit comments

Comments
 (0)