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.4.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.4-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dlt_source_morphais-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 bb389028ee14185d814930d5a8a148fcdd18292c756c05117abc892d2e919c41
MD5 170eff116f7608e82f5c3e12b409ded7
BLAKE2b-256 b2b929778938c5e776e49922787ecc146107e26d1869109c1e1607e44dcaed04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dlt_source_morphais-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37925f1d79fd39abf89d90ee394c88ae29d706e9488667723c90f3ba1105ea47
MD5 dfd83c02f76daf4a39d6ffa34fb685be
BLAKE2b-256 79a3b43eefd62a50a8efdb12b4d1bbf91c73e7e0f19304f8337afd7dad48579f

See more details on using hashes here.

Provenance

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