commonmeta-py 0.103__py3-none-any.whl → 0.104__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 +1 -1
- commonmeta/cli.py +6 -5
- commonmeta/resources/commonmeta_v0.16.json +21 -5
- {commonmeta_py-0.103.dist-info → commonmeta_py-0.104.dist-info}/METADATA +1 -1
- {commonmeta_py-0.103.dist-info → commonmeta_py-0.104.dist-info}/RECORD +8 -8
- {commonmeta_py-0.103.dist-info → commonmeta_py-0.104.dist-info}/WHEEL +0 -0
- {commonmeta_py-0.103.dist-info → commonmeta_py-0.104.dist-info}/entry_points.txt +0 -0
- {commonmeta_py-0.103.dist-info → commonmeta_py-0.104.dist-info}/licenses/LICENSE +0 -0
commonmeta/__init__.py
CHANGED
commonmeta/cli.py
CHANGED
@@ -1,16 +1,17 @@
|
|
1
|
-
import click
|
2
1
|
import time
|
3
|
-
|
2
|
+
|
3
|
+
import click
|
4
4
|
import orjson as json
|
5
|
+
import pydash as py_
|
5
6
|
|
6
7
|
from commonmeta import Metadata, MetadataList # __version__
|
7
8
|
from commonmeta.api_utils import update_ghost_post_via_api
|
8
|
-
from commonmeta.doi_utils import
|
9
|
+
from commonmeta.doi_utils import decode_doi, encode_doi, validate_prefix
|
10
|
+
from commonmeta.readers.crossref_reader import get_random_crossref_id
|
11
|
+
from commonmeta.readers.datacite_reader import get_random_datacite_id
|
9
12
|
from commonmeta.readers.json_feed_reader import (
|
10
13
|
get_json_feed_item_uuid,
|
11
14
|
)
|
12
|
-
from commonmeta.readers.crossref_reader import get_random_crossref_id
|
13
|
-
from commonmeta.readers.datacite_reader import get_random_datacite_id
|
14
15
|
|
15
16
|
|
16
17
|
@click.group()
|
@@ -5,8 +5,7 @@
|
|
5
5
|
"description": "JSON representation of the Commonmeta schema.",
|
6
6
|
"commonmeta": {
|
7
7
|
"anyOf": [
|
8
|
-
{ "$ref": "#/definitions/commonmeta"
|
9
|
-
},
|
8
|
+
{ "$ref": "#/definitions/commonmeta" },
|
10
9
|
{
|
11
10
|
"type": "array",
|
12
11
|
"description": "An array of commonmeta objects.",
|
@@ -196,7 +195,13 @@
|
|
196
195
|
"type": {
|
197
196
|
"description": "The type of the description.",
|
198
197
|
"type": "string",
|
199
|
-
"enum": [
|
198
|
+
"enum": [
|
199
|
+
"Abstract",
|
200
|
+
"Summary",
|
201
|
+
"Methods",
|
202
|
+
"TechnicalInfo",
|
203
|
+
"Other"
|
204
|
+
]
|
200
205
|
},
|
201
206
|
"language": {
|
202
207
|
"description": "The language of the title. Use one of the language codes from the IETF BCP 47 standard.",
|
@@ -267,7 +272,9 @@
|
|
267
272
|
"items": { "$ref": "#/definitions/geoLocationPoint" },
|
268
273
|
"minItems": 4
|
269
274
|
},
|
270
|
-
"inPolygonPoint": {
|
275
|
+
"inPolygonPoint": {
|
276
|
+
"$ref": "#/definitions/geoLocationPoint"
|
277
|
+
}
|
271
278
|
},
|
272
279
|
"required": ["polygonPoints"]
|
273
280
|
},
|
@@ -294,6 +301,7 @@
|
|
294
301
|
"Handle",
|
295
302
|
"ISBN",
|
296
303
|
"ISSN",
|
304
|
+
"OpenAlex",
|
297
305
|
"PMID",
|
298
306
|
"PMCID",
|
299
307
|
"PURL",
|
@@ -323,7 +331,15 @@
|
|
323
331
|
"provider": {
|
324
332
|
"description": "The provider of the resource. This can be a DOI registration agency or a repository.",
|
325
333
|
"type": "string",
|
326
|
-
"enum": [
|
334
|
+
"enum": [
|
335
|
+
"Crossref",
|
336
|
+
"DataCite",
|
337
|
+
"GitHub",
|
338
|
+
"JaLC",
|
339
|
+
"KISTI",
|
340
|
+
"mEDRA",
|
341
|
+
"OP"
|
342
|
+
]
|
327
343
|
},
|
328
344
|
"publisher": {
|
329
345
|
"description": "The publisher of the resource.",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: commonmeta-py
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.104
|
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
|
@@ -1,8 +1,8 @@
|
|
1
|
-
commonmeta/__init__.py,sha256=
|
1
|
+
commonmeta/__init__.py,sha256=5F2THw28J2xpXhEitpTdQQj3DnYrYKJYmWxNO5ZBQUA,1933
|
2
2
|
commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
|
3
3
|
commonmeta/author_utils.py,sha256=4ftyfy0tZRtP8bJ_PYdrNS8Z76FNBJ38sHj5EMhds1Y,8585
|
4
4
|
commonmeta/base_utils.py,sha256=-HKaIts_LzTKNsdqSAw52r5zx1baGawSQawGh8l5Sio,3751
|
5
|
-
commonmeta/cli.py,sha256=
|
5
|
+
commonmeta/cli.py,sha256=3wC9nsc1J8746ZAfltt7hDHc4c9nSYp-smO-fR3UGC8,6077
|
6
6
|
commonmeta/constants.py,sha256=NuugDPtaAlYx7d-0WKPHNO-qnjt4rzcj-EbzL2vSi2Q,19259
|
7
7
|
commonmeta/crossref_utils.py,sha256=mEXNP7LQXcJyEmCqcpWxi_VI3GU1ZD_XvarYjUMxPL0,22284
|
8
8
|
commonmeta/date_utils.py,sha256=WW0tg0mgHdORPhAHt9nJIuVawhepZtUCouW-SdqI1OM,6317
|
@@ -32,7 +32,7 @@ commonmeta/resources/commonmeta_v0.12.json,sha256=HUSNReXh2JN3Q6YWSt7CE69js8dh50
|
|
32
32
|
commonmeta/resources/commonmeta_v0.13.json,sha256=2-WSZGijR13zVu97S_YHXr-cyeLW7hzHXYMlr6nIjdw,15787
|
33
33
|
commonmeta/resources/commonmeta_v0.14.json,sha256=nACmkTe4IrZkygd5AeJnAv9P4EWfzCwW9oL5AhubvnE,17657
|
34
34
|
commonmeta/resources/commonmeta_v0.15.json,sha256=kC9xmtIwrGpl7V1vcXKWthWejYvtKfqOqenBCRSjANc,17753
|
35
|
-
commonmeta/resources/commonmeta_v0.16.json,sha256=
|
35
|
+
commonmeta/resources/commonmeta_v0.16.json,sha256=2TsgX69tvEUfG-k0HUUfKepCQ3z9u6lcbm2U-esOS5g,18976
|
36
36
|
commonmeta/resources/crossref-v0.2.json,sha256=THbFem4IDSE-TFNOtP1-NOmZhED2dlLBso9RdGMbGIY,1431
|
37
37
|
commonmeta/resources/csl-data.json,sha256=I7LAYtdSYGD0YxuwS0s7ojfkiEhCU-MnvQD6aRhhuBE,12222
|
38
38
|
commonmeta/resources/datacite-v4.5.json,sha256=ocpQNSbORPJf5Ogidy6M6EHundgv7DSgIqRco02KgM4,18970
|
@@ -71,8 +71,8 @@ commonmeta/writers/datacite_writer.py,sha256=rygkSNUWdF4lvGd4BsjrlBfPHHsSLwkFp-a
|
|
71
71
|
commonmeta/writers/inveniordm_writer.py,sha256=M_VmBZ_E5x_BHSgMjt2u70c34Eij2ngoaDwYWOrJzkg,11429
|
72
72
|
commonmeta/writers/ris_writer.py,sha256=CXd9MiSHOMLReeGmr1moqteiq4x8AtLNYVS60s-aq8I,2094
|
73
73
|
commonmeta/writers/schema_org_writer.py,sha256=J2Y-krzyhgBZ6n__S_YvdjUtwiCm-RUtpGA_esFZUwg,5742
|
74
|
-
commonmeta_py-0.
|
75
|
-
commonmeta_py-0.
|
76
|
-
commonmeta_py-0.
|
77
|
-
commonmeta_py-0.
|
78
|
-
commonmeta_py-0.
|
74
|
+
commonmeta_py-0.104.dist-info/METADATA,sha256=wBlMlgara3y9vSJyh-kzHDoHocfxA95LwBM4dO248LA,7444
|
75
|
+
commonmeta_py-0.104.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
76
|
+
commonmeta_py-0.104.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
|
77
|
+
commonmeta_py-0.104.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
|
78
|
+
commonmeta_py-0.104.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|