No project description provided
Project description
Prophecy Lineage Extractor
Running
- Please run extractor as following, it needs env variables
- we Only need to set SMTP creds if we plan to pass
--send-email
argument
export PROPHECY_URL=https://app.prophecy.io
export PROPHECY_PAT=${{ secrets.PROPHECY_PAT }}
export SMTP_HOST=smtp.gmail.com
export SMTP_PORT=587
export SMTP_USERNAME=${{ secrets.SMTP_USERNAME }}
export SMTP_PASSWORD=${{ secrets.SMTP_PASSWORD }}
export RECEIVER_EMAIL=ashish@prophecy.io
python -m prophecy_lineage_extractor --project-id 36587 --pipeline-id 36587/pipelines/customer_orders_demo --send-email
Github Action Guide
- This extactor can be setup in Github Action of a Prophecy project to get email of lineage on every commit to main
- Following is a sample of github action we can use
name: Run Prophecy Lineage extractor and send output to email
on:
push:
branches:
- main # Trigger on merge to the main branch
paths:
- 'datasets/**'
- 'pipelines/**'
- 'pbt_proect.yml'
- '.github/workflows/prophecy_lineage_extractor.yml'
jobs:
extract-and-mail-prophecy-lineage:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Adjust Python version as needed
- name: Install Package from PyPI
run: |
pip install --no-cache-dir prophecy-lineage-extractor
- name: Extract and Send Prophecy Lineage
run: |
export PROPHECY_URL=https://app.prophecy.io
export PROPHECY_PAT=${{ secrets.PROPHECY_PAT }}
export SMTP_HOST=smtp.gmail.com
export SMTP_PORT=587
export SMTP_USERNAME=${{ secrets.SMTP_USERNAME }}
export SMTP_PASSWORD=${{ secrets.SMTP_PASSWORD }}
export RECEIVER_EMAIL=ashish@prophecy.io
python -m prophecy_lineage_extractor --project-id 36587 --pipeline-id 36587/pipelines/customer_orders_demo --send-email
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
File details
Details for the file prophecy_lineage_extractor-0.9.0.tar.gz
.
File metadata
- Download URL: prophecy_lineage_extractor-0.9.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecf8dc1852794903b7022368133011766e32b77cfbd8c63e89fc1ef8fc36fc3a |
|
MD5 | 758d6a4d7ef7b49b5963f50289d327b8 |
|
BLAKE2b-256 | ef910e2966563a7167f0d92c6b23e83a03d3af3bacbcff8f1dd0b3ea710ce336 |
File details
Details for the file prophecy_lineage_extractor-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: prophecy_lineage_extractor-0.9.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf40a54299783c8e6992c722e7febeafc1fae7630359c6838f1e7c7eafa5ad84 |
|
MD5 | 7cce690f997f64e0ec33981b4bbf1b8f |
|
BLAKE2b-256 | 584d037b43efd8a23e53aa2b7a2dca144217f919dfb1728966065683e541aac5 |