<filename>examples/sharepoint/print_server_settings.py
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.server_settings import ServerSettings
from tests import test_site_url, settings

ctx = ClientContext(test_site_url)
ctx.with_user_credentials(settings.get('user_credentials', 'username'),
                          settings.get('user_credentials', 'password'))

is_online = ServerSettings.is_sharepoint_online(ctx)
blocked_file_extensions = ServerSettings.get_blocked_file_extensions(ctx)
installed_languages = ServerSettings.get_global_installed_languages(ctx, 15)
ctx.execute_batch()
print("Is SharePoint Online? : {0}".format(is_online.value))
print("Installed languages amount : {0}".format(len(installed_languages.items)))

<filename>examples/sharepoint/print_server_settings.py
from office365.sharepoint.client_context import ClientContext
from office365.sharepoint.server_settings import ServerSettings
from tests import test_site_url, settings

ctx = ClientContext(test_site_url)
ctx.with_user_credentials(settings.get('user_credentials', 'username'),
                          settings.get('user_credentials', 'password'))

is_online = ServerSettings.is_sharepoint_online(ctx)
blocked_file_extensions = ServerSettings.get_blocked_file_extensions(ctx)
installed_languages = ServerSettings.get_global_installed_languages(ctx, 15)
ctx.execute_batch()
print("Is SharePoint Online? : {0}".format(is_online.value))
print("Installed languages amount : {0}".format(len(installed_languages.items)))
