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.5.tar.gz (11.6 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.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dlt_source_morphais-0.0.5.tar.gz
  • Upload date:
  • Size: 11.6 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.5.tar.gz
Algorithm Hash digest
SHA256 4818278f82e9ccd3a2d0e0db454436cd574dbaa6a105d6954f1f06042d4e181b
MD5 2a7e3e08e0cd12d166fbc47f91045e43
BLAKE2b-256 e4153173929fe8571ab029f7ae7d8f6f1de465665c9076340a6a615de435e44b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_morphais-0.0.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dlt_source_morphais-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e010a5a4ab854c3cfe3e9869e56d821e66041c7c2b47e6c5953adf5e75883e7b
MD5 41e6209e92c4cb220d5881e63438bc6b
BLAKE2b-256 e611399cb98b110b4b89c7711361ff8c70d64a237416b2e22b7c5afc52e6c703

See more details on using hashes here.

Provenance

The following attestation bundles were made for dlt_source_morphais-0.0.5-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