This repository contains Python samples for EDC's REST API. Forked from Informatica-EIC/REST-API-Samples. Removed Java source.
Official REST API documents can be found here
- Create a virtual environment: python3 -m venv venv
- Activate the virtual environment: source venv/bin/activate
- Install the package
-
The latest version from test.pypi.org:
pip3 install --extra-index-url https://test.pypi.org/simple/ informatica-edc-rest-api-samples
-
The tested version from pypi.org:
pip3 install informatica-edc-rest-api-samples
-
- Run the code
- python3 run_edc_lineage.py
- Note: Check the run_edc_lineage code if you want to use your own config.json
Note: Check the coverage information available in coverage overview
- Clone this repository
- This repository uses one submodules. Run the following the get it:
git submodule init git submodule update
The git repository metadata-registry-interface-specifications will be located in Informatica-EDC-REST-API-Samples/python/metadata-registry-specifications
-
Create a virtual environment in the main directory:
cd <your_directory>/Informatica-EDC-REST-API-Samples python3 -m venv venv
-
Source it
source venv/bin/activate
On Windows:
venv\bin\Scripts\activate.cmd
-
Upgrade pip get rid of annoying 'you should bla bla':
python3 -m pip install --upgrade pip
-
create the directory temp in the directory python:
cd <your_directory>/Informatica-EDC-REST-API-Samples/python mkdir temp
-
install requirements file that exists in the python directory: (make sure the venv is active)
cd <your_directory>/Informatica-EDC-REST-API-Samples/python pip3 install -r requirements.txt
Note: This also install the package itself. You may want to uninstall it:
pip3 uninstall informatica-edc-rest-api-samples
(these are used by the metadata_utilities)