Source code for pymyinstall.packaged.packaged_config_2_cloud

# -*- coding: utf-8 -*-
"""
Defines a set of modules for more machine learning or student projects.


:githublink:`%|py|6`
"""
from ..installhelper.module_install import ModuleInstall


[docs]def cloud_set(): """ modules introduced by students or needed for student projects, it requires the modules in set *extended* :githublink:`%|py|12` """ mod = [ ModuleInstall("botocore", "pip", usage="AWS", purpose="A low-level interface to a growing number of Amazon Web Services. " + "The botocore package is the foundation for the AWS CLI as well as boto3."), ModuleInstall("s3transfer", "pip", usage="AWS", purpose="An Amazon S3 Transfer Manager"), ModuleInstall("boto3", "pip", usage="AWS", purpose="A Python interface to Amazon Web Services"), ModuleInstall("s3fs", "pip", usage="AWS", purpose="Convenient Filesystem interface over S3"), ModuleInstall("boto", "pip", purpose="Amazon Web Services Library"), ModuleInstall("google-auth-httplib2", "pip", mname="google_auth_httplib2", purpose="This library provides an httplib2 transport for google-auth."), ModuleInstall("google-auth", "pip", mname="google_auth", purpose="This library simplifies using Google’s various server-to-server " + "authentication mechanisms to access Google APIs."), ModuleInstall("google-api-python-client", "pip", mname="googleapiclient", purpose="The Google API Client for Python is a client library for accessing the Plus, " + "Moderator, and many other Google APIs."), ModuleInstall("googlemaps", "pip", purpose="Python client library for Google Maps API Web Services"), ModuleInstall("python-gmaps", "pip", mname="gmaps", purpose="Google Maps API client http://python-gmaps.readthedocs.org"), ] mod.append(ModuleInstall("adal", "pip", purpose="The ADAL for Python library makes it easy for python application to authenticate " + "to Azure Active Directory (AAD) in order to access AAD protected web resources.")) mod.append(ModuleInstall("msrest", "pip", purpose="AutoRest swagger generator Python client runtime.")) mod.append(ModuleInstall("msrestazure", "pip", purpose="AutoRest swagger generator Python client runtime. Azure-specific module.")) for name in ['azure-nspkg', 'azure-common', 'azure-mgmt-nspkg', 'azure-mgmt-authorization', 'azure-mgmt-common', 'azure-storage', 'azure-mgmt-batch', 'azure-mgmt-cdn', 'azure-mgmt-cognitiveservices', 'azure-mgmt-commerce', 'azure-mgmt-compute', 'azure-mgmt-logic', 'azure-graphrbac', 'azure-mgmt-network', 'azure-mgmt-notificationhubs', 'azure-mgmt-powerbiembedded', 'azure-mgmt-redis', 'azure-mgmt-resource', 'azure-mgmt-scheduler', 'azure-mgmt-storage', 'azure-mgmt-web', 'azure-batch', 'azure-servicebus', 'azure-servicemanagement-legacy', 'azure-mgmt', # addition 2017-05 "azure-keyvault", "azure-datalake-store", "azure-servicefabric", "azure-mgmt-devtestlabs", "azure-mgmt-documentdb", "azure-mgmt-containerregistry", "azure-mgmt-keyvault", "azure-mgmt-dns", "azure-mgmt-datalake-analytics", "azure-mgmt-datalake-nspkg", "azure-mgmt-trafficmanager", "azure-mgmt-rdbms", "azure-mgmt-datalake-store", "azure-mgmt-iothub", "azure-mgmt-sql", "azure-mgmt-monitor", # addition 2018-02 'azure_storage_common', 'azure_cosmosdb_nspkg', 'azure_cosmosdb_table', 'azure_eventgrid', 'azure_mgmt_advisor', 'azure_mgmt_applicationinsights', 'azure_mgmt_batchai', 'azure_mgmt_billing', 'azure_mgmt_consumption', 'azure_mgmt_containerinstance', 'azure_mgmt_containerservice', 'azure_mgmt_cosmosdb', 'azure_mgmt_datafactory', 'azure_mgmt_eventgrid', 'azure_mgmt_eventhub', 'azure_mgmt_hanaonazure', 'azure_mgmt_iothubprovisioningservices', 'azure_mgmt_loganalytics', 'azure_mgmt_machinelearningcompute', 'azure_mgmt_managementpartner', 'azure_mgmt_marketplaceordering', 'azure_mgmt_media', 'azure_mgmt_msi', 'azure_mgmt_recoveryservices', 'azure_mgmt_recoveryservicesbackup', 'azure_mgmt_relay', 'azure_mgmt_reservations', 'azure_mgmt_search', 'azure_mgmt_servermanager', 'azure_mgmt_servicebus', 'azure_mgmt_servicefabric', 'azure_mgmt_subscription', 'azure_storage_blob', 'azure_storage_file', 'azure_storage_queue', 'azure-storage-nspkg', # addition 2019-01 'azure_loganalytics', 'azure_applicationinsights', 'azure_mgmt_iotcentral', 'azure_mgmt_datamigration', 'azure_mgmt_maps', 'azure_mgmt_policyinsights', 'azure_mgmt_managementgroups', 'azure_mgmt_devspaces', 'azure_mgmt_signalr', # main package 'azure']: # azure part mname = name.replace("-", ".").replace("_", ".") if mname in ("azure.nspkg", "azure.mgmt.nspkg", "azure.servicemanagement.legacy"): skip_import = True else: skip_import = False if mname == name: mname = None m = ModuleInstall( name, "pip", mname=mname, pip_options=["--pre"], purpose="Python wrapper for Azure API (HDInsight, Blog Storage)", usage="AZURE", skip_import=skip_import) mod.append(m) mod.append(ModuleInstall("azureml", "pip", purpose="Microsoft Azure Machine Learning Python client library")) return [_ for _ in mod if _ is not None]