Chris
01/29/2024, 5:05 PMSCHEMAS_DIR = importlib_resources.files(__package__) / "schemas"
Andy Carter
01/29/2024, 5:59 PMschemas
folder?Chris
01/29/2024, 6:17 PMChris
01/29/2024, 6:18 PMschema_filepath = SCHEMAS_DIR / "calls.json"
. Not sure if I need to do anything else. If I declare the schema dict manually it will work.
schema = th.PropertiesList(
th.Property(
"metaData",
th.ObjectType(
th.Property("id", th.StringType),
th.Property("url", th.StringType),
th.Property("title", th.StringType),
th.Property("scheduled", th.DateTimeType),
th.Property("started", th.DateTimeType),
th.Property("duration", th.IntegerType),
th.Property("primaryUserId", th.StringType),
th.Property("direction", th.StringType),
th.Property("system", th.StringType),
th.Property("scope", th.StringType),
th.Property("media", th.StringType),
th.Property("language", th.StringType),
th.Property("meetingUrl", th.StringType),
th.Property("isPrivate", th.BooleanType),
th.Property("calendarEventId", th.StringType),
)
),
).to_dict()
Chris
01/29/2024, 6:59 PMEdgar Ramírez (Arch.dev)
01/29/2024, 8:49 PMschemas
directory should be live inside the package:
tap_bitso
├── __init__.py
├── auth.py
├── client.py
├── schemas
│ ├── __init__.py
│ ├── book.json
│ ├── ledger.json
│ ├── open_order.json
│ ├── ticker.json
│ └── trade.json
├── streams.py
└── tap.py
I'll add that to the cookiecutter.Chris
01/29/2024, 11:57 PM