Part of libcloud View Source
Function | read_in_chunks | Return a generator which yields data in chunks. |
Function | guess_file_mime_type | Undocumented |
Function | deprecated_warning | Undocumented |
Function | in_development_warning | Undocumented |
Function | str2dicts | Create a list of dictionaries from a whitespace and newline delimited text. |
Function | str2list | Create a list of values from a whitespace and newline delimited text (keys are ignored). |
Function | dict2str | Create a string with a whitespace and newline delimited text from a dictionary. |
Function | fixxpath | Undocumented |
Function | findtext | Undocumented |
Function | findattr | Undocumented |
Function | findall | Undocumented |
Function | reverse_dict | Undocumented |
Function | get_driver | Get a driver. |
Parameters | response | An object which implements an iterator interface or a File like object with read method. |
chunk_size | Optional chunk size (defaults to CHUNK_SIZE) (type: int ) |
For example, this: cpu 1100 ram 640
cpu 2200 ram 1024
becomes: [{'cpu': '1100', 'ram': '640'}, {'cpu': '2200', 'ram': '1024'}]
For example, this: ip 1.2.3.4 ip 1.2.3.5 ip 1.2.3.6
becomes: ['1.2.3.4', '1.2.3.5', '1.2.3.6']
For example, this: {'cpu': '1100', 'ram': '640', 'smp': 'auto'}
becomes: cpu 1100 ram 640 smp auto
cpu 2200 ram 1024
Parameters | drivers | Dictionary containing valid providers. |
provider | Id of provider to get driver (type: libcloud.types.Provider ) |