pyreslib 0.1.0__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.
- pyreslib-0.1.0/LICENSE +21 -0
- pyreslib-0.1.0/PKG-INFO +135 -0
- pyreslib-0.1.0/README.md +98 -0
- pyreslib-0.1.0/pyproject.toml +55 -0
- pyreslib-0.1.0/pyreslib/__init__.py +9 -0
- pyreslib-0.1.0/pyreslib/bibtex.py +690 -0
- pyreslib-0.1.0/pyreslib/google_books.py +303 -0
- pyreslib-0.1.0/pyreslib/koha.py +1045 -0
- pyreslib-0.1.0/pyreslib/marc.py +222 -0
- pyreslib-0.1.0/pyreslib/omekas.py +109 -0
- pyreslib-0.1.0/pyreslib/transkribus.py +268 -0
- pyreslib-0.1.0/pyreslib/utilities.py +44 -0
- pyreslib-0.1.0/pyreslib/wikidata.py +837 -0
- pyreslib-0.1.0/pyreslib.egg-info/PKG-INFO +135 -0
- pyreslib-0.1.0/pyreslib.egg-info/SOURCES.txt +17 -0
- pyreslib-0.1.0/pyreslib.egg-info/dependency_links.txt +1 -0
- pyreslib-0.1.0/pyreslib.egg-info/requires.txt +20 -0
- pyreslib-0.1.0/pyreslib.egg-info/top_level.txt +1 -0
- pyreslib-0.1.0/setup.cfg +4 -0
pyreslib-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 NicholasCorniaOrpheus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
pyreslib-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyreslib
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python package for digital libraries from the Resounding Libraries cluster at Orpheus Instituut
|
|
5
|
+
Author-email: Nicholas Cornia <nicholas.cornia@orpheusinstituut.be>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://nicholascorniaorpheus.github.io/py-resounding-libraries/
|
|
8
|
+
Project-URL: Repository, https://github.com/NicholasCorniaOrpheus/py-resounding-libraries
|
|
9
|
+
Keywords: koha,wikidata,digital-libraries,transkribus,omekas,bibtex,marc,library-software
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Requires-Dist: bibtexparser>=1.4.4
|
|
19
|
+
Requires-Dist: omeka-s-tools>=0.3.0
|
|
20
|
+
Requires-Dist: pandas>=2.3.3
|
|
21
|
+
Requires-Dist: pymarc>=5.3.1
|
|
22
|
+
Requires-Dist: pyyaml>=6.0.3
|
|
23
|
+
Requires-Dist: requests>=2.33.1
|
|
24
|
+
Requires-Dist: requests-oauth2client>=1.8.0
|
|
25
|
+
Requires-Dist: sparqlwrapper>=2.0.0
|
|
26
|
+
Requires-Dist: urllib3>=2.6.3
|
|
27
|
+
Requires-Dist: wikibaseintegrator>=0.12.15
|
|
28
|
+
Provides-Extra: docs
|
|
29
|
+
Requires-Dist: mkdocs>=1.6.1; extra == "docs"
|
|
30
|
+
Requires-Dist: mkdocs-material>=9.7.6; extra == "docs"
|
|
31
|
+
Requires-Dist: mkdocstrings[python]>=1.0.4; extra == "docs"
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
34
|
+
Requires-Dist: black>=22.0; extra == "dev"
|
|
35
|
+
Requires-Dist: ruff>=0.1; extra == "dev"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
# py-resounding-libraries
|
|
39
|
+
Python package for digital libraries from the Resounding Libraries cluster at Orpheus Instituut.
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
[Package documentation](https://nicholascorniaorpheus.github.io/py-resounding-libraries/) available via GitHub Pages.
|
|
44
|
+
|
|
45
|
+
## Installation and Setup
|
|
46
|
+
|
|
47
|
+
### Setting up virtual enviroment
|
|
48
|
+
|
|
49
|
+
Generate the virtual enviroment on your project folder:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Generate local python binaries in folder
|
|
53
|
+
python3 -m venv rl-env
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Activate virtual enviroment in order to invoke the package:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# activate the enviroment for this terminal
|
|
60
|
+
source $rl-env/bin/activate
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Installation via pip
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pip install pyreslib
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Dependencies listed in `requirements.txt`.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Setting up Credentials
|
|
74
|
+
|
|
75
|
+
After cloning this repository, you should create a `credentials` folder to store all your sensible data. All credentials are stored in `credentials.json` file in this form:
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"koha": {
|
|
80
|
+
"oauth_credentials": {
|
|
81
|
+
"description": "username",
|
|
82
|
+
"client_id": "clientid generated by Koha",
|
|
83
|
+
"secret_key": "secret key generated by Koha"
|
|
84
|
+
},
|
|
85
|
+
"basic_credentials": {
|
|
86
|
+
"user": "user@email.com",
|
|
87
|
+
"password": "password"
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
},
|
|
91
|
+
"resourcespace": {
|
|
92
|
+
"rs_api_url": "https://your.rs.domain/api/v1/",
|
|
93
|
+
"secret_key": "secret key"
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
"orcid": {
|
|
97
|
+
"client_id": "xxx",
|
|
98
|
+
"client_secret": "yyyy",
|
|
99
|
+
"redirect_uri": "https://example.org"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Modules
|
|
105
|
+
|
|
106
|
+
### Koha
|
|
107
|
+
|
|
108
|
+
This module collects a series of Python scripts, build upon [pyMARC](https://pymarc.readthedocs.io/en/latest/) and the [Koha REST API](https://api.koha-community.org/), to allow batch operation for your library catalogue and enriching metadata scripts with external linked open data information from [Wikidata](https://www.wikidata.org/).
|
|
109
|
+
|
|
110
|
+
### ResourceSpace
|
|
111
|
+
[Resourcespace](https://www.resourcespace.com/) is an open source digital assets management system.
|
|
112
|
+
|
|
113
|
+
In the module `resourcespace` you can find some useful Python scripts to dynamically interact with your Resourcespace instance.
|
|
114
|
+
Metadata for each record are pulled through Koha and ingested to Resource Space fields, collections and resources.
|
|
115
|
+
|
|
116
|
+
### Transkribus
|
|
117
|
+
|
|
118
|
+
...
|
|
119
|
+
|
|
120
|
+
### Research Output
|
|
121
|
+
|
|
122
|
+
...
|
|
123
|
+
|
|
124
|
+
### Omeka S
|
|
125
|
+
|
|
126
|
+
**NOTE**: Still in development.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### ORCiD
|
|
130
|
+
|
|
131
|
+
[ORCID](https://orcid.org/) is a non-profit organization that provides a persistent digital identifier (an ORCID iD) that distinguishes you from every other researcher. Since 2023, Orpheus Instituut registers the research output of its members through the Koha catalogue. Each research output is stored as record and a plugin has been developed to batch export the data to [FRIS](https://researchportal.be/en).
|
|
132
|
+
|
|
133
|
+
In the module `orcid` you can find some useful Python scripts, build upon [pyOrcid](https://github.com/sri0606/PyOrcid)to dynamically interact with your ORCID instance.
|
|
134
|
+
|
|
135
|
+
**NOTE**: Still in development...
|
pyreslib-0.1.0/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# py-resounding-libraries
|
|
2
|
+
Python package for digital libraries from the Resounding Libraries cluster at Orpheus Instituut.
|
|
3
|
+
|
|
4
|
+
## Documentation
|
|
5
|
+
|
|
6
|
+
[Package documentation](https://nicholascorniaorpheus.github.io/py-resounding-libraries/) available via GitHub Pages.
|
|
7
|
+
|
|
8
|
+
## Installation and Setup
|
|
9
|
+
|
|
10
|
+
### Setting up virtual enviroment
|
|
11
|
+
|
|
12
|
+
Generate the virtual enviroment on your project folder:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Generate local python binaries in folder
|
|
16
|
+
python3 -m venv rl-env
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Activate virtual enviroment in order to invoke the package:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# activate the enviroment for this terminal
|
|
23
|
+
source $rl-env/bin/activate
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Installation via pip
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install pyreslib
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Dependencies listed in `requirements.txt`.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Setting up Credentials
|
|
37
|
+
|
|
38
|
+
After cloning this repository, you should create a `credentials` folder to store all your sensible data. All credentials are stored in `credentials.json` file in this form:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"koha": {
|
|
43
|
+
"oauth_credentials": {
|
|
44
|
+
"description": "username",
|
|
45
|
+
"client_id": "clientid generated by Koha",
|
|
46
|
+
"secret_key": "secret key generated by Koha"
|
|
47
|
+
},
|
|
48
|
+
"basic_credentials": {
|
|
49
|
+
"user": "user@email.com",
|
|
50
|
+
"password": "password"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
},
|
|
54
|
+
"resourcespace": {
|
|
55
|
+
"rs_api_url": "https://your.rs.domain/api/v1/",
|
|
56
|
+
"secret_key": "secret key"
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
"orcid": {
|
|
60
|
+
"client_id": "xxx",
|
|
61
|
+
"client_secret": "yyyy",
|
|
62
|
+
"redirect_uri": "https://example.org"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Modules
|
|
68
|
+
|
|
69
|
+
### Koha
|
|
70
|
+
|
|
71
|
+
This module collects a series of Python scripts, build upon [pyMARC](https://pymarc.readthedocs.io/en/latest/) and the [Koha REST API](https://api.koha-community.org/), to allow batch operation for your library catalogue and enriching metadata scripts with external linked open data information from [Wikidata](https://www.wikidata.org/).
|
|
72
|
+
|
|
73
|
+
### ResourceSpace
|
|
74
|
+
[Resourcespace](https://www.resourcespace.com/) is an open source digital assets management system.
|
|
75
|
+
|
|
76
|
+
In the module `resourcespace` you can find some useful Python scripts to dynamically interact with your Resourcespace instance.
|
|
77
|
+
Metadata for each record are pulled through Koha and ingested to Resource Space fields, collections and resources.
|
|
78
|
+
|
|
79
|
+
### Transkribus
|
|
80
|
+
|
|
81
|
+
...
|
|
82
|
+
|
|
83
|
+
### Research Output
|
|
84
|
+
|
|
85
|
+
...
|
|
86
|
+
|
|
87
|
+
### Omeka S
|
|
88
|
+
|
|
89
|
+
**NOTE**: Still in development.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### ORCiD
|
|
93
|
+
|
|
94
|
+
[ORCID](https://orcid.org/) is a non-profit organization that provides a persistent digital identifier (an ORCID iD) that distinguishes you from every other researcher. Since 2023, Orpheus Instituut registers the research output of its members through the Koha catalogue. Each research output is stored as record and a plugin has been developed to batch export the data to [FRIS](https://researchportal.be/en).
|
|
95
|
+
|
|
96
|
+
In the module `orcid` you can find some useful Python scripts, build upon [pyOrcid](https://github.com/sri0606/PyOrcid)to dynamically interact with your ORCID instance.
|
|
97
|
+
|
|
98
|
+
**NOTE**: Still in development...
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pyreslib"
|
|
3
|
+
authors = [{name = "Nicholas Cornia", email = "nicholas.cornia@orpheusinstituut.be"}]
|
|
4
|
+
license = "MIT"
|
|
5
|
+
# classifiers = ["Private :: Do Not Upload"] # remove if you wish to publish to PyPI
|
|
6
|
+
classifiers = [
|
|
7
|
+
"Development Status :: 4 - Beta",
|
|
8
|
+
"Programming Language :: Python :: 3",
|
|
9
|
+
"Programming Language :: Python :: 3.10",
|
|
10
|
+
"Programming Language :: Python :: 3.11",
|
|
11
|
+
"Programming Language :: Python :: 3.12",
|
|
12
|
+
]
|
|
13
|
+
version = "0.1.0"
|
|
14
|
+
description = "Python package for digital libraries from the Resounding Libraries cluster at Orpheus Instituut"
|
|
15
|
+
keywords = ["koha", "wikidata", "digital-libraries", "transkribus","omekas","bibtex","marc","library-software"]
|
|
16
|
+
readme = "README.md"
|
|
17
|
+
requires-python = ">=3.10"
|
|
18
|
+
dependencies = [
|
|
19
|
+
"bibtexparser>=1.4.4",
|
|
20
|
+
"omeka-s-tools>=0.3.0",
|
|
21
|
+
"pandas>=2.3.3",
|
|
22
|
+
"pymarc>=5.3.1",
|
|
23
|
+
"pyyaml>=6.0.3",
|
|
24
|
+
"requests>=2.33.1",
|
|
25
|
+
"requests-oauth2client>=1.8.0",
|
|
26
|
+
"sparqlwrapper>=2.0.0",
|
|
27
|
+
"urllib3>=2.6.3",
|
|
28
|
+
"wikibaseintegrator>=0.12.15",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
docs = [
|
|
33
|
+
"mkdocs>=1.6.1",
|
|
34
|
+
"mkdocs-material>=9.7.6",
|
|
35
|
+
"mkdocstrings[python]>=1.0.4",
|
|
36
|
+
]
|
|
37
|
+
dev = [
|
|
38
|
+
"pytest>=7.0",
|
|
39
|
+
"black>=22.0",
|
|
40
|
+
"ruff>=0.1",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[tool.setuptools]
|
|
44
|
+
packages = ["pyreslib"]
|
|
45
|
+
|
|
46
|
+
[tool.setuptools.package-data]
|
|
47
|
+
pyreslib = ["data/**/*"]
|
|
48
|
+
|
|
49
|
+
[build-system]
|
|
50
|
+
requires = ["setuptools>=68.0", "wheel"]
|
|
51
|
+
build-backend = "setuptools.build_meta"
|
|
52
|
+
|
|
53
|
+
[project.urls]
|
|
54
|
+
Homepage = "https://nicholascorniaorpheus.github.io/py-resounding-libraries/"
|
|
55
|
+
Repository = "https://github.com/NicholasCorniaOrpheus/py-resounding-libraries"
|