pyeunomia


Namepyeunomia JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryA standard dataset in the OMOP (Observational Medical Outcomes Partnership) Common Data Model (CDM) for testing and demonstration purposes
upload_time2024-03-10 15:35:14
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT
keywords omop cdm ohdsi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyeunomia

Eunomia is a standard dataset in the OMOP (Observational Medical Outcomes Partnership) Common Data Model (CDM) for testing and demonstration purposes. Eunomia is used for many of the exercises in the [Book of OHDSI](https://ohdsi.github.io/TheBookOfOhdsi/).

This library is just a simple wrapper for a Duckdb database created from the CSV export available in the  `exportToCsv` function. 

## Usage

The `connect()` method returns a SQL interface compliant with the DB-API 2.0 specification described by [PEP 249](https://peps.python.org/pep-0249/).

```python
import pyeunomia
conn = pyeunomia.Eunomia().connect()
cur = conn.execute("select count(*) from person")
cur.fetchone()
```
```
(2694,)
```
```python
conn.close()
```
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pyeunomia",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "OMOP CDM OHDSI",
    "author": "",
    "author_email": "Miguel-Angel Sicilia <msicilia@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2e/47/86689e2096c9c78a4b96a1cdcb975d601653f706db505bc1d89cd9156f35/pyeunomia-0.1.1.tar.gz",
    "platform": null,
    "description": "# pyeunomia\n\nEunomia is a standard dataset in the OMOP (Observational Medical Outcomes Partnership) Common Data Model (CDM) for testing and demonstration purposes. Eunomia is used for many of the exercises in the [Book of OHDSI](https://ohdsi.github.io/TheBookOfOhdsi/).\n\nThis library is just a simple wrapper for a Duckdb database created from the CSV export available in the  `exportToCsv` function. \n\n## Usage\n\nThe `connect()` method returns a SQL interface compliant with the DB-API 2.0 specification described by [PEP 249](https://peps.python.org/pep-0249/).\n\n```python\nimport pyeunomia\nconn = pyeunomia.Eunomia().connect()\ncur = conn.execute(\"select count(*) from person\")\ncur.fetchone()\n```\n```\n(2694,)\n```\n```python\nconn.close()\n```",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A standard dataset in the OMOP (Observational Medical Outcomes Partnership) Common Data Model (CDM) for testing and demonstration purposes",
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [
        "omop",
        "cdm",
        "ohdsi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ffeb613da1c3eacbc1dfadd0aedd7c70b224cb081bf77e2e7443433c4fb386b",
                "md5": "8c6df3baf3967579be5fe5ebb740a1bc",
                "sha256": "24c2e7df73af6cb39f9720a0c92d7ea284fa434c0340e4f26d8ad0a75a779342"
            },
            "downloads": -1,
            "filename": "pyeunomia-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c6df3baf3967579be5fe5ebb740a1bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4855594,
            "upload_time": "2024-03-10T15:35:11",
            "upload_time_iso_8601": "2024-03-10T15:35:11.907378Z",
            "url": "https://files.pythonhosted.org/packages/2f/fe/b613da1c3eacbc1dfadd0aedd7c70b224cb081bf77e2e7443433c4fb386b/pyeunomia-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e4786689e2096c9c78a4b96a1cdcb975d601653f706db505bc1d89cd9156f35",
                "md5": "940a815eb7d402147bba4516d40f92ca",
                "sha256": "08a6b319ff876a92d205e12691503c71e6e4d6ada522558d4d69eb90b06ad538"
            },
            "downloads": -1,
            "filename": "pyeunomia-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "940a815eb7d402147bba4516d40f92ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4837752,
            "upload_time": "2024-03-10T15:35:14",
            "upload_time_iso_8601": "2024-03-10T15:35:14.933002Z",
            "url": "https://files.pythonhosted.org/packages/2e/47/86689e2096c9c78a4b96a1cdcb975d601653f706db505bc1d89cd9156f35/pyeunomia-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-10 15:35:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyeunomia"
}
        
Elapsed time: 0.19422s