"""Config file. For Apple podcast subscription snapshot data monthly ingestion workflow. """ import os environment = os.environ.get('Environment', 'dev') feed_name = 'apple_podcasts_subscription_snapshot_monthly' s3_feed_name = 'subscription-snapshot-monthly' secrets_path = 'swf-apple-podcast-subs-snapshot-monthly' staging_raw_table = 'staging_raw_apple_podcasts_subscription_snapshot_monthly' account = 'sme' account_id = 120343499 sme_vendor = 'SME' pod_sub_llc_vendor = 'POD_SUB_LLC' vendors = { sme_vendor: 90421401, pod_sub_llc_vendor: 92655920 } overall_feed_name = '_'.join([feed_name, account]) s3_bucket = os.environ.get( 'FEED_INGESTION_DATA_BUCKET', 'dev-apple-podcasts-reports') s3_archive_path_template = ( f's3://{s3_bucket}/{s3_feed_name}/' ) report_type = 'apSubscriptionsSnapshot' source_daily = 'Daily' source_weekly = 'Weekly' source_monthly = 'Monthly' date_format = '%Y-%m-%d' file_date_format = '%Y%m%d' sources = [source_daily, source_weekly, source_monthly] # Filename download format report_name = 'ApplePodcasts_SubscriptionSnapshot_{vendor_id}_{date}.txt.gz'