invenio-subjects-mesh-lite 2023.1.4__tar.gz → 2024.3.2__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.
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/MANIFEST.in +1 -0
- {invenio-subjects-mesh-lite-2023.1.4/invenio_subjects_mesh_lite.egg-info → invenio-subjects-mesh-lite-2024.3.2}/PKG-INFO +22 -29
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/README.md +19 -21
- invenio-subjects-mesh-lite-2024.3.2/invenio_subjects_mesh_lite/vocabularies/subjects_mesh.csv +30173 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite/vocabularies/vocabularies.yaml +1 -1
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2/invenio_subjects_mesh_lite.egg-info}/PKG-INFO +22 -29
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite.egg-info/SOURCES.txt +1 -1
- invenio-subjects-mesh-lite-2024.3.2/invenio_subjects_mesh_lite.egg-info/requires.txt +7 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/pyproject.toml +13 -9
- invenio-subjects-mesh-lite-2023.1.4/invenio_subjects_mesh_lite/vocabularies/subjects_mesh.jsonl +0 -29865
- invenio-subjects-mesh-lite-2023.1.4/invenio_subjects_mesh_lite.egg-info/requires.txt +0 -11
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/CHANGES.md +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/LICENSE +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite/__init__.py +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite/vocabularies/__init__.py +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite.egg-info/dependency_links.txt +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite.egg-info/entry_points.txt +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/invenio_subjects_mesh_lite.egg-info/top_level.txt +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/setup.cfg +0 -0
- {invenio-subjects-mesh-lite-2023.1.4 → invenio-subjects-mesh-lite-2024.3.2}/tests/test_invenio_subjects_mesh_lite.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: invenio-subjects-mesh-lite
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2024.3.2
|
|
4
4
|
Summary: MeSH subject terms without qualifiers
|
|
5
5
|
Author-email: Northwestern University <DL_FSM_GDS@e.northwestern.edu>
|
|
6
6
|
License: MIT License
|
|
@@ -38,20 +38,15 @@ Classifier: Programming Language :: Python :: 3
|
|
|
38
38
|
Classifier: Programming Language :: Python :: 3.8
|
|
39
39
|
Classifier: Programming Language :: Python :: 3.9
|
|
40
40
|
Classifier: Programming Language :: Python :: 3.10
|
|
41
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
42
41
|
Requires-Python: >=3.8
|
|
43
42
|
Description-Content-Type: text/markdown
|
|
44
43
|
License-File: LICENSE
|
|
44
|
+
Requires-Dist: galter-subjects-utils<2.0,>=0.3.3
|
|
45
45
|
Provides-Extra: dev
|
|
46
46
|
Requires-Dist: check-manifest>=0.49; extra == "dev"
|
|
47
47
|
Requires-Dist: invoke<3.0,>=2.2; extra == "dev"
|
|
48
|
-
Requires-Dist: galter-subjects-utils<2.0,>=0.1.0; extra == "dev"
|
|
49
48
|
Requires-Dist: pyyaml>=5.4.1; extra == "dev"
|
|
50
|
-
Requires-Dist: pytest
|
|
51
|
-
Requires-Dist: pytest-cov>=3.0.0; extra == "dev"
|
|
52
|
-
Requires-Dist: pytest-isort>=3.0.0; extra == "dev"
|
|
53
|
-
Requires-Dist: pytest-pycodestyle>=2.2.0; extra == "dev"
|
|
54
|
-
Requires-Dist: pytest-pydocstyle>=2.2.3; extra == "dev"
|
|
49
|
+
Requires-Dist: pytest-invenio<3.0.0,>=2.1.1; extra == "dev"
|
|
55
50
|
|
|
56
51
|
# invenio-subjects-mesh-lite
|
|
57
52
|
|
|
@@ -95,38 +90,36 @@ There are 2 types of users for this package. Instance administrators and package
|
|
|
95
90
|
|
|
96
91
|
For instance administrators, after you have installed the extension as per the steps above, you will want to reload your instance's fixtures: `pipenv run invenio rdm-records fixtures`. This will install the new terms in your instance.
|
|
97
92
|
|
|
98
|
-
Updating
|
|
99
|
-
|
|
100
|
-
### Maintainers
|
|
101
|
-
|
|
102
|
-
When a new list of MeSH term comes out, this package should be updated. Here we show how.
|
|
103
|
-
|
|
104
|
-
0. Install this package locally with the `dev` extra:
|
|
93
|
+
Alternatively, or if you want to update your already loaded subjects to a new listing (e.g. from one year's list to another), you can update your instance's MeSH subjects as per below. Updating subjects this way takes care of everything for you: the subjects themselves and the records/drafts using those subjects. **WARNING** This operation can _remove_ subjects.
|
|
105
94
|
|
|
106
95
|
```bash
|
|
107
|
-
|
|
96
|
+
# In your instance's project
|
|
97
|
+
# Download up-to-date listings
|
|
98
|
+
pipenv run invenio galter_subjects mesh download -d /path/to/downloads/storage/ -y YEAR
|
|
99
|
+
# Generate file containg deltas to transition your instance to the downloaded listing
|
|
100
|
+
pipenv run invenio galter_subjects mesh deltas -d /path/to/downloads/storage/ -y YEAR -f topic -o deltas_mesh.csv
|
|
101
|
+
# Update your instance - *this operation will modify your instance*
|
|
102
|
+
pipenv run invenio galter_subjects update deltas_mesh.csv
|
|
108
103
|
```
|
|
109
104
|
|
|
110
|
-
|
|
105
|
+
Look at the help text for these commands to see additional options that can be passed.
|
|
106
|
+
In particular, options for `galter_subjects update` allow you to store renamed, replaced or removed subjects on records according to a template of your choice.
|
|
111
107
|
|
|
112
|
-
```bash
|
|
113
|
-
pipenv run galter-subjects-utils mesh --filter topic --output-file invenio_subjects_mesh_lite/vocabularies/subjects_mesh.jsonl
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
This will
|
|
117
108
|
|
|
118
|
-
|
|
119
|
-
2. Read it filtering for topics
|
|
120
|
-
3. Convert terms to InvenioRDM subjects format
|
|
121
|
-
4. Write those to the specified file
|
|
109
|
+
### Maintainers
|
|
122
110
|
|
|
123
|
-
|
|
111
|
+
When a new list of MeSH term comes out, this package should be updated. Here we show how.
|
|
124
112
|
|
|
125
113
|
```bash
|
|
126
|
-
|
|
114
|
+
# In this project
|
|
115
|
+
# Download up-to-date listings
|
|
116
|
+
pipenv run invenio galter_subjects mesh download -d /path/to/downloads/storage/ -y YEAR
|
|
117
|
+
# Generate file containing initial listing
|
|
118
|
+
pipenv run invenio galter_subjects mesh file -d /path/to/downloads/storage/ -y YEAR -f topic -o invenio_subjects_mesh_lite/vocabularies/subjects_mesh.csv
|
|
127
119
|
```
|
|
128
120
|
|
|
129
|
-
|
|
121
|
+
When you are happy with the list, bump the version in `pyproject.toml` and release it.
|
|
122
|
+
|
|
130
123
|
|
|
131
124
|
## Development
|
|
132
125
|
|
|
@@ -40,38 +40,36 @@ There are 2 types of users for this package. Instance administrators and package
|
|
|
40
40
|
|
|
41
41
|
For instance administrators, after you have installed the extension as per the steps above, you will want to reload your instance's fixtures: `pipenv run invenio rdm-records fixtures`. This will install the new terms in your instance.
|
|
42
42
|
|
|
43
|
-
Updating
|
|
44
|
-
|
|
45
|
-
### Maintainers
|
|
46
|
-
|
|
47
|
-
When a new list of MeSH term comes out, this package should be updated. Here we show how.
|
|
48
|
-
|
|
49
|
-
0. Install this package locally with the `dev` extra:
|
|
43
|
+
Alternatively, or if you want to update your already loaded subjects to a new listing (e.g. from one year's list to another), you can update your instance's MeSH subjects as per below. Updating subjects this way takes care of everything for you: the subjects themselves and the records/drafts using those subjects. **WARNING** This operation can _remove_ subjects.
|
|
50
44
|
|
|
51
45
|
```bash
|
|
52
|
-
|
|
46
|
+
# In your instance's project
|
|
47
|
+
# Download up-to-date listings
|
|
48
|
+
pipenv run invenio galter_subjects mesh download -d /path/to/downloads/storage/ -y YEAR
|
|
49
|
+
# Generate file containg deltas to transition your instance to the downloaded listing
|
|
50
|
+
pipenv run invenio galter_subjects mesh deltas -d /path/to/downloads/storage/ -y YEAR -f topic -o deltas_mesh.csv
|
|
51
|
+
# Update your instance - *this operation will modify your instance*
|
|
52
|
+
pipenv run invenio galter_subjects update deltas_mesh.csv
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Look at the help text for these commands to see additional options that can be passed.
|
|
56
|
+
In particular, options for `galter_subjects update` allow you to store renamed, replaced or removed subjects on records according to a template of your choice.
|
|
56
57
|
|
|
57
|
-
```bash
|
|
58
|
-
pipenv run galter-subjects-utils mesh --filter topic --output-file invenio_subjects_mesh_lite/vocabularies/subjects_mesh.jsonl
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
This will
|
|
62
58
|
|
|
63
|
-
|
|
64
|
-
2. Read it filtering for topics
|
|
65
|
-
3. Convert terms to InvenioRDM subjects format
|
|
66
|
-
4. Write those to the specified file
|
|
59
|
+
### Maintainers
|
|
67
60
|
|
|
68
|
-
|
|
61
|
+
When a new list of MeSH term comes out, this package should be updated. Here we show how.
|
|
69
62
|
|
|
70
63
|
```bash
|
|
71
|
-
|
|
64
|
+
# In this project
|
|
65
|
+
# Download up-to-date listings
|
|
66
|
+
pipenv run invenio galter_subjects mesh download -d /path/to/downloads/storage/ -y YEAR
|
|
67
|
+
# Generate file containing initial listing
|
|
68
|
+
pipenv run invenio galter_subjects mesh file -d /path/to/downloads/storage/ -y YEAR -f topic -o invenio_subjects_mesh_lite/vocabularies/subjects_mesh.csv
|
|
72
69
|
```
|
|
73
70
|
|
|
74
|
-
|
|
71
|
+
When you are happy with the list, bump the version in `pyproject.toml` and release it.
|
|
72
|
+
|
|
75
73
|
|
|
76
74
|
## Development
|
|
77
75
|
|