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-emailargument
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prophecy_lineage_extractor-0.11.0.dev7.tar.gz.
File metadata
- Download URL: prophecy_lineage_extractor-0.11.0.dev7.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8baadb73aa596778e5e445305a021e092a9989de1365de21bd7656db8f642929
|
|
| MD5 |
895c6ee7ed536d946215a195a771538d
|
|
| BLAKE2b-256 |
3272e35d7c82ebae2cccfdc11557ffaaa5b5f5e1d266e094a99db79426f33718
|
File details
Details for the file prophecy_lineage_extractor-0.11.0.dev7-py3-none-any.whl.
File metadata
- Download URL: prophecy_lineage_extractor-0.11.0.dev7-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7d5199ea52be76e40bcc12e65101d7e1f60cc04676ee4dbbd02e9ec0df8ee5
|
|
| MD5 |
089255037a499b854abb0154c7ce5e66
|
|
| BLAKE2b-256 |
b620e896fbbc2f1dc3cfc309c44f3c587fdf79274d2d983cf60aa3977bb2cb21
|