commonmeta-py 0.100__py3-none-any.whl → 0.103__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.
Files changed (33) hide show
  1. commonmeta/__init__.py +51 -50
  2. commonmeta/author_utils.py +7 -1
  3. commonmeta/base_utils.py +1 -0
  4. commonmeta/constants.py +35 -1
  5. commonmeta/crossref_utils.py +11 -8
  6. commonmeta/date_utils.py +1 -0
  7. commonmeta/doi_utils.py +42 -14
  8. commonmeta/metadata.py +209 -100
  9. commonmeta/readers/cff_reader.py +1 -0
  10. commonmeta/readers/codemeta_reader.py +1 -0
  11. commonmeta/readers/commonmeta_reader.py +1 -0
  12. commonmeta/readers/crossref_reader.py +19 -18
  13. commonmeta/readers/csl_reader.py +4 -1
  14. commonmeta/readers/inveniordm_reader.py +14 -9
  15. commonmeta/readers/json_feed_reader.py +9 -3
  16. commonmeta/readers/kbase_reader.py +1 -0
  17. commonmeta/readers/openalex_reader.py +380 -0
  18. commonmeta/readers/ris_reader.py +1 -0
  19. commonmeta/readers/schema_org_reader.py +2 -3
  20. commonmeta/schema_utils.py +1 -0
  21. commonmeta/utils.py +126 -63
  22. commonmeta/writers/bibtex_writer.py +1 -0
  23. commonmeta/writers/citation_writer.py +1 -0
  24. commonmeta/writers/crossref_xml_writer.py +1 -0
  25. commonmeta/writers/csl_writer.py +1 -0
  26. commonmeta/writers/datacite_writer.py +1 -0
  27. commonmeta/writers/ris_writer.py +1 -0
  28. commonmeta/writers/schema_org_writer.py +1 -0
  29. {commonmeta_py-0.100.dist-info → commonmeta_py-0.103.dist-info}/METADATA +5 -8
  30. {commonmeta_py-0.100.dist-info → commonmeta_py-0.103.dist-info}/RECORD +33 -32
  31. {commonmeta_py-0.100.dist-info → commonmeta_py-0.103.dist-info}/licenses/LICENSE +1 -1
  32. {commonmeta_py-0.100.dist-info → commonmeta_py-0.103.dist-info}/WHEEL +0 -0
  33. {commonmeta_py-0.100.dist-info → commonmeta_py-0.103.dist-info}/entry_points.txt +0 -0
@@ -1,4 +1,5 @@
1
1
  """Schema.org writer for commonmeta-py"""
2
+
2
3
  import orjson as json
3
4
  from ..utils import to_schema_org_creators, github_as_repo_url, get_language
4
5
  from ..base_utils import compact, wrap, presence, parse_attributes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commonmeta-py
3
- Version: 0.100
3
+ Version: 0.103
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
@@ -59,11 +59,7 @@ commonmeta-py uses semantic versioning. Currently, its major version number is s
59
59
 
60
60
  Stable version
61
61
 
62
- pip (or pip3) install commonmeta-py
63
-
64
- Dev version
65
-
66
- pip install git+https://github.com/front-matter/commonmeta-py.git#egg=commonmeta-py
62
+ uv add commonmeta-py
67
63
 
68
64
  ## Supported Metadata Formats
69
65
 
@@ -88,9 +84,10 @@ Commometa-py reads and/or writes these metadata formats:
88
84
  | [RIS](http://en.wikipedia.org/wiki/RIS_(file_format)) | ris | application/x-research-info-systems | yes | yes |
89
85
  | [InvenioRDM](https://inveniordm.docs.cern.ch/reference/metadata/) | inveniordm | application/vnd.inveniordm.v1+json | yes | yes |
90
86
  | [JSON Feed](https://www.jsonfeed.org/) | json_feed_item | application/feed+json | yes | later |
87
+ | [OpenAlex](https://www.openalex.org/) | openalex | | yes | no |
91
88
 
92
89
  _commonmeta_: the Commonmeta format is the native format for the library and used internally.
93
- _Planned_: we plan to implement this format for the v1.0 public release.
90
+ _Planned_: we plan to implement this format for the v1.0 public release.
94
91
  _Later_: we plan to implement this format in a later release.
95
92
 
96
93
  ## Documentation
@@ -99,6 +96,6 @@ Documentation (work in progress) for using the library is available at the [comm
99
96
 
100
97
  ## Meta
101
98
 
102
- Please note that this project is released with a [Contributor Code of Conduct](https://github.com/front-matter/commonmeta-py/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
99
+ Please note that this project is released with a [Contributor Code of Conduct](https://github.com/front-matter/commonmeta-py/blob/main/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
103
100
 
104
101
  License: [MIT](https://github.com/front-matter/commonmeta-py/blob/main/LICENSE)
@@ -1,31 +1,32 @@
1
- commonmeta/__init__.py,sha256=Sf64rtMI7hFXm_2tDp5vJzwaeNBrANemisXsA5Bj3-o,1912
1
+ commonmeta/__init__.py,sha256=5sJSfHhI1zKi-tT9a8UaWhlPu74UT4ilgC5MyFtWJYo,1933
2
2
  commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
3
- commonmeta/author_utils.py,sha256=ctPwQ08ECEQUfQvJ4uE7KWEUvMQK04ALk4ZW2dsxgsQ,8479
4
- commonmeta/base_utils.py,sha256=AsUElA5kT2fw_Osy7Uaj2F6MKeq9yB7d5f2V-h2lh7c,3750
3
+ commonmeta/author_utils.py,sha256=4ftyfy0tZRtP8bJ_PYdrNS8Z76FNBJ38sHj5EMhds1Y,8585
4
+ commonmeta/base_utils.py,sha256=-HKaIts_LzTKNsdqSAw52r5zx1baGawSQawGh8l5Sio,3751
5
5
  commonmeta/cli.py,sha256=sOI9BJTePnljVcXcZ95N7TKXDT283XpjUaak7bMnbr0,6076
6
- commonmeta/constants.py,sha256=aZ7v-5bomVUQ1D79ubeSGHvlHhQvtVOcTvjLy-Wagvw,18348
7
- commonmeta/crossref_utils.py,sha256=ijcdAdV2HHUXP2twIKIQP9Ln2xsysU3n9nwQDg-ZAxU,22224
8
- commonmeta/date_utils.py,sha256=rJRV4YmWKQWU__iAV8www3cqwaefC0iRKyHwvxrr_XY,6316
9
- commonmeta/doi_utils.py,sha256=ZBhHS66AjIHtdWlm3HGy4TIhgiesxqF4vtq4CeqaKPk,9242
10
- commonmeta/metadata.py,sha256=cjvCcxW1FMtKCbNKan0zXX0FN6z5orHFGPYsgkp6fSI,12480
11
- commonmeta/schema_utils.py,sha256=2DmwMAcasmNa0xBdxxeS6bIvoHz63sODk_ja5UYFTqk,915
6
+ commonmeta/constants.py,sha256=NuugDPtaAlYx7d-0WKPHNO-qnjt4rzcj-EbzL2vSi2Q,19259
7
+ commonmeta/crossref_utils.py,sha256=mEXNP7LQXcJyEmCqcpWxi_VI3GU1ZD_XvarYjUMxPL0,22284
8
+ commonmeta/date_utils.py,sha256=WW0tg0mgHdORPhAHt9nJIuVawhepZtUCouW-SdqI1OM,6317
9
+ commonmeta/doi_utils.py,sha256=bM4D3ypyOIjeMcT5C5vx-ul-7wPGMeAOVHep9QnYAqE,9911
10
+ commonmeta/metadata.py,sha256=8oe0GlqVq8oakjOyBTDK7BjTIxMmRoMgLuLg5fCXalU,16539
11
+ commonmeta/schema_utils.py,sha256=GFFusU6D9atmjiQ7SS-rQ5cqrOEQlwYzF3q1CnOUXRA,916
12
12
  commonmeta/translators.py,sha256=RpGJtKNLjmz41VREZDY7KyyE2eXOi8j7m-da4jHmknI,1362
13
- commonmeta/utils.py,sha256=nWSdkc1jNkhSnv46MKScExOUlD--wMP_QCRpy8Rnq_g,44989
13
+ commonmeta/utils.py,sha256=7IWcP0r1oHZvLrJxyl6uadLpLy13S3muP7RWV8cGp_4,46493
14
14
  commonmeta/readers/__init__.py,sha256=vOf7UsOKNoh_ZCuyexxhAmPMt8wjB-pF_CfpWRaN8pk,45
15
15
  commonmeta/readers/bibtex_reader.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- commonmeta/readers/cff_reader.py,sha256=5HMFUvjE1zb-zfpQSNM8vtB0YunD0reom99hn8N0xKc,6144
17
- commonmeta/readers/codemeta_reader.py,sha256=efv2V1WPfdrKLQNxgSvoripdWqS2M6CwXWSGiRuzRtU,3658
18
- commonmeta/readers/commonmeta_reader.py,sha256=gNjdsJ-671-pXmBdzy1NybkQ29q9_qtorFoK2D-zStA,302
19
- commonmeta/readers/crossref_reader.py,sha256=mzPNvxtcFJyVmA-zKjdEzk4L1VU5NJfokiA4dzrWues,12539
16
+ commonmeta/readers/cff_reader.py,sha256=V379XNQUc0M-cDxNPwHqabu9b0NTscPUJpM9DXNgL_c,6145
17
+ commonmeta/readers/codemeta_reader.py,sha256=RpzyHs07Jfix4i0mYjW48ZLuTrMPTMQ9RenowjQy-Fc,3659
18
+ commonmeta/readers/commonmeta_reader.py,sha256=46XrCr2whkUP4uiaNiFXS7ABwowcRdWcLG-3OcfhVdk,303
19
+ commonmeta/readers/crossref_reader.py,sha256=53Up2X6ff2iVPXLoRjjhTSa5rWrjgT8FObclU50Gazc,12540
20
20
  commonmeta/readers/crossref_xml_reader.py,sha256=yZOh66_4tVS5i0TdEyOa48ckpl7_cj69hfZnaA9pjM8,18723
21
- commonmeta/readers/csl_reader.py,sha256=ynqJeqK9TlHFsmgMREPmKGlcj6tVycpnqDN0N0LjIpw,3201
21
+ commonmeta/readers/csl_reader.py,sha256=OxzC2AZKfv43BCah4XGYvlK_LUK-5mxXFcjdzB5vv_o,3216
22
22
  commonmeta/readers/datacite_reader.py,sha256=CdOtxhthrakBoQMsLTdPx6sUCmqtEWo5ICYE6ZsWDdo,12026
23
23
  commonmeta/readers/datacite_xml_reader.py,sha256=nhnO92fZihr1HZlbXjyem-HJXc9_DWLgJ2zeltuPMIg,13041
24
- commonmeta/readers/inveniordm_reader.py,sha256=F0syoLZ3amzkrEk8efb9WxwhMDY8QM8ctOH32E3fGqM,8358
25
- commonmeta/readers/json_feed_reader.py,sha256=L2zl0Iv8F9o9JC-qjF_j7K5Lw_iJwa5LrQCNx-sxfDE,14437
26
- commonmeta/readers/kbase_reader.py,sha256=ehKXQsJyPCtaq2FmBxNb2Jb5Nktpx8pNscpmEM6N0A4,6763
27
- commonmeta/readers/ris_reader.py,sha256=v6qOd-i2OcMTEFy5RGd3MlYthJcYSU6yzmZ5yHDzmII,3677
28
- commonmeta/readers/schema_org_reader.py,sha256=78vYWCZqrYevZsSbx7oVVLm3mlNzi323WNW5E_PL9o0,17234
24
+ commonmeta/readers/inveniordm_reader.py,sha256=qFPXdOGArWwsb09MdPf0uCsXEkL19AgsRSgsH7KT9Pw,8437
25
+ commonmeta/readers/json_feed_reader.py,sha256=uiFAeDmgDOpoZR7Zah2uLDsY7xrkxpkg59bo3obZ8uk,14477
26
+ commonmeta/readers/kbase_reader.py,sha256=KH3loJvuq2bm8zAYIUG7hTsr5-2Anj3NQvoJUDiqmss,6764
27
+ commonmeta/readers/openalex_reader.py,sha256=YbYwSbp_1aBHLnVJkITqhLEwE98yqUx2L3LJ0G8R_0k,12205
28
+ commonmeta/readers/ris_reader.py,sha256=ttkB1ZeLZW6jry-r8nFCbEQ0gozlsNUBeRJGMJ6qKfY,3678
29
+ commonmeta/readers/schema_org_reader.py,sha256=oZoLG9okMxzlyCuX6oNNNFwvGCFpQ3W2Pz2TpXr3vkA,17224
29
30
  commonmeta/resources/cff_v1.2.0.json,sha256=MpfjDYgX7fN9PLiG54ISZ2uu9WItNqfh-yaRuTf6Ptg,46691
30
31
  commonmeta/resources/commonmeta_v0.12.json,sha256=HUSNReXh2JN3Q6YWSt7CE69js8dh50OlpMYGTyU98oU,16762
31
32
  commonmeta/resources/commonmeta_v0.13.json,sha256=2-WSZGijR13zVu97S_YHXr-cyeLW7hzHXYMlr6nIjdw,15787
@@ -61,17 +62,17 @@ commonmeta/resources/styles/ieee.csl,sha256=DfuN__z8FZ5Rcdaj_Myc5y_FmB-fHwfRVTeS
61
62
  commonmeta/resources/styles/modern-language-association.csl,sha256=HI2iU4krze1aHYc9VSQCUyw_2I6fEQYnA9xIWo-xNus,11594
62
63
  commonmeta/resources/styles/vancouver.csl,sha256=lun3_i2oTilgsANk4LjFao2UDPQlGj_hgFgKAWC_DF8,12878
63
64
  commonmeta/writers/__init__.py,sha256=47-snms6xBHkoEXKYV1DBtH1npAtlVtvY29Z4Zr45qI,45
64
- commonmeta/writers/bibtex_writer.py,sha256=s3hIJIgWvSG7TAriZMRQEAyuitw6ebwWSI1YcYFQ-do,4971
65
- commonmeta/writers/citation_writer.py,sha256=EQRmbA9n5RDvgeo3emF7sBv9fcM992ikd-S8SrIX4yo,2356
65
+ commonmeta/writers/bibtex_writer.py,sha256=RjxpFt19N2PjX7cNtvN8kMYTxLWp_KhLYTsQNxYiC-4,4972
66
+ commonmeta/writers/citation_writer.py,sha256=7CIC6zuT87dkqTDx-r7xvdbXauAFopNiBvR4CBThr5U,2357
66
67
  commonmeta/writers/commonmeta_writer.py,sha256=mu-yXQvQs_xdYM4MxbTTxxYB5n0lJA5BqiYfRPV562Q,1870
67
- commonmeta/writers/crossref_xml_writer.py,sha256=0Ds494RnXfdfjWw5CLX1kwV2zP7gqffdVqO-X74Uc6c,492
68
- commonmeta/writers/csl_writer.py,sha256=W3lryCg4TwXEoBuNhEc2GdU6fe1OrDZ37s1-0h1IGzc,2807
69
- commonmeta/writers/datacite_writer.py,sha256=UpDp4Brg5xrmS5T3QYoNi6PPXKdRxAo254eTqnlmNyQ,6304
68
+ commonmeta/writers/crossref_xml_writer.py,sha256=ckEOL1q7x8obWLzoMrLuOiDuRKiXHammI1m_GA85BVg,493
69
+ commonmeta/writers/csl_writer.py,sha256=_5tmPFLzEIaRgYI9Wz00nPwtfXmBuukCrTVUEFuf83c,2808
70
+ commonmeta/writers/datacite_writer.py,sha256=rygkSNUWdF4lvGd4BsjrlBfPHHsSLwkFp-aYLGOWNiU,6305
70
71
  commonmeta/writers/inveniordm_writer.py,sha256=M_VmBZ_E5x_BHSgMjt2u70c34Eij2ngoaDwYWOrJzkg,11429
71
- commonmeta/writers/ris_writer.py,sha256=AcnCszS3WY9lF594NbFBtLylsA8ownnYp_XLQJ84Ios,2093
72
- commonmeta/writers/schema_org_writer.py,sha256=5j002uCNLdlScZMNQmPjodcVWqaBh2z38zL1H4lo2hY,5741
73
- commonmeta_py-0.100.dist-info/METADATA,sha256=GzH0CKFYYZPbBzD1_wvEahbjKeMNa9Uo__0wHJmQaAM,7430
74
- commonmeta_py-0.100.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
75
- commonmeta_py-0.100.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
76
- commonmeta_py-0.100.dist-info/licenses/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
77
- commonmeta_py-0.100.dist-info/RECORD,,
72
+ commonmeta/writers/ris_writer.py,sha256=CXd9MiSHOMLReeGmr1moqteiq4x8AtLNYVS60s-aq8I,2094
73
+ commonmeta/writers/schema_org_writer.py,sha256=J2Y-krzyhgBZ6n__S_YvdjUtwiCm-RUtpGA_esFZUwg,5742
74
+ commonmeta_py-0.103.dist-info/METADATA,sha256=2r3bpGd72_9phuGCr0lGH6-v3rGnshQSezPU8An18GE,7444
75
+ commonmeta_py-0.103.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
76
+ commonmeta_py-0.103.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
77
+ commonmeta_py-0.103.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
78
+ commonmeta_py-0.103.dist-info/RECORD,,
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022-2024 Front Matter
3
+ Copyright (c) 2022-2025 Front Matter
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal