Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prophecy_lineage_extractor-0.10.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prophecy_lineage_extractor-0.10.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file prophecy_lineage_extractor-0.10.0.tar.gz.

File metadata

  • Download URL: prophecy_lineage_extractor-0.10.0.tar.gz
  • Upload date:
  • Size: 10.8 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

Hashes for prophecy_lineage_extractor-0.10.0.tar.gz
Algorithm Hash digest
SHA256 b516b09b29e9cd9177150e54928409ed3337b49edf6aa844725617c7bf5fd3bc
MD5 91acce2af892d2c389b058ebefdfc4a2
BLAKE2b-256 cf6e2499381b116e22670934f2e12f986e6edf03424658114b1802aac2ecb4a6

See more details on using hashes here.

File details

Details for the file prophecy_lineage_extractor-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for prophecy_lineage_extractor-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1807b890b09906af7e910fe3c82ea65c072773190ddd5c84b3d0bd11ec22ca72
MD5 f31275b1567a64ea4ac1a30c5c06e99f
BLAKE2b-256 21725a1ed8a8c7d08947a7fac3aed6695d5dfd78050607ab679ea85076cd0c00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page