Skip to content

SubscriptionDataSource Ctor Overload for Headers as PyObject/Dict #9361

@AlexCatarino

Description

@AlexCatarino

Expected Behavior

We can use Python dict to pass values to the headers argument:

headers = {"Authorization": "Basic (HelloWorldPython"}
        return SubscriptionDataSource(
            "https://eoko1uke6k6itbv.m.pipedream.net", 
            SubscriptionTransportMedium.REMOTE_FILE,
            FileFormat.CSV,
            headers
        )

Actual Behavior

Not supported.

Potential Solution

Add PyObject overload. See download method.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions