Ahmed Basha
09/03/2024, 9:49 PMpython3 tap.py --config confog.json --discover
: AttributeError: 'NoneType' object has no attribute 'name'
Here is my tap.py
file:
from singer_sdk import Tap, Stream
from typing import List
from streams import TestStream, TestTestStream
class TapTestX(Tap):
name = "tap-test"
config_jsonschema = {
"type": "object",
"properties": {
"api_base_url": {
"type": "string",
"default": "<https://api.api.com>",
"description": "some desc"
}
},
"required": ["api_base_url"]
}
def discover_streams(self) -> List[Stream]:
"""Return a list of streams."""
return [
TestStream(tap=self),
TestTestStream(tap=self),
]
if __name__ == "__main__":
TapTestX().cli()
Reuben (Matatika)
09/04/2024, 6:16 PMEdgar Ramírez (Arch.dev)
09/04/2024, 11:20 PMcli()
on the class instead of the instance:
TapTestX.cli()