SQLAlchemy ORM of the OHDSI OMOP CDM
Project description
omop-cdm
omop-cdm is a Python package that contains SQLAlchemy declarative table definitions of several versions of the OHDSI OMOP CDM.
Installation
omop-cdm requires Python >= 3.9.
Install from PyPI:
pip install omop-cdm
Usage
Supported databases
The omop-cdm table definitions are tested to be compatible with PostgreSQL.
Though not officially supported, omop-cdm doesn't use postgres-specific features of SQLAlchemy, so it can likely be used for other database types as well.
CDM versions
omop-cdm contains table defintions for the following CDM versions:
- CDM 5.4
- CDM 5.3.1
- CDM 6.0.0 (not recommended)
Development
Setup steps
- Make sure Poetry is installed.
- Install the project and dependencies via
poetry install. - Set up the pre-commit hook scripts via
poetry run pre-commit install.
Nox sessions
Several developer actions (e.g. run tests, code format, lint) are available via nox sessions. For a complete list, run:
nox --list
Releasing
omop-cdm uses semantic versioning.
Releases should be made from the main branch. Before creating a release on GitHub, make sure the CHANGELOG has been updated and the version number in pyproject.toml is correct.
Once the GitHub release has been made, the package will be automatically uploaded to PyPI (via the publish.yml workflow).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omop_cdm-0.4.1.tar.gz.
File metadata
- Download URL: omop_cdm-0.4.1.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4391d3ff195c93a92dbd9814b5bcda52dbdb7422505af0f8bb2a48d17cf26ccb
|
|
| MD5 |
49c4c382a28fec97cac3ff1c41793e2e
|
|
| BLAKE2b-256 |
301775d08807b53c9617afa65fbc6be9138f31af5e751aeaadd30fd4ec1810c0
|
Provenance
The following attestation bundles were made for omop_cdm-0.4.1.tar.gz:
Publisher:
publish.yml on thehyve/omop-cdm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omop_cdm-0.4.1.tar.gz -
Subject digest:
4391d3ff195c93a92dbd9814b5bcda52dbdb7422505af0f8bb2a48d17cf26ccb - Sigstore transparency entry: 645423636
- Sigstore integration time:
-
Permalink:
thehyve/omop-cdm@28560d93f213fa147bb9b75d62821a6df7dd4f70 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/thehyve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@28560d93f213fa147bb9b75d62821a6df7dd4f70 -
Trigger Event:
release
-
Statement type:
File details
Details for the file omop_cdm-0.4.1-py3-none-any.whl.
File metadata
- Download URL: omop_cdm-0.4.1-py3-none-any.whl
- Upload date:
- Size: 62.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a9cf02b5fe4b2b060b9b8438709d85b9503160d81d66647f04ad6167f6c6f19
|
|
| MD5 |
0f73144d8594b6521130e6f9bf92ac0f
|
|
| BLAKE2b-256 |
0c2594999d050b823e9cb0300d3b51fac3eea320d69e6875d504e27a31346eac
|
Provenance
The following attestation bundles were made for omop_cdm-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on thehyve/omop-cdm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omop_cdm-0.4.1-py3-none-any.whl -
Subject digest:
3a9cf02b5fe4b2b060b9b8438709d85b9503160d81d66647f04ad6167f6c6f19 - Sigstore transparency entry: 645423679
- Sigstore integration time:
-
Permalink:
thehyve/omop-cdm@28560d93f213fa147bb9b75d62821a6df7dd4f70 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/thehyve
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@28560d93f213fa147bb9b75d62821a6df7dd4f70 -
Trigger Event:
release
-
Statement type: