Skip to main content

Python

To use the sdk in Python, you can install it from PyPi.

note

To use the Cardinal SDK, you need Python 3.9 or greater.

pip install cardinal-sdk

Template app​

We provide a template for Python that showcases several self-contained use cases that highlight the main features of the Cardinal SDK.

To Launching the Tutorial in Python:​

To run the tutorial in Python, clone this repository:

git clone https://github.com/icure/cardinal-introductory-tutorial.git
cd cardinal-introductory-tutorial

It is recommended to use a virtual environment, to avoid conflicting dependencies. The minimum supported Python version is 3.9.

cd python
python3 -m venv venv
source venv/bin/activate

Then, install the Cardinal SDK from PyPI.

pip install cardinal-sdk

Finally, run the example Python code.

python src/main.py

Cardinal SDK Introductory Tutorial​

Please proceed to the Introductory Tutorial to discover how the Cardinal solution enables you to create, search, and share medical data. This will guide you in understanding your next steps toward integrating Cardinal.