pycarol.carolina¶
-
class
pycarol.carolina.Carolina(carol)[source]¶ This class is used to handle any iteration with Carol data storage (CDS).
Args:
carol: class: pycarol.Carol-
get_bucket_name(space)[source]¶ Format the bucket path for each possible space.
Args:
- space: str,
Which bucket to get. Possible values:
- “golden”: Data Model golden records.
- “staging”: Staging records path
- “staging_master”: Staging records from Master
- “staging_rejected”: Staging records from Rejected
- “view”: Data Model View records
- “app”: App bucket
- “golden_cds”: CDS golden records
- “staging_cds”: Staging Intake.
- Returns:
- formatted bucket path
-
get_path(space, vars)[source]¶ Format the bucket path for each possible space.
Args:
- space: str,
Which bucket to get. Possible values:
- “golden”: Data Model golden records.
- “staging”: Staging records path
- “staging_master”: Staging records from Master
- “staging_rejected”: Staging records from Rejected
- “view”: Data Model Relationship View records
- “app”: App bucket
- “golden_cds”: CDS golden records
- “staging_cds”: Staging Intake.
- vars: dict
Parameters needed to format the storage path. Possible keys:
- “tenant_id”: Tenant ID.
- “connector_id”: Connector ID
- “staging_type”: Staging Name
- “dm_name”: Data model Name
- “relationship_view_name”: Relationship view name
- “app_name”: App name
- Returns:
- formatted path
-