oarepo-rdm 1.0.0.dev27__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.
- oarepo_rdm-1.0.0.dev27/.gitignore +382 -0
- oarepo_rdm-1.0.0.dev27/PKG-INFO +250 -0
- oarepo_rdm-1.0.0.dev27/README.md +229 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/__init__.py +23 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/config.py +34 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/errors.py +15 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/ext.py +96 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/semantic-ui/translations/oarepo_rdm/i18next.js +37 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/semantic-ui/translations/oarepo_rdm/messages/cs/LC_MESSAGES/translations.json +1 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/semantic-ui/translations/oarepo_rdm/messages/en/LC_MESSAGES/translations.json +1 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/semantic-ui/translations/oarepo_rdm/messages/index.js +7 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/translations/cs/LC_MESSAGES/messages.po +28 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/translations/en/LC_MESSAGES/messages.po +23 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/translations/messages.pot +39 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/i18n/webpack.py +27 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/info.py +26 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/initial_config.py +132 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/__init__.py +19 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/__init__.py +54 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/__init__.py +76 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/ext.py +56 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/__init__.py +20 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/draft_record.py +43 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/draft_record_metadata.py +56 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/parent_record.py +42 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/rdm_mapping.py +447 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/record.py +42 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/records/record_metadata.py +56 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/resources/__init__.py +15 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/resources/records/__init__.py +16 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/resources/records/resource.py +44 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/resources/records/resource_config.py +54 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/__init__.py +12 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/__init__.py +14 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/permission_policy.py +44 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/rdm_parent_record_schema.py +38 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/rdm_record_schema.py +129 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/rdm_record_ui_schema.py +66 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/service.py +44 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/service_config.py +88 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/service_config_links.py +122 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm/services/records/service_config_ui_links.py +49 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm_metadata/__init__.py +111 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm_metadata/rdm.yaml +175 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/model/presets/rdm_metadata/rdm_elements.yaml +357 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/__init__.py +15 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/config.py +122 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/index_templates/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/index_templates/os-v2/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/index_templates/os-v2/oaisource.json +10 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/mappings/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/mappings/os-v2/README.md +6 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/mappings/os-v2/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/mappings/os-v2/oaisource-percolators.json +5 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/percolator.py +124 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/presets.py +73 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/oai/serializer.py +41 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/proxies.py +24 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/records/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/records/systemfields/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/records/systemfields/pid.py +45 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/resources/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/resources/records/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/resources/records/config.py +32 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/resources/records/resource.py +51 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/resources/records/response_handlers.py +136 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/services/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/services/config.py +157 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/services/results.py +57 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/services/schemas.py +79 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/services/search.py +137 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/services/service.py +403 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/ui/__init__.py +11 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/ui/templates.py +129 -0
- oarepo_rdm-1.0.0.dev27/oarepo_rdm/ui/views.py +170 -0
- oarepo_rdm-1.0.0.dev27/pyproject.toml +107 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Python gitignore
|
|
3
|
+
#
|
|
4
|
+
|
|
5
|
+
# Byte-compiled / optimized / DLL files
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.py[codz]
|
|
8
|
+
*$py.class
|
|
9
|
+
|
|
10
|
+
# C extensions
|
|
11
|
+
*.so
|
|
12
|
+
|
|
13
|
+
# Distribution / packaging
|
|
14
|
+
.Python
|
|
15
|
+
build/
|
|
16
|
+
develop-eggs/
|
|
17
|
+
dist/
|
|
18
|
+
downloads/
|
|
19
|
+
eggs/
|
|
20
|
+
.eggs/
|
|
21
|
+
lib/
|
|
22
|
+
lib64/
|
|
23
|
+
parts/
|
|
24
|
+
sdist/
|
|
25
|
+
var/
|
|
26
|
+
wheels/
|
|
27
|
+
share/python-wheels/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
MANIFEST
|
|
32
|
+
|
|
33
|
+
# PyInstaller
|
|
34
|
+
# Usually these files are written by a python script from a template
|
|
35
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
36
|
+
*.manifest
|
|
37
|
+
*.spec
|
|
38
|
+
|
|
39
|
+
# Installer logs
|
|
40
|
+
pip-log.txt
|
|
41
|
+
pip-delete-this-directory.txt
|
|
42
|
+
|
|
43
|
+
# Unit test / coverage reports
|
|
44
|
+
htmlcov/
|
|
45
|
+
.tox/
|
|
46
|
+
.nox/
|
|
47
|
+
.coverage
|
|
48
|
+
.coverage.*
|
|
49
|
+
.cache
|
|
50
|
+
nosetests.xml
|
|
51
|
+
coverage.xml
|
|
52
|
+
coverage.json
|
|
53
|
+
*.cover
|
|
54
|
+
*.py.cover
|
|
55
|
+
.hypothesis/
|
|
56
|
+
.pytest_cache/
|
|
57
|
+
cover/
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
#Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# UV
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
#uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
#poetry.lock
|
|
110
|
+
#poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
#pdm.lock
|
|
117
|
+
#pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
#pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi
|
|
127
|
+
|
|
128
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
129
|
+
__pypackages__/
|
|
130
|
+
|
|
131
|
+
# Celery stuff
|
|
132
|
+
celerybeat-schedule
|
|
133
|
+
celerybeat.pid
|
|
134
|
+
|
|
135
|
+
# SageMath parsed files
|
|
136
|
+
*.sage.py
|
|
137
|
+
|
|
138
|
+
# Environments
|
|
139
|
+
.env
|
|
140
|
+
.envrc
|
|
141
|
+
.venv
|
|
142
|
+
env/
|
|
143
|
+
venv/
|
|
144
|
+
ENV/
|
|
145
|
+
env.bak/
|
|
146
|
+
venv.bak/
|
|
147
|
+
|
|
148
|
+
# Spyder project settings
|
|
149
|
+
.spyderproject
|
|
150
|
+
.spyproject
|
|
151
|
+
|
|
152
|
+
# Rope project settings
|
|
153
|
+
.ropeproject
|
|
154
|
+
|
|
155
|
+
# mkdocs documentation
|
|
156
|
+
/site
|
|
157
|
+
|
|
158
|
+
# mypy
|
|
159
|
+
.mypy_cache/
|
|
160
|
+
.mypy.ini
|
|
161
|
+
.dmypy.json
|
|
162
|
+
dmypy.json
|
|
163
|
+
|
|
164
|
+
# Pyre type checker
|
|
165
|
+
.pyre/
|
|
166
|
+
|
|
167
|
+
# pytype static type analyzer
|
|
168
|
+
.pytype/
|
|
169
|
+
|
|
170
|
+
# Cython debug symbols
|
|
171
|
+
cython_debug/
|
|
172
|
+
|
|
173
|
+
# PyCharm
|
|
174
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
175
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
176
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
177
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
178
|
+
#.idea/
|
|
179
|
+
|
|
180
|
+
# Abstra
|
|
181
|
+
# Abstra is an AI-powered process automation framework.
|
|
182
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
183
|
+
# Learn more at https://abstra.io/docs
|
|
184
|
+
.abstra/
|
|
185
|
+
|
|
186
|
+
# Visual Studio Code
|
|
187
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
188
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
189
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
190
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
191
|
+
# .vscode/
|
|
192
|
+
|
|
193
|
+
# Ruff stuff:
|
|
194
|
+
.ruff.toml
|
|
195
|
+
.ruff_cache/
|
|
196
|
+
.mypy.ini
|
|
197
|
+
|
|
198
|
+
# PyPI configuration file
|
|
199
|
+
.pypirc
|
|
200
|
+
|
|
201
|
+
# Marimo
|
|
202
|
+
marimo/_static/
|
|
203
|
+
marimo/_lsp/
|
|
204
|
+
__marimo__/
|
|
205
|
+
|
|
206
|
+
# Streamlit
|
|
207
|
+
.streamlit/secrets.toml
|
|
208
|
+
|
|
209
|
+
# UV package management
|
|
210
|
+
uv.lock
|
|
211
|
+
|
|
212
|
+
#
|
|
213
|
+
# Node.js gitignore
|
|
214
|
+
#
|
|
215
|
+
# Logs
|
|
216
|
+
logs
|
|
217
|
+
*.log
|
|
218
|
+
npm-debug.log*
|
|
219
|
+
yarn-debug.log*
|
|
220
|
+
yarn-error.log*
|
|
221
|
+
lerna-debug.log*
|
|
222
|
+
|
|
223
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
224
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
225
|
+
|
|
226
|
+
# Runtime data
|
|
227
|
+
pids
|
|
228
|
+
*.pid
|
|
229
|
+
*.seed
|
|
230
|
+
*.pid.lock
|
|
231
|
+
|
|
232
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
233
|
+
lib-cov
|
|
234
|
+
|
|
235
|
+
# Coverage directory used by tools like istanbul
|
|
236
|
+
coverage
|
|
237
|
+
*.lcov
|
|
238
|
+
|
|
239
|
+
# nyc test coverage
|
|
240
|
+
.nyc_output
|
|
241
|
+
|
|
242
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
243
|
+
.grunt
|
|
244
|
+
|
|
245
|
+
# Bower dependency directory (https://bower.io/)
|
|
246
|
+
bower_components
|
|
247
|
+
|
|
248
|
+
# node-waf configuration
|
|
249
|
+
.lock-wscript
|
|
250
|
+
|
|
251
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
252
|
+
build/Release
|
|
253
|
+
|
|
254
|
+
# Dependency directories
|
|
255
|
+
node_modules/
|
|
256
|
+
jspm_packages/
|
|
257
|
+
|
|
258
|
+
# Snowpack dependency directory (https://snowpack.dev/)
|
|
259
|
+
web_modules/
|
|
260
|
+
|
|
261
|
+
# TypeScript cache
|
|
262
|
+
*.tsbuildinfo
|
|
263
|
+
|
|
264
|
+
# Optional npm cache directory
|
|
265
|
+
.npm
|
|
266
|
+
|
|
267
|
+
# Optional eslint cache
|
|
268
|
+
.eslintcache
|
|
269
|
+
|
|
270
|
+
# Optional stylelint cache
|
|
271
|
+
.stylelintcache
|
|
272
|
+
|
|
273
|
+
# Optional REPL history
|
|
274
|
+
.node_repl_history
|
|
275
|
+
|
|
276
|
+
# Output of 'npm pack'
|
|
277
|
+
*.tgz
|
|
278
|
+
|
|
279
|
+
# Yarn Integrity file
|
|
280
|
+
.yarn-integrity
|
|
281
|
+
|
|
282
|
+
# dotenv environment variable files
|
|
283
|
+
.env
|
|
284
|
+
.env.*
|
|
285
|
+
!.env.example
|
|
286
|
+
|
|
287
|
+
# parcel-bundler cache (https://parceljs.org/)
|
|
288
|
+
.cache
|
|
289
|
+
.parcel-cache
|
|
290
|
+
|
|
291
|
+
# Next.js build output
|
|
292
|
+
.next
|
|
293
|
+
out
|
|
294
|
+
|
|
295
|
+
# Nuxt.js build / generate output
|
|
296
|
+
.nuxt
|
|
297
|
+
dist
|
|
298
|
+
|
|
299
|
+
# Gatsby files
|
|
300
|
+
.cache/
|
|
301
|
+
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
302
|
+
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
303
|
+
# public
|
|
304
|
+
|
|
305
|
+
# vuepress build output
|
|
306
|
+
.vuepress/dist
|
|
307
|
+
|
|
308
|
+
# vuepress v2.x temp and cache directory
|
|
309
|
+
.temp
|
|
310
|
+
.cache
|
|
311
|
+
|
|
312
|
+
# Sveltekit cache directory
|
|
313
|
+
.svelte-kit/
|
|
314
|
+
|
|
315
|
+
# vitepress build output
|
|
316
|
+
**/.vitepress/dist
|
|
317
|
+
|
|
318
|
+
# vitepress cache directory
|
|
319
|
+
**/.vitepress/cache
|
|
320
|
+
|
|
321
|
+
# Docusaurus cache and generated files
|
|
322
|
+
.docusaurus
|
|
323
|
+
|
|
324
|
+
# Serverless directories
|
|
325
|
+
.serverless/
|
|
326
|
+
|
|
327
|
+
# FuseBox cache
|
|
328
|
+
.fusebox/
|
|
329
|
+
|
|
330
|
+
# DynamoDB Local files
|
|
331
|
+
.dynamodb/
|
|
332
|
+
|
|
333
|
+
# Firebase cache directory
|
|
334
|
+
.firebase/
|
|
335
|
+
|
|
336
|
+
# TernJS port file
|
|
337
|
+
.tern-port
|
|
338
|
+
|
|
339
|
+
# Stores VSCode versions used for testing VSCode extensions
|
|
340
|
+
.vscode-test
|
|
341
|
+
|
|
342
|
+
# yarn v3
|
|
343
|
+
.pnp.*
|
|
344
|
+
.yarn/*
|
|
345
|
+
!.yarn/patches
|
|
346
|
+
!.yarn/plugins
|
|
347
|
+
!.yarn/releases
|
|
348
|
+
!.yarn/sdks
|
|
349
|
+
!.yarn/versions
|
|
350
|
+
|
|
351
|
+
# Vite logs files
|
|
352
|
+
vite.config.js.timestamp-*
|
|
353
|
+
vite.config.ts.timestamp-*
|
|
354
|
+
|
|
355
|
+
#
|
|
356
|
+
# OARepo specific gitignore
|
|
357
|
+
#
|
|
358
|
+
.runner.sh
|
|
359
|
+
.env-services
|
|
360
|
+
.eslintrc.yaml
|
|
361
|
+
.mypy.ini
|
|
362
|
+
.ruff.toml
|
|
363
|
+
|
|
364
|
+
#
|
|
365
|
+
# Editors
|
|
366
|
+
.vscode/
|
|
367
|
+
.idea/
|
|
368
|
+
*.swp
|
|
369
|
+
*.swo
|
|
370
|
+
*.swn
|
|
371
|
+
*.sublime-workspace
|
|
372
|
+
*.sublime-project
|
|
373
|
+
*.kate-swp
|
|
374
|
+
*.kate-swp.*
|
|
375
|
+
*.komodoproject
|
|
376
|
+
*.komodotools
|
|
377
|
+
*.komodoide
|
|
378
|
+
*.komodotools
|
|
379
|
+
*.komodotools.*
|
|
380
|
+
.DS_Store
|
|
381
|
+
*.DS_Store?
|
|
382
|
+
#
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: oarepo-rdm
|
|
3
|
+
Version: 1.0.0.dev27
|
|
4
|
+
Project-URL: Homepage, https://github.com/oarepo/oarepo-rdm
|
|
5
|
+
Author-email: Ronald Krist <krist@cesnet.cz>
|
|
6
|
+
Requires-Python: <3.15,>=3.13
|
|
7
|
+
Requires-Dist: graphlib
|
|
8
|
+
Requires-Dist: oarepo-model<1.0.0,>=0.1.0dev17
|
|
9
|
+
Requires-Dist: oarepo-runtime<3.0.0,>=2.0.0dev5
|
|
10
|
+
Requires-Dist: oarepo-ui>=6.0.0dev1
|
|
11
|
+
Requires-Dist: oarepo[rdm,tests]<15.0.0,>=14.0.0
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: lxml-stubs; extra == 'dev'
|
|
14
|
+
Requires-Dist: oarepo-invenio-typing-stubs<1.0.0,>=0.1.0dev0; extra == 'dev'
|
|
15
|
+
Requires-Dist: types-pyyaml; extra == 'dev'
|
|
16
|
+
Provides-Extra: oarepo14
|
|
17
|
+
Requires-Dist: oarepo[rdm,tests]<15.0.0,>=14.0.0; extra == 'oarepo14'
|
|
18
|
+
Provides-Extra: tests
|
|
19
|
+
Requires-Dist: pytest-invenio; extra == 'tests'
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# OARepo RDM
|
|
23
|
+
|
|
24
|
+
Runtime extensions for integrating custom metadata models with [Invenio RDM](https://inveniosoftware.org/products/rdm/).
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
This package provides a set of runtime patches that enable the RDM service to work seamlessly with different metadata models. It extends the standard Invenio RDM functionality by:
|
|
29
|
+
|
|
30
|
+
- Patching RDM service methods (`search`, `search_drafts`, `scan`, `read`) to search and operate across multiple models
|
|
31
|
+
- Delegating PID-based method calls to specialized per-model services
|
|
32
|
+
- Modifying the PID context of `RDMRecord`/`RDMDraft` to return specialized record instances on resolve
|
|
33
|
+
- Enabling registration of custom services/resources in place of default RDM ones
|
|
34
|
+
|
|
35
|
+
This package depends on OARepo patches to `invenio_rdm_records` that provide the infrastructure for registering custom service/resource implementations.
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install oarepo-rdm
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Requirements
|
|
44
|
+
|
|
45
|
+
- Python 3.13+
|
|
46
|
+
- Invenio 14.x
|
|
47
|
+
- oarepo-runtime >= 2.0.0dev5
|
|
48
|
+
- oarepo-model >= 0.1.0dev17
|
|
49
|
+
|
|
50
|
+
## Key Features
|
|
51
|
+
|
|
52
|
+
### 1. Multi-Model Service Integration
|
|
53
|
+
|
|
54
|
+
**Source:** [`oarepo_rdm/ext.py`](oarepo_rdm/ext.py), [`oarepo_rdm/services/`](oarepo_rdm/services/)
|
|
55
|
+
|
|
56
|
+
The package patches RDM service methods to enable unified operations across multiple metadata models:
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
# The patched service can search across all registered models
|
|
60
|
+
results = rdm_service.search(identity=identity)
|
|
61
|
+
|
|
62
|
+
# PID-based operations are delegated to model-specific services
|
|
63
|
+
record = rdm_service.read(identity=identity, id_=record_id)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Patched methods:**
|
|
67
|
+
|
|
68
|
+
- `search` - Searches across all registered models
|
|
69
|
+
- `search_drafts` - Searches draft records across models
|
|
70
|
+
- `scan` - Scans records across models
|
|
71
|
+
- `read` - Delegates to specialized service based on record PID
|
|
72
|
+
|
|
73
|
+
### 2. Specialized Record Resolution
|
|
74
|
+
|
|
75
|
+
**Source:** [`oarepo_rdm/records/`](oarepo_rdm/records/)
|
|
76
|
+
|
|
77
|
+
The PID context is patched so that resolving a PID returns an instance of the specialized record class rather than the generic RDM record:
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
# Resolving a PID returns the model-specific record class
|
|
81
|
+
record = pid.resolve() # Returns MyCustomRecord instance
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
This ensures that model-specific behavior and fields are available when working with resolved records.
|
|
85
|
+
|
|
86
|
+
### 3. Custom Service and Resource Registration
|
|
87
|
+
|
|
88
|
+
**Source:** [`oarepo_rdm/model/presets/rdm/`](oarepo_rdm/model/presets/rdm/)
|
|
89
|
+
|
|
90
|
+
The package provides infrastructure for registering custom services and resources for specific metadata models:
|
|
91
|
+
|
|
92
|
+
- **Records:** Custom record and draft implementations ([`records/`](oarepo_rdm/model/presets/rdm/records/))
|
|
93
|
+
- **Resources:** Custom resource configurations ([`resources/`](oarepo_rdm/model/presets/rdm/resources/))
|
|
94
|
+
- **Services:** Custom service implementations ([`services/`](oarepo_rdm/model/presets/rdm/services/))
|
|
95
|
+
|
|
96
|
+
### 4. RDM Metadata Presets
|
|
97
|
+
|
|
98
|
+
**Source:** [`oarepo_rdm/model/presets/rdm_metadata/`](oarepo_rdm/model/presets/rdm_metadata/)
|
|
99
|
+
|
|
100
|
+
Pre-configured RDM metadata elements and schemas:
|
|
101
|
+
|
|
102
|
+
- `rdm_elements.yaml` - Reusable RDM metadata field definitions
|
|
103
|
+
- `rdm.yaml` - Complete RDM metadata schema preset
|
|
104
|
+
|
|
105
|
+
These presets provide a starting point for creating RDM-compatible custom models.
|
|
106
|
+
|
|
107
|
+
### 5. OAI-PMH Integration
|
|
108
|
+
|
|
109
|
+
**Source:** [`oarepo_rdm/oai/`](oarepo_rdm/oai/)
|
|
110
|
+
|
|
111
|
+
Full OAI-PMH support with percolator-based set management:
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
from oarepo_rdm.oai import OAIPMHPresets
|
|
115
|
+
|
|
116
|
+
# Configure OAI-PMH for your model
|
|
117
|
+
presets = OAIPMHPresets(
|
|
118
|
+
serializer=datacite_serializer,
|
|
119
|
+
config=oai_config
|
|
120
|
+
)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Components:**
|
|
124
|
+
|
|
125
|
+
- Percolator-based OAI set filtering ([`percolator.py`](oarepo_rdm/oai/percolator.py))
|
|
126
|
+
- DataCite and Dublin Core serializers ([`serializer.py`](oarepo_rdm/oai/serializer.py))
|
|
127
|
+
- OpenSearch index templates for OAI ([`index_templates/`](oarepo_rdm/oai/index_templates/))
|
|
128
|
+
- OAI percolator mappings ([`mappings/`](oarepo_rdm/oai/mappings/))
|
|
129
|
+
|
|
130
|
+
### 6. PID System Fields
|
|
131
|
+
|
|
132
|
+
**Source:** [`oarepo_rdm/records/systemfields/pid.py`](oarepo_rdm/records/systemfields/pid.py)
|
|
133
|
+
|
|
134
|
+
Enhanced PID system fields that integrate with the multi-model architecture:
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
from oarepo_rdm.records.systemfields import OARepoPIDField
|
|
138
|
+
|
|
139
|
+
class MyRecord(RDMRecord):
|
|
140
|
+
pid = OARepoPIDField()
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 7. Unified Permission Policy
|
|
144
|
+
|
|
145
|
+
**Source:** Configuration via `RDM_PERMISSION_POLICY`
|
|
146
|
+
|
|
147
|
+
For performance reasons, permissions for search and scan operations are evaluated at the RDM records level, not on the specialized-service layer. This means that the permissions defined for the RDM records service apply to all requests, regardless of which specialized service is handling the request.
|
|
148
|
+
|
|
149
|
+
**Important:** All models must use the same permission policy, configured via the `RDM_PERMISSION_POLICY` configuration variable.
|
|
150
|
+
|
|
151
|
+
```python
|
|
152
|
+
# In your configuration
|
|
153
|
+
RDM_PERMISSION_POLICY = MyUnifiedPermissionPolicy
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### 8. Response Handlers
|
|
157
|
+
|
|
158
|
+
**Source:** [`oarepo_rdm/resources/records/response_handlers.py`](oarepo_rdm/resources/records/response_handlers.py)
|
|
159
|
+
|
|
160
|
+
Custom response handlers for RDM resources that properly handle multi-model scenarios.
|
|
161
|
+
|
|
162
|
+
### 9. Internationalization Support
|
|
163
|
+
|
|
164
|
+
**Source:** [`oarepo_rdm/i18n/`](oarepo_rdm/i18n/)
|
|
165
|
+
|
|
166
|
+
Full i18n support with translations for Czech and English:
|
|
167
|
+
|
|
168
|
+
- Message catalogs for UI elements
|
|
169
|
+
- Webpack integration for frontend translations
|
|
170
|
+
- Semantic UI translation bundles
|
|
171
|
+
|
|
172
|
+
## Development
|
|
173
|
+
|
|
174
|
+
### Setup
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
# Clone repository
|
|
178
|
+
git clone https://github.com/oarepo/oarepo-rdm.git
|
|
179
|
+
cd oarepo-rdm
|
|
180
|
+
|
|
181
|
+
./run.sh venv
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Running Tests
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
./run.sh test
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
The test suite includes:
|
|
191
|
+
|
|
192
|
+
- RDM CRUD operations (`test_rdm_crud.py`)
|
|
193
|
+
- Search functionality (`test_search.py`, `test_search_drafts.py`)
|
|
194
|
+
- PID resolution (`test_pid.py`)
|
|
195
|
+
- OAI-PMH integration (`test_oai.py`)
|
|
196
|
+
- Resource endpoints (`test_resources.py`)
|
|
197
|
+
- Service tasks (`test_service_tasks.py`)
|
|
198
|
+
- Secret links (`test_secret_links.py`)
|
|
199
|
+
- Runtime model behavior (`test_runtime_model.py`)
|
|
200
|
+
|
|
201
|
+
## Entry Points
|
|
202
|
+
|
|
203
|
+
The package registers several Invenio entry points:
|
|
204
|
+
|
|
205
|
+
```python
|
|
206
|
+
[project.entry-points."invenio_config.module"]
|
|
207
|
+
oarepo_rdm = "oarepo_rdm.initial_config"
|
|
208
|
+
|
|
209
|
+
[project.entry-points."invenio_base.apps"]
|
|
210
|
+
invenio_rdm_records = "invenio_rdm_records.ext:InvenioRDMRecords"
|
|
211
|
+
oarepo_rdm = "oarepo_rdm.ext:OARepoRDM"
|
|
212
|
+
|
|
213
|
+
[project.entry-points."invenio_base.api_apps"]
|
|
214
|
+
invenio_rdm_records = "invenio_rdm_records.ext:InvenioRDMRecords"
|
|
215
|
+
oarepo_rdm = "oarepo_rdm.ext:OARepoRDM"
|
|
216
|
+
|
|
217
|
+
[project.entry-points."invenio_base.api_blueprints"]
|
|
218
|
+
invenio_rdm_records = "invenio_rdm_records.views:create_records_bp"
|
|
219
|
+
# ... and more RDM blueprints
|
|
220
|
+
|
|
221
|
+
[project.entry-points."invenio_base.finalize_app"]
|
|
222
|
+
invenio_rdm_records = "invenio_rdm_records.ext:finalize_app"
|
|
223
|
+
oarepo_rdm = "oarepo_rdm.ext:finalize_app"
|
|
224
|
+
|
|
225
|
+
[project.entry-points."invenio_search.index_templates"]
|
|
226
|
+
oarepo_rdm_oai = "oarepo_rdm.oai.index_templates"
|
|
227
|
+
|
|
228
|
+
[project.entry-points."invenio_search.mappings"]
|
|
229
|
+
oarepo_rdm_oai = "oarepo_rdm.oai.mappings"
|
|
230
|
+
|
|
231
|
+
[project.entry-points."oarepo.cli.search.init"]
|
|
232
|
+
install_percollators = "oarepo_rdm.oai.percolator:init_percolators"
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## License
|
|
236
|
+
|
|
237
|
+
Copyright (c) 2020-2025 CESNET z.s.p.o.
|
|
238
|
+
|
|
239
|
+
OARepo RDM is free software; you can redistribute it and/or modify it under the terms of the MIT License. See [LICENSE](LICENSE) file for more details.
|
|
240
|
+
|
|
241
|
+
## Links
|
|
242
|
+
|
|
243
|
+
- Documentation: <https://github.com/oarepo/oarepo-rdm>
|
|
244
|
+
- PyPI: <https://pypi.org/project/oarepo-rdm/>
|
|
245
|
+
- Issues: <https://github.com/oarepo/oarepo-rdm/issues>
|
|
246
|
+
- OARepo Project: <https://github.com/oarepo>
|
|
247
|
+
|
|
248
|
+
## Acknowledgments
|
|
249
|
+
|
|
250
|
+
This project builds upon [Invenio RDM](https://inveniosoftware.org/products/rdm/) and is developed as part of the OARepo ecosystem.
|