Skip to content

Commit 618ac91

Browse files
committed
Prepare for 0.9.1 release
1 parent 1f12238 commit 618ac91

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

mcc/cldcnct.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040

4141
def get_conns(cred, providers):
42-
"""Collect node data asyncronously using gevent lib."""
42+
"""Collect node data asynchronously using gevent lib."""
4343
cld_svc_map = {"aws": conn_aws,
4444
"azure": conn_az,
4545
"gcp": conn_gcp}
@@ -57,7 +57,7 @@ def get_conns(cred, providers):
5757
conn_objs.update(item)
5858
busy_disp_off(dobj=busy_obj)
5959
sys.stdout.write("\r \r")
60-
sys.stdout.write("\033[?25h") # cusor back on
60+
sys.stdout.write("\033[?25h") # cursor back on
6161
sys.stdout.flush()
6262
return conn_objs
6363

@@ -78,7 +78,7 @@ def get_data(conn_objs, providers):
7878
ngroup.join()
7979
busy_disp_off(dobj=busy_obj)
8080
sys.stdout.write("\r \r")
81-
sys.stdout.write("\033[?25h") # cusor back on
81+
sys.stdout.write("\033[?25h") # cursor back on
8282
sys.stdout.flush()
8383
return node_list
8484

@@ -155,7 +155,7 @@ def nodes_aws(c_obj):
155155

156156

157157
def adj_nodes_aws(aws_nodes):
158-
"""Retreive details specific to AWS."""
158+
"""Retrieve details specific to AWS."""
159159
for node in aws_nodes:
160160
node.cloud = "aws"
161161
node.cloud_disp = "AWS"
@@ -194,7 +194,7 @@ def nodes_az(c_obj):
194194

195195

196196
def adj_nodes_az(az_nodes):
197-
"""Retreive details specific to Azure."""
197+
"""Retrieve details specific to Azure."""
198198
for node in az_nodes:
199199
node.cloud = "azure"
200200
node.cloud_disp = "Azure"
@@ -248,7 +248,7 @@ def nodes_gcp(c_obj):
248248

249249

250250
def adj_nodes_gcp(gcp_nodes):
251-
"""Retreive details specific to GCP."""
251+
"""Retrieve details specific to GCP."""
252252
for node in gcp_nodes:
253253
node.cloud = "gcp"
254254
node.cloud_disp = "GCP"

mcc/colors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@
4646
C_GOOD = GREEN
4747
C_WARN = YELLOW
4848
C_ERR = RED
49-
"""Functionally titled vars as a psuedo color theme.
49+
"""Functionally titled vars as a pseudo color theme.
5050
51-
It's intended that modules will import and use these functionaly-named
51+
It's intended that modules will import and use these functionally-named
5252
vars instead of the color named vars.
5353
5454
This simplifies changing colors in the module using them. To change
5555
a color, the corresponding functional var only needs to be changed to a
5656
different color here. If direct color names are used, changes
57-
require replacing all occurences of the color var being changed.
57+
require replacing all occurrences of the color var being changed.
5858
"""
5959

6060

mcc/core.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
import os
3333
import sys
3434

35-
__version__ = "0.1.1"
35+
__version__ = "0.9.1"
3636

3737

3838
def main():
39-
"""Retreive and display instance data then process commands."""
39+
"""Retrieve and display instance data then process commands."""
4040
(cred, providers) = config_read()
4141
cmd_mode = True
4242
conn_objs = cld.get_conns(cred, providers)
@@ -49,7 +49,7 @@ def main():
4949

5050

5151
def list_only():
52-
"""Retreive and display instance data then exit."""
52+
"""Retrieve and display instance data then exit."""
5353
(cred, providers) = config_read()
5454
conn_objs = cld.get_conns(cred, providers)
5555
nodes = cld.get_data(conn_objs, providers)
@@ -94,10 +94,10 @@ def config_read():
9494
providers = config_prov(config)
9595
# Read credentials for listed providers
9696
(cred, to_remove) = config_cred(config, providers)
97-
# remove unsupported and credentialess providers
97+
# remove unsupported and credential-less providers
9898
for item in to_remove:
9999
providers.remove(item)
100-
return (cred, providers)
100+
return cred, providers
101101

102102

103103
def config_prov(config):
@@ -129,7 +129,7 @@ def config_cred(config, providers):
129129
print("Unsupported provider: '{}' listed in config - ignoring"
130130
.format(item))
131131
to_remove.append(item)
132-
return (cred, to_remove)
132+
return cred, to_remove
133133

134134

135135
def config_make(config_file):

mcc/uimode.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def node_validate(node_dict, node_num, cmd_name):
140140
False: req_lu[cmd_name][1]}
141141
node_valid = bool(req_lu[cmd_name][0] == node_dict[node_num].state)
142142
node_info = tm[node_valid]
143-
return (node_valid, node_info)
143+
return node_valid, node_info
144144

145145

146146
def cmd_startstop(node, cmd_name, node_info):
@@ -234,7 +234,7 @@ def ssh_get_info(node):
234234
keyname = items['key' == 'ssh-keys'].get('value', "")
235235
pos = keyname.find(":")
236236
ssh_user = keyname[0:pos]
237-
return (ssh_user, ssh_key)
237+
return ssh_user, ssh_key
238238

239239

240240
def ssh_calc_aws(node):
@@ -252,7 +252,7 @@ def ssh_calc_aws(node):
252252

253253

254254
def ui_print(to_print):
255-
"""Print text without charrage return."""
255+
"""Print text without carriage return."""
256256
sys.stdout.write(to_print)
257257
sys.stdout.flush()
258258

@@ -271,7 +271,7 @@ def ui_cmd_title(cmd_title):
271271
def ui_cmd_bar():
272272
"""Display Command Bar."""
273273
cmd_bar = ("\rSELECT COMMAND - {2}(R){1}un {0}(C){1}onnect "
274-
"{3}(S){1}top {0}(U){1}pdate Info"
274+
"{3}(S){1}top {0}(U){1}pdate"
275275
" {0}(Q){1}uit: ".
276276
format(C_TI, C_NORM, C_GOOD, C_ERR))
277277
# FUTURE - TO BE USED WHEN DETAILS IMPLEMENTED
@@ -315,7 +315,7 @@ def input_flush():
315315

316316

317317
def input_by_key():
318-
"""Get user input using inkey to prevent /n printing at end."""
318+
"""Get user input using term.inkey to prevent /n printing at end."""
319319
usr_inp = ''
320320
input_valid = True
321321
input_flush()

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
package_data={'mcc': ['config.ini']},
6565
entry_points={'console_scripts': ['mcc=mcc.core:main',
6666
'mccl=mcc.core:list_only']},
67-
version='0.1.1',
67+
version='0.9.1',
6868
author="Robert Peteuil",
6969
author_email="robert.s.peteuil@gmail.com",
7070
url='https://github.com/robertpeteuil/multi-cloud-control',
7171
download_url='https://pypi.python.org/pypi/mcc',
7272
license='GNU General Public License v3 (GPLv3)',
73-
description='Unified VM-Instance Management Utility across AWS, Azure and GCP Platforms',
73+
description='Unified Instance Management Utility across AWS, Azure and GCP Platforms',
7474
keywords='aws-ec2 gcp-compute azure-vm utility control ssh start stop connect',
7575
install_requires=INSTALL_REQUIRES,
7676
extras_require=EXTRAS_REQUIRE,

0 commit comments

Comments
 (0)