Skip to main content

A DLT source for Morphais

Project description


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

dlt-source-morphais

PyPI version

DLT source for Morphais.

Currently loads the following data:

Table Contains
persons Items of the Person model with all properties
persons_* Multi-value properties derived of the Person model
highlights Unique highlights
audiences Unique audiences (B2B, B2C, etc.)
legal_forms Unique legal forms (GmbH, Ltd., etc.)
funding_stages Unique funding stages (Pre-Seed, Seed, etc.)
industries Unique industries
solutions Unique solutions
startups Items of the Startup model with all properties
startups_* Multi-value properties derived of the Startup model

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.

Commands:

Command What does it do?
generate-model generates the morphais Pydantic model from the current spec file, applies patches, etc.
update-spec Pulls in the latest main#HEAD of planet-a-ventures/morphais-openapi-spec
refresh-model Both commands above plus adds it to git and commits the changes.
format Formats & lints all code
sample-pipeline-run Runs the sample pipeline. By default dev_mode=True which fetches resources with a limit of 1 (page)
sample-pipeline-show Starts the streamlit-based dlt hub

Run the sample

MORPHAIS_EMAIL=[...] \
   MORPHAIS_API_KEY=[...] \
   sample-pipeline-run

alternatively you can also create a .dlt/secrets.toml (excluded from git) with the following content:

morphais_api_key="..."
morphais_email="you@domain.com"

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

dlt_source_morphais-0.0.3.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

dlt_source_morphais-0.0.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file dlt_source_morphais-0.0.3.tar.gz.

File metadata

  • Download URL: dlt_source_morphais-0.0.3.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dlt_source_morphais-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0fe07b789691dfbd1b1a716c1e0670aa2dcbc7b282ea3748cea0576fe2057dfd
MD5 242e9277be74b3f98dcb8557b25afbac
BLAKE2b-256 734157a86f674ffc9ed60b96f8ac96fb330c74e4c39c30514064389082c7ae6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_morphais-0.0.3.tar.gz:

Publisher: test.yml on planet-a-ventures/dlt-source-morphais

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dlt_source_morphais-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dlt_source_morphais-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2cad6e7a4500d338ae4688b722322349378217a0955f1523d873d787c4f1822c
MD5 0dadb196c022b53ce2828ef01d3f64fd
BLAKE2b-256 5cd96b6df6f812a0193de2291678f678feccc4f655f233f99034ec76931578ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_morphais-0.0.3-py3-none-any.whl:

Publisher: test.yml on planet-a-ventures/dlt-source-morphais

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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