Metadata-Version: 2.2
Name: dlt-source-morphais
Version: 0.0.1
Summary: A DLT source for Morphais
Author: Planet A GmbH
Author-email: dev@planet-a.com
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dlt>=1.5.0
Provides-Extra: show
Requires-Dist: dlt[duckdb]>=1.5.0; extra == "show"
Requires-Dist: streamlit>=1.41.1; extra == "show"
Requires-Dist: watchdog>=6.0.0; extra == "show"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: summary

---
description: dlt source for morphais.com
keywords: [Morphais API, morphais.com]
---

# dlt-source-morphais

[![PyPI version](https://img.shields.io/pypi/v/dlt-source-morphais)](https://pypi.org/project/dlt-source-morphais/)

[DLT](htps://www.github.com/dlt-hub/dlt) source for [Morphais](https://www.morphais.com/).

## Usage

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

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

and then run the default source with optional list references:

```py
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](https://devenv.sh/).

### Run the sample

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

### Regenerate the model

Run

```sh
generate-model
```
