carrot-transform 0.3.3__py3-none-any.whl → 0.3.5__py3-none-any.whl

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.

Potentially problematic release.


This version of carrot-transform might be problematic. Click here for more details.

@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.3
2
+ Name: carrot_transform
3
+ Version: 0.3.5
4
+ Summary:
5
+ Author: anwarfg
6
+ Author-email: 913028+anwarfg@users.noreply.github.com
7
+ Requires-Python: >=3.10,<4.0
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Requires-Dist: click (>=8.1.7,<9.0.0)
14
+ Requires-Dist: jinja2 (>=3.1.4,<4.0.0)
15
+ Requires-Dist: numpy (<2)
16
+ Requires-Dist: pandas (>=2.2.3,<3.0.0)
17
+ Description-Content-Type: text/markdown
18
+
19
+ <p align="center">
20
+ <a href="https://carrot.ac.uk/" target="_blank">
21
+ <picture>
22
+ <source media="(prefers-color-scheme: dark)" srcset="/images/logo-dark.png">
23
+ <img alt="Carrot Logo" src="/images/logo-primary.png" width="280"/>
24
+ </picture>
25
+ </a>
26
+ </p>
27
+
28
+ <p align="center">
29
+
30
+ <a href="https://github.com/Health-Informatics-UoN/carrot-transform/releases">
31
+ <img src="https://img.shields.io/github/v/release/Health-Informatics-UoN/carrot-transform" alt="Release">
32
+ </a>
33
+ <a href="https://opensource.org/license/mit">
34
+ <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License">
35
+ </a>
36
+ </p>
37
+
38
+
39
+ <div align="center">
40
+ <strong>
41
+ <h2>Streamlined Data Transformation to OMOP</h2><br />
42
+ <a href="https://carrot.ac.uk/">Carrot Transform</a> automates data transformation processes and facilitates the standardisation of datasets to the OMOP vocabulary, simplifying the integration of diverse data sources.
43
+ <br />
44
+ </strong>
45
+ </div>
46
+
47
+ <p align="center">
48
+ <br />
49
+ <a href="https://carrot.ac.uk/transform" rel="dofollow"><strong>Explore the docs »</strong></a>
50
+ <br />
51
+ <br />
52
+
53
+ <a href="https://carrot.ac.uk/">Carrot Mapper</a> is a webapp which allows the user to use the metadata (as output by [WhiteRabbit](https://github.com/OHDSI/WhiteRabbit)) from a dataset to produce mapping rules to the OMOP standard, in the JSON format. These can be ingested by [Carrot Transform](https://carrot.ac.uk/transform/quickstart) to perform the mapping of the contents of the dataset to OMOP.
54
+
55
+ Carrot Transform transforms input data into tab separated variable files of standard OMOP tables, with concepts mapped according to the provided rules (generated from Carrot Mapper).
56
+
57
+ ## Quick Start for Developers
58
+
59
+ To have the project up and running, please follow the [Quick Start Guide](https://carrot.ac.uk/transform/quickstart).
60
+
61
+ ## Release Procedure
62
+ To release a new version of `carrot-transform` follow these steps:
63
+
64
+ ### 1. Prepare the repository
65
+ - First ensure that repository is clean and all required changes have been merged.
66
+ - Pull the latest changes from `main` with `git pull origin main`.
67
+
68
+ ### 2. Create a release branch
69
+
70
+ - Now create a new feature branch name `release/v<NEW-VERSION>` (e.g. `release/v0.2.0`).
71
+
72
+ ### 3. Update the version number
73
+ - Use poetry to bump the version. For example, for a minor version update invoke:
74
+ ```bash
75
+ poetry version minor
76
+ ```
77
+ - Commit and push the changes (to the release feature branch):
78
+ ```bash
79
+ NEW_VERSION=$(poetry version -s)
80
+ git add pyproject.toml
81
+ git commit -m "Bump version to $NEW_VERSION"
82
+ git push --set-upstream origin release/v$NEW_VERSION
83
+ ```
84
+
85
+ ### 4. Create pull request
86
+ - Open a pull request from `release/v$NEW_VERSION` to `main` and await approval.
87
+ ### 5. Merge and tag
88
+ - After approval merge the the feature branch to `main`.
89
+ - Checkout to `main`, pull updates, and create a tag corresponding to the new version number.
90
+ ```bash
91
+ git checkout main
92
+ git pull origin main
93
+ git tag -a "$NEW_VERSION" -m "Release $NEW_VERSION"
94
+ git push origin "$NEW_VERSION"
95
+ ```
96
+
97
+ ### 6. Create a release
98
+ - We must now link the tag to a release in the GitHub repository. To do this from the command line first install GitHub command line tools `gh` and then invoke:
99
+ ```bash
100
+ gh release create "$TAG" --title "$TAG" --notes "Release for $VERSION"
101
+ ```
102
+
103
+ - Alternatively, follow the instructions in the [GitHub documentation](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) to manually create a release.
104
+ ## License
105
+
106
+ This repository's source code is available under the [MIT license](LICENSE).
@@ -0,0 +1,25 @@
1
+ carrottransform/__init__.py,sha256=cQJKTCpG2qmKxDl-VtSWQ3_WFjyzg4u_8nZacWAHFcU,73
2
+ carrottransform/_version.py,sha256=bm7SM-_MN0gstlNsCDO6dAajKcjQD-NxI_xpvfRx0Ts,172
3
+ carrottransform/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ carrottransform/cli/command.py,sha256=xYTaJsVZyRYv0CzUwrh7ZPK8hhGyC3MDfvVYxHcXYSM,508
5
+ carrottransform/cli/subcommands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ carrottransform/cli/subcommands/run.py,sha256=GfRHG_aLoBxuXkpGTTrRmsEcNUjTUB6cl8f1B7lTBt8,28461
7
+ carrottransform/config/OMOPCDM_postgresql_5.3_ddl.sql,sha256=fXrPfdL3IzU5ux55ogsQKjjd-c1KzdP_N2A_JjlY3gk,18084
8
+ carrottransform/config/omop.json,sha256=OT3jvfPjKhjsDnQcQw1OAEOHhQLoHXNxTj_MDwNbYqo,1934
9
+ carrottransform/examples/test/inputs/Covid19_test.csv,sha256=d5t7Lfhkwbfe3Uk2IBqB2ZT5o0h9QaeraC8E5-IMERo,67521
10
+ carrottransform/examples/test/inputs/Demographics.csv,sha256=_ukUTpD4g751sL_mSL3f26T_Edd2kvH-evwm54VfXJI,85237
11
+ carrottransform/examples/test/inputs/Symptoms.csv,sha256=5dvGv16PNJJO_lFc0reRmQbE3m7iWfWajl51JDsqg0M,78447
12
+ carrottransform/examples/test/inputs/covid19_antibody.csv,sha256=SPCpyqpTbVq9987jXZ8AS4FEkrchRMAIYhTQJjfpwfY,98927
13
+ carrottransform/examples/test/inputs/vaccine.csv,sha256=_gcM-SIymyt2Dkkr_zGmQI9keIdmDm-gDI_QvXXLFrY,44037
14
+ carrottransform/examples/test/rules/rules_14June2021.json,sha256=n2OYNFhbx-NLhmqjAad6RsfXjQFknZIgQ7a5uyJF0Co,13226
15
+ carrottransform/tools/__init__.py,sha256=b3JuCwgJVx0rqx5igB8hNNKO0ktlbQjHGHwy-vzpdo0,198
16
+ carrottransform/tools/click.py,sha256=5fxl9zL6piwWMN4cSule0tG90E9g7eFNosoSu1ES1og,471
17
+ carrottransform/tools/file_helpers.py,sha256=_NRswYjqpBBkp4efMBhFf9XIRaqYTw1-jA22usyrbqA,1204
18
+ carrottransform/tools/mappingrules.py,sha256=jvWTLCQoLoCegmLWHPyRSRVOTLejp7LzmFMr-ENmuTU,7121
19
+ carrottransform/tools/metrics.py,sha256=VrcePVGwgHCJqQ1i9Q_KqL6Cv8IbIce2pSRSBth9808,11011
20
+ carrottransform/tools/omopcdm.py,sha256=fcqIub5ud57i-5J3iUvPi2dqfGgyjWnWJTH1djQzq9E,8603
21
+ carrot_transform-0.3.5.dist-info/LICENSE,sha256=pqIiuuTs6Na-oFd10MMsZoZmdfhfUhHeOtQzgzSkcaw,1082
22
+ carrot_transform-0.3.5.dist-info/METADATA,sha256=cW5wfZRrZoai-nnV5k9FVYY8-XGm24Qadu0hYV4P9R8,4206
23
+ carrot_transform-0.3.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
24
+ carrot_transform-0.3.5.dist-info/entry_points.txt,sha256=z7qmjTl7C8shrYiPBy6yZo9RRZ31Jcvo6L8ntdqbs2E,74
25
+ carrot_transform-0.3.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ carrot-transform=carrottransform.cli.command:transform
3
+
@@ -1,2 +1,6 @@
1
- # TODO - pick this up automatically when building
2
- __version__ = '0.3.2'
1
+ from importlib.metadata import version
2
+
3
+ try:
4
+ __version__ = version("carrot_transform") # Defined in the pyproject.toml
5
+ except Exception:
6
+ __version__ = "unknown"