commonmeta-py 0.84__py3-none-any.whl → 0.86__py3-none-any.whl
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.
- commonmeta/__init__.py +9 -8
- commonmeta/readers/schema_org_reader.py +2 -1
- {commonmeta_py-0.84.dist-info → commonmeta_py-0.86.dist-info}/METADATA +3 -11
- {commonmeta_py-0.84.dist-info → commonmeta_py-0.86.dist-info}/RECORD +7 -7
- {commonmeta_py-0.84.dist-info → commonmeta_py-0.86.dist-info}/WHEEL +0 -0
- {commonmeta_py-0.84.dist-info → commonmeta_py-0.86.dist-info}/entry_points.txt +0 -0
- {commonmeta_py-0.84.dist-info → commonmeta_py-0.86.dist-info}/licenses/LICENSE +0 -0
commonmeta/__init__.py
CHANGED
@@ -10,7 +10,7 @@ commonmeta-py is a Python library to convert scholarly metadata
|
|
10
10
|
"""
|
11
11
|
|
12
12
|
__title__ = "commonmeta-py"
|
13
|
-
__version__ = "0.
|
13
|
+
__version__ = "0.86"
|
14
14
|
__author__ = "Martin Fenner"
|
15
15
|
__license__ = "MIT"
|
16
16
|
|
@@ -40,9 +40,15 @@ from .writers import (
|
|
40
40
|
)
|
41
41
|
from .utils import (
|
42
42
|
dict_to_spdx,
|
43
|
+
extract_url,
|
44
|
+
extract_urls,
|
45
|
+
extract_curie,
|
43
46
|
from_csl,
|
47
|
+
from_json_feed,
|
44
48
|
from_schema_org,
|
45
49
|
get_language,
|
50
|
+
issn_as_url,
|
51
|
+
name_to_fos,
|
46
52
|
normalize_cc_url,
|
47
53
|
normalize_id,
|
48
54
|
normalize_ids,
|
@@ -50,16 +56,11 @@ from .utils import (
|
|
50
56
|
normalize_url,
|
51
57
|
normalize_ror,
|
52
58
|
pages_as_string,
|
59
|
+
replace_curie,
|
53
60
|
to_csl,
|
54
61
|
validate_orcid,
|
62
|
+
validate_ror,
|
55
63
|
validate_url,
|
56
|
-
get_language,
|
57
|
-
name_to_fos,
|
58
|
-
from_json_feed,
|
59
|
-
extract_url,
|
60
|
-
extract_urls,
|
61
|
-
extract_curie,
|
62
|
-
replace_curie,
|
63
64
|
)
|
64
65
|
from .author_utils import (
|
65
66
|
authors_as_string,
|
@@ -217,11 +217,12 @@ def read_schema_org(data: Optional[dict], **kwargs) -> Commonmeta:
|
|
217
217
|
}
|
218
218
|
)
|
219
219
|
elif _type in ["Article", "BlogPost"]:
|
220
|
+
container_type = "Blog" if _type == "BlogPost" else "Periodical"
|
220
221
|
issn = py_.get(meta, "isPartOf.issn")
|
221
222
|
container_url = py_.get(meta, "publisher.url")
|
222
223
|
container = compact(
|
223
224
|
{
|
224
|
-
"type":
|
225
|
+
"type": container_type,
|
225
226
|
"title": py_.get(meta, "isPartOf.name"),
|
226
227
|
"identifier": issn
|
227
228
|
if issn is not None
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: commonmeta-py
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.86
|
4
4
|
Summary: Library for conversions to/from the Commonmeta scholarly metadata format
|
5
5
|
Project-URL: Homepage, https://python.commonmeta.org
|
6
6
|
Project-URL: Repository, https://github.com/front-matter/commonmeta-py
|
@@ -10,25 +10,20 @@ License-Expression: MIT
|
|
10
10
|
License-File: LICENSE
|
11
11
|
Keywords: bibtex,commonmeta,crossref,csl,datacite,metadata,science
|
12
12
|
Requires-Python: <4.0,>=3.9
|
13
|
-
Requires-Dist: anyio<5,>=4.2.0
|
14
|
-
Requires-Dist: asyncclick<9,>=8.1.7.1
|
15
|
-
Requires-Dist: asyncio<4,>=3.4.3
|
16
13
|
Requires-Dist: base32-lib~=1.0
|
17
14
|
Requires-Dist: beautifulsoup4~=4.11
|
18
15
|
Requires-Dist: bibtexparser~=1.4
|
19
|
-
Requires-Dist: citeproc-py-styles
|
20
|
-
Requires-Dist: citeproc-py<0.
|
16
|
+
Requires-Dist: citeproc-py-styles~=0.1.3
|
17
|
+
Requires-Dist: citeproc-py<0.9,>=0.7
|
21
18
|
Requires-Dist: click<9,>=8.1.7
|
22
19
|
Requires-Dist: datacite~=1.1
|
23
20
|
Requires-Dist: dateparser<2,>=1.1.7
|
24
|
-
Requires-Dist: docutils<0.22,>=0.19
|
25
21
|
Requires-Dist: edtf<6,>=5.0.0
|
26
22
|
Requires-Dist: furl<3,>=2.1.3
|
27
23
|
Requires-Dist: httpx<0.29,>=0.28
|
28
24
|
Requires-Dist: jsonschema~=4.21
|
29
25
|
Requires-Dist: lxml>=4.8
|
30
26
|
Requires-Dist: nameparser<2,>=1.1.2
|
31
|
-
Requires-Dist: nbstripout<0.9,>=0.6
|
32
27
|
Requires-Dist: nh3<0.3,>=0.2.14
|
33
28
|
Requires-Dist: orjson<4,>=3.9.14
|
34
29
|
Requires-Dist: orjsonl<2,>=1.0.0
|
@@ -38,10 +33,7 @@ Requires-Dist: pydash<9,>=7
|
|
38
33
|
Requires-Dist: pyjwt<3,>=2.8.0
|
39
34
|
Requires-Dist: python-dateutil<3,>=2.8.2
|
40
35
|
Requires-Dist: pyyaml~=6.0
|
41
|
-
Requires-Dist: setuptools<76,>=70
|
42
36
|
Requires-Dist: simplejson~=3.18
|
43
|
-
Requires-Dist: sphinx-autodoc-typehints<4.0,>=1.19
|
44
|
-
Requires-Dist: sphinxcontrib-issuetracker<0.12,>=0.11
|
45
37
|
Requires-Dist: types-beautifulsoup4~=4.11
|
46
38
|
Requires-Dist: types-dateparser~=1.1
|
47
39
|
Requires-Dist: types-pyyaml~=6.0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
commonmeta/__init__.py,sha256=
|
1
|
+
commonmeta/__init__.py,sha256=pr6C55Q8Mvzc6A7eewCqoBVZwrfCE7PeA-R8OVMJFWA,1911
|
2
2
|
commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
|
3
3
|
commonmeta/author_utils.py,sha256=1oQQfxaq7aMQI3rLt8XMufksuBeC8Zht96aJ8vz09Ug,8459
|
4
4
|
commonmeta/base_utils.py,sha256=AsUElA5kT2fw_Osy7Uaj2F6MKeq9yB7d5f2V-h2lh7c,3750
|
@@ -25,7 +25,7 @@ commonmeta/readers/inveniordm_reader.py,sha256=uS92St68UkO4Adh3PsCu9ox81aO0kek3Y
|
|
25
25
|
commonmeta/readers/json_feed_reader.py,sha256=x29DpOXaHqtYTTow7fnx3TVBcI_585VA3OMucqlKu94,13443
|
26
26
|
commonmeta/readers/kbase_reader.py,sha256=ehKXQsJyPCtaq2FmBxNb2Jb5Nktpx8pNscpmEM6N0A4,6763
|
27
27
|
commonmeta/readers/ris_reader.py,sha256=v6qOd-i2OcMTEFy5RGd3MlYthJcYSU6yzmZ5yHDzmII,3677
|
28
|
-
commonmeta/readers/schema_org_reader.py,sha256=
|
28
|
+
commonmeta/readers/schema_org_reader.py,sha256=78vYWCZqrYevZsSbx7oVVLm3mlNzi323WNW5E_PL9o0,17234
|
29
29
|
commonmeta/resources/cff_v1.2.0.json,sha256=MpfjDYgX7fN9PLiG54ISZ2uu9WItNqfh-yaRuTf6Ptg,46691
|
30
30
|
commonmeta/resources/commonmeta_v0.12.json,sha256=HUSNReXh2JN3Q6YWSt7CE69js8dh50OlpMYGTyU98oU,16762
|
31
31
|
commonmeta/resources/commonmeta_v0.13.json,sha256=2-WSZGijR13zVu97S_YHXr-cyeLW7hzHXYMlr6nIjdw,15787
|
@@ -70,8 +70,8 @@ commonmeta/writers/datacite_writer.py,sha256=UpDp4Brg5xrmS5T3QYoNi6PPXKdRxAo254e
|
|
70
70
|
commonmeta/writers/inveniordm_writer.py,sha256=yWDMYorsJJ4vFNHOmjU8d1_uAfqMwkBxzeV7jtBoC1Q,11515
|
71
71
|
commonmeta/writers/ris_writer.py,sha256=AcnCszS3WY9lF594NbFBtLylsA8ownnYp_XLQJ84Ios,2093
|
72
72
|
commonmeta/writers/schema_org_writer.py,sha256=5j002uCNLdlScZMNQmPjodcVWqaBh2z38zL1H4lo2hY,5741
|
73
|
-
commonmeta_py-0.
|
74
|
-
commonmeta_py-0.
|
75
|
-
commonmeta_py-0.
|
76
|
-
commonmeta_py-0.
|
77
|
-
commonmeta_py-0.
|
73
|
+
commonmeta_py-0.86.dist-info/METADATA,sha256=MM679sUP8NwP_cgitVyMO0GCowpu1gsO6K-8yDBAkwY,7429
|
74
|
+
commonmeta_py-0.86.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
75
|
+
commonmeta_py-0.86.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
|
76
|
+
commonmeta_py-0.86.dist-info/licenses/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
|
77
|
+
commonmeta_py-0.86.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|