commonmeta-py 0.84__tar.gz → 0.86__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.
- {commonmeta_py-0.84 → commonmeta_py-0.86}/PKG-INFO +3 -11
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/__init__.py +9 -8
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/schema_org_reader.py +2 -1
- {commonmeta_py-0.84 → commonmeta_py-0.86}/pyproject.toml +3 -11
- {commonmeta_py-0.84 → commonmeta_py-0.86}/.gitignore +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/LICENSE +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/README.md +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/api_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/author_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/base_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/cli.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/constants.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/crossref_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/date_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/doi_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/metadata.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/__init__.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/bibtex_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/cff_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/codemeta_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/commonmeta_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/crossref_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/crossref_xml_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/csl_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/datacite_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/datacite_xml_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/inveniordm_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/json_feed_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/kbase_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/readers/ris_reader.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/cff_v1.2.0.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/commonmeta_v0.12.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/commonmeta_v0.13.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/commonmeta_v0.14.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/commonmeta_v0.15.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/commonmeta_v0.16.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/AccessIndicators.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3-elements.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1-elements.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1-mathml3-elements.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1-mathml3.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/clinicaltrials.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/common5.3.1.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/crossref5.3.1.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/crossref_query_output3.0.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/fundref.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/module-ali.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/relations.xsd +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref-v0.2.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/csl-data.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/datacite-v4.5.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/datacite-v4.5pr.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/ietf-bcp-47.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/iso-8601.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/spdx/licenses.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/spdx-schema.json +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/apa.csl +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/chicago-author-date.csl +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/harvard-cite-them-right.csl +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/ieee.csl +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/modern-language-association.csl +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/vancouver.csl +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/schema_utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/translators.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/utils.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/__init__.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/bibtex_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/citation_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/commonmeta_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/crossref_xml_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/csl_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/datacite_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/inveniordm_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/ris_writer.py +0 -0
- {commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/writers/schema_org_writer.py +0 -0
@@ -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
|
@@ -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
|
[project]
|
2
2
|
name = "commonmeta-py"
|
3
|
-
version = "0.
|
3
|
+
version = "0.86"
|
4
4
|
description = "Library for conversions to/from the Commonmeta scholarly metadata format"
|
5
5
|
authors = [{ name = "Martin Fenner", email = "martin@front-matter.io" }]
|
6
6
|
requires-python = ">=3.9,<4.0"
|
@@ -16,10 +16,6 @@ keywords = [
|
|
16
16
|
"datacite",
|
17
17
|
]
|
18
18
|
dependencies = [
|
19
|
-
"docutils>=0.19,<0.22",
|
20
|
-
"setuptools>=70,<76",
|
21
|
-
"sphinxcontrib-issuetracker>=0.11,<0.12",
|
22
|
-
"sphinx-autodoc-typehints>=1.19,<4.0",
|
23
19
|
"httpx>=0.28,<0.29",
|
24
20
|
"dateparser>=1.1.7,<2",
|
25
21
|
"types-dateparser~=1.1",
|
@@ -30,11 +26,10 @@ dependencies = [
|
|
30
26
|
"types-beautifulsoup4~=4.11",
|
31
27
|
"simplejson~=3.18",
|
32
28
|
"bibtexparser~=1.4",
|
33
|
-
"citeproc-py-styles
|
34
|
-
"citeproc-py>=0.
|
29
|
+
"citeproc-py-styles~=0.1.3",
|
30
|
+
"citeproc-py>=0.7,<0.9",
|
35
31
|
"jsonschema~=4.21",
|
36
32
|
"base32_lib~=1.0",
|
37
|
-
"nbstripout>=0.6,<0.9",
|
38
33
|
"datacite~=1.1",
|
39
34
|
"xmltodict>=0.12,<0.15",
|
40
35
|
"types-xmltodict>=0.13,<0.15",
|
@@ -46,9 +41,6 @@ dependencies = [
|
|
46
41
|
"python-dateutil>=2.8.2,<3",
|
47
42
|
"nh3>=0.2.14,<0.3",
|
48
43
|
"pyjwt>=2.8.0,<3",
|
49
|
-
"asyncio>=3.4.3,<4",
|
50
|
-
"asyncclick>=8.1.7.1,<9",
|
51
|
-
"anyio>=4.2.0,<5",
|
52
44
|
"orjson>=3.9.14,<4",
|
53
45
|
"orjsonl>=1.0.0,<2",
|
54
46
|
"pikepdf>=8.14,<10.0",
|
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
|
{commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/AccessIndicators.xsd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/JATS-journalpublishing1.xsd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/crossref/crossref_query_output3.0.xsd
RENAMED
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
|
{commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/chicago-author-date.csl
RENAMED
File without changes
|
{commonmeta_py-0.84 → commonmeta_py-0.86}/commonmeta/resources/styles/harvard-cite-them-right.csl
RENAMED
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
|