molgenis-py-bbmri-eric
MOLGENIS Python tooling for BBMRI-ERIC.
Description
This library contains tools for the MOLGENIS BBMRI-ERIC Directory that help with staging and publishing the data of the national nodes. Staging is the process of copying data from a national node's external server (for example BBMRI-NL) to the staging area on the ERIC directory. Not all national nodes have external servers; these do not need to be staged. Publishing is the process of copying and combining the data from the staging areas to the public combined tables of the directory.
Usage
These tools can be used as a library in a script. Start by installing the library with
pip install molgenis-py-bbmri-eric.
For an example of how to use this library to stage and publish nodes, see example.py.
If you just want to retrieve the data of a node for another purpose, you can use the EricSession
and ExternalServerSession directly:
from molgenis.bbmri_eric.bbmri_client import EricSession, ExternalServerSession
from molgenis.bbmri_eric.model import NodeData
# Get the staging and published data of NL from the directory
session = EricSession(url="<DIRECTORY_URL")
nl = session.get_external_node("NL")
nl_staging_data: NodeData = session.get_staging_node_data(nl)
nl_published_data: NodeData = session.get_published_node_data(nl)
# Get the data from the external server of NL
external_session = ExternalServerSession(nl)
nl_external_data: NodeData = external_session.get_node_data()
# Now you can use the NodeData objects as you wish
for person in nl_external_data.persons.rows:
print(person)
For developers
This project uses pre-commit and pipenv for the development workflow.
Install pre-commit and pipenv if you haven't already:
pip install pre-commit
pip install pipenv
Install the git commit hooks:
pre-commit install
Create an environment and install the package including all (dev) dependencies:
pipenv install --dev
Enter the environment:
pipenv shell
Build and run the tests:
tox
Note
This project has been set up using PyScaffold 4.0.2. For details and usage information on PyScaffold see https://pyscaffold.org/.
Metadata
Release files for molgenis-py-bbmri-eric 1.18.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| molgenis_py_bbmri_eric-1.18.1.tar.gz | 86.2 kB | Without provenance | Details for molgenis_py_bbmri_eric-1.18.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| molgenis_py_bbmri_eric-1.18.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for molgenis_py_bbmri_eric-1.18.1-py2.py3-none-any.whl |
Total release size: 117.7 kB
Release files / molgenis_py_bbmri_eric-1.18.1.tar.gz
| Download URL | molgenis_py_bbmri_eric-1.18.1.tar.gz |
|---|---|
| Size | 86.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
453a3594e4a80fe8a898c99cf8598eaa2a71837d53ae029a61d1a1ab6685710e
|
|
BLAKE2b-256 checksum How to use checksums |
469973c7c04d0088f21bc037762378bf01c1cbaa675c6c379bf4a8c3bb9070e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Release files / molgenis_py_bbmri_eric-1.18.1-py2.py3-none-any.whl
| Download URL | molgenis_py_bbmri_eric-1.18.1-py2.py3-none-any.whl |
|---|---|
| Size | 31.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7a372e3c5879364da29ca30af5592fe39a42951abf6edb61bcfab8b32576950b
|
|
BLAKE2b-256 checksum How to use checksums |
dc3654213228a7096083a82b1054204e2727a0056dedc4ffe50f45bd6946aae2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Security for molgenis-py-bbmri-eric 1.18.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.