dlt-hub / dlt

data load tool (dlt) is an open source Python library that makes data loading easy 🛠️
https://dlthub.com/docs
Apache License 2.0
2.65k stars 175 forks source link

supports adding DltResource in RESTAPIConfig dict #1865

Closed willi-mueller closed 1 month ago

willi-mueller commented 1 month ago

Description

Related Issues

TODO before merging

Crashes: process_parent_data_item because item is a str instead of Dict[str, Any]:

 def repositories():
        """A seed list of repositories to fetch"""
        yield from [{"name": "dlt"}, {"name": "verified-sources"}, {"name": "dlthub-education"}]

Correct:

 def repositories():
        """A seed list of repositories to fetch"""
        yield [{"name": "dlt"}, {"name": "verified-sources"}, {"name": "dlthub-education"}]

Also correct:

def repositories():
    """A seed list of repositories to fetch"""
    yield [
        [{"name": "dlt"}],
        [{"name": "verified-sources"}],
        [{"name": "dlthub-education"}],
    ]
netlify[bot] commented 1 month ago

Deploy Preview for dlt-hub-docs ready!

Name Link
Latest commit f37ffa468c5de929c0d2c5657439c38893715b7e
Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/66f2d987d489f60008d5792f
Deploy Preview https://deploy-preview-1865--dlt-hub-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.