<commit_before>import getpass
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

# Get the OpenStack drivers
openStack = get_driver(Provider.OPENSTACK)

user = '<EMAIL>'
password = getpass.getpass(prompt='Password: ', stream=None)
tenant = '43303a8189a04df387c58c7499ced0bc'

# Init the driver
driver = openStack(user,
                   password,
                   ex_tenant_name = "<EMAIL>",
                   ex_force_auth_url = 'https://keystone.cloud.switch.ch:5000/v2.0/tokens',
                   ex_force_auth_version = '2.0_password',
                   ex_force_service_region = 'ZH')

print driver.list_nodes()<commit_msg>Can read OpenStack and Amazon webservice using libcloud.<commit_after>import getpass

from settings import *

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

# Get the OpenStack drivers
openStack = get_driver(Provider.OPENSTACK)

# Init the driver
driver = openStack(user,
                   password,
                   ex_tenant_name = tenant_name,
                   ex_force_auth_url = auth_url,
                   ex_force_auth_version = '2.0_password',
                   ex_force_service_region = service_region)

print driver.list_nodes()

amazon = get_driver(Provider.EC2_EU_WEST)
driver = amazon(accesskey, secretkey)

print driver.list_nodes()
{'fraction_non_alphanumeric': 0.08043478260869565, 'fraction_numerical': 0.02318840579710145, 'mean_word_length': 3.0979228486646884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1492993', 'n_tokens_mistral': 431, 'n_tokens_neox': 403, 'n_words': 87}