diff --git a/parsons/__init__.py b/parsons/__init__.py index bbf5513b30..b8793ec649 100644 --- a/parsons/__init__.py +++ b/parsons/__init__.py @@ -3,114 +3,7 @@ import logging import os - -# Provide shortcuts to importing Parsons submodules - -# If you want to be more targeted in your imports, you can set the PARSONS_SKIP_IMPORT_ALL -# environment variable and import classes directly from the Python module where they -# are defined. - -if not os.environ.get('PARSONS_SKIP_IMPORT_ALL'): - from parsons.ngpvan.van import VAN - from parsons.targetsmart.targetsmart_api import TargetSmartAPI - from parsons.targetsmart.targetsmart_automation import TargetSmartAutomation - from parsons.databases.redshift.redshift import Redshift - from parsons.databases.db_sync import DBSync - from parsons.aws.s3 import S3 - from parsons.civis.civisclient import CivisClient - from parsons.etl.table import Table - from parsons.notifications.gmail import Gmail - from parsons.google.google_civic import GoogleCivic - from parsons.google.google_sheets import GoogleSheets - from parsons.google.google_cloud_storage import GoogleCloudStorage - from parsons.google.google_bigquery import GoogleBigQuery - from parsons.phone2action.p2a import Phone2Action - from parsons.mobilize_america.ma import MobilizeAmerica - from parsons.facebook_ads.facebook_ads import FacebookAds - from parsons.notifications.slack import Slack - from parsons.turbovote.turbovote import TurboVote - from parsons.sftp.sftp import SFTP - from parsons.action_kit.action_kit import ActionKit - from parsons.geocode.census_geocoder import CensusGeocoder - from parsons.airtable.airtable import Airtable - from parsons.copper.copper import Copper - from parsons.controlshift.controlshift import Controlshift - from parsons.crowdtangle.crowdtangle import CrowdTangle - from parsons.hustle.hustle import Hustle - from parsons.twilio.twilio import Twilio - from parsons.salesforce.salesforce import Salesforce - from parsons.databases.postgres.postgres import Postgres - from parsons.freshdesk.freshdesk import Freshdesk - from parsons.bill_com.bill_com import BillCom - from parsons.newmode.newmode import Newmode - from parsons.databases.mysql.mysql import MySQL - from parsons.rockthevote.rtv import RockTheVote - from parsons.mailchimp.mailchimp import Mailchimp - from parsons.zoom.zoom import Zoom - from parsons.action_network.action_network import ActionNetwork - from parsons.pdi.pdi import PDI - from parsons.azure.azure_blob_storage import AzureBlobStorage - from parsons.github.github import GitHub - from parsons.bloomerang.bloomerang import Bloomerang - from parsons.box.box import Box - from parsons.sisense.sisense import Sisense - from parsons.alchemer.alchemer import SurveyGizmo, Alchemer - from parsons.quickbase.quickbase import Quickbase - from parsons.actblue.actblue import ActBlue - from parsons.mobilecommons.mobilecommons import MobileCommons - from parsons.etl.table import Table - - __all__ = [ - 'VAN', - 'TargetSmartAPI', - 'TargetSmartAutomation', - 'Redshift', - 'S3', - 'CivisClient', - 'DBSync', - 'Table', - 'Gmail', - 'GoogleCivic', - 'GoogleCloudStorage', - 'GoogleBigQuery', - 'GoogleSheets', - 'Phone2Action', - 'MobilizeAmerica', - 'FacebookAds', - 'Slack', - 'TurboVote', - 'SFTP', - 'ActionKit', - 'CensusGeocoder', - 'Airtable', - 'Copper', - 'Controlshift', - 'CrowdTangle', - 'Hustle', - 'Twilio', - 'Salesforce', - 'Postgres', - 'Freshdesk', - 'BillCom', - 'Newmode', - 'MySQL', - 'RockTheVote', - 'Mailchimp', - 'Zoom', - 'ActionNetwork', - 'PDI', - 'AzureBlobStorage', - 'GitHub', - 'Bloomerang', - 'Box', - 'Sisense', - 'SurveyGizmo', - 'Alchemer', - 'Quickbase', - 'ActBlue', - 'MobileCommons' - ] - +from parsons.etl.table import Table # Define the default logging config for Parsons and its submodules. For now the # logger gets a StreamHandler by default. At some point a NullHandler may be more @@ -172,6 +65,7 @@ ("parsons.google.google_sheets", "GoogleSheets"), ("parsons.hustle.hustle", "Hustle"), ("parsons.mailchimp.mailchimp", "Mailchimp"), + ("parsons.mobilecommons.mobilecommons", "MobileCommons"), ("parsons.mobilize_america.ma", "MobilizeAmerica"), ("parsons.nation_builder.nation_builder", "NationBuilder"), ("parsons.newmode.newmode", "Newmode"),