Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1009 Bytes

README.md

File metadata and controls

53 lines (37 loc) · 1009 Bytes
description keywords
dlt source for morphais.com
Morphais API
morphais.com

dlt-source-morphais

PyPI version

DLT source for Morphais.

Usage

Create a .dlt/secrets.toml with your API key and email:

morphais_email="<YOUR-EMAIL>"
morphais_api_key="<YOUR_API_KEY>"

and then run the default source with optional list references:

from dlt_source_morphais import source as morphais_source

pipeline = dlt.pipeline(
   pipeline_name="morphais_pipeline",
   destination="duckdb",
   dev_mode=True,
)
morphais_data = morphais_source()
pipeline.run(morphais_data)

Development

This project is using devenv.

Run the sample

MORPHAIS_EMAIL=[...] \
   MORPHAIS_API_KEY=[...] \
   python morphais_pipeline.py

Regenerate the model

Run

generate-model