ontolutils 0.2.0a4__tar.gz → 0.2.0a5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/PKG-INFO +1 -1
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/_iana_utils.py +6 -3
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/PKG-INFO +1 -1
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/setup.cfg +1 -1
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/LICENSE +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/README.rst +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/__init__.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/_version.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/cache.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/__init__.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/decorator.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/jsonld.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/query_util.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/thing.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/typing.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/classes/utils.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/__init__.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/_version.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/codemeta.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/dev.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/m4i.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/obo.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/pivmeta.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/qudt_kind.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/qudt_unit.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/schema.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils/namespacelib/ssno.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/SOURCES.txt +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/dependency_links.txt +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/requires.txt +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/ontolutils.egg-info/top_level.txt +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/pyproject.toml +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/setup.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_classes.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_namespaces.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_query.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_readme.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_typing.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_utils.py +0 -0
- {ontolutils-0.2.0a4 → ontolutils-0.2.0a5}/tests/test_version.py +0 -0
|
@@ -27,9 +27,12 @@ def read_csv_file(filename, prefix: str) -> Dict[str, str]:
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
def get_media_type(category: str) -> dict:
|
|
30
|
-
|
|
31
|
-
csv_fname =
|
|
32
|
-
|
|
30
|
+
"""Return a dictionary of media types for the given category."""
|
|
31
|
+
csv_fname = iana_cache / f'{category}.csv'
|
|
32
|
+
if not csv_fname.exists():
|
|
33
|
+
download_link = f'https://www.iana.org/assignments/media-types/{category}.csv'
|
|
34
|
+
csv_fname = download_file(download_link,
|
|
35
|
+
dest_filename=iana_cache / f'{category}.csv')
|
|
33
36
|
return read_csv_file(csv_fname, 'https://www.iana.org/assignments/media-types/')
|
|
34
37
|
|
|
35
38
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|