Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change names in kamaki code to comply with pep8 naming conventions #9

Closed
saxtouri opened this issue Apr 3, 2014 · 0 comments
Closed

Comments

@saxtouri
Copy link
Contributor

saxtouri commented Apr 3, 2014

Scan all kamaki code checking for pep8 naming conventions violations and modify accordingly.

In specific:

  • remove underscores from package names in kamaki.cli
  • shorten long package names in kamaki.cli
  • rename underscored classes into CamelCase in kamaki.cli.commands modules
  • add or remove leading underscores to internally or externally used classes in kamaki.cli.commands modules
  • rename classes to achieve uniformity in names where necessary, with respect to backwards compatibility
  • localize the use of global, underscore-prefixed variables in kamaki.cli modules. This required modification of some CLI methods which rely on the use of global variables. Remove variables that are rendered unnecessary after the changes.
  • rename CamelCase methods to underscored_methods in kamaki.cli.commands
  • rename leading underscore from methods used outside of the scope of the module of declaration in kamaki.cli modules
  • Push up in hierarchy commonly used member variables in kamaki.cli.command_tree and kamaki.cli.cyclades

Note: The package names kamaki.cli.commands and kamaki.cli.command_tree may be changed to kamaki.cli.cmds and kamaki.cli.cmd_tree respectively. Use this to make sense of the list above when some (but not all) renaming has been applied.

saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 3, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 3, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 4, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 9, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 9, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 9, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 24, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 24, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 24, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 24, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 24, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 24, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 29, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 29, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 29, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue Apr 29, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 7, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 7, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 7, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 7, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 12, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Refs: grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Refs: grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Refs: grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Resolves: grnet#9

This variable was used only once per case
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Refs grnet#9

Renamed:
kamaki.cli.cmds._optional_json: _print --> print_
kamaki.cli.cmds.cyclades.Wait: _wait --> wait
kamaki.cli.cmds.cyclades.ServerWait: _wait --> wait
kamaki.cli.cmds.image: _load_image_meta --> load_image_meta
kamak.cli.cmds.network: _wait --> wait
kamaki.cli.cmds.pithos.PithosAccount:
    _is_dir --> obj_is_dir
    _resolve_pithos_url --> resolve_pithos_url

Removed:
kamaki.cli.cmds.pithos.PithosAccount:
    _validate_image_meta, _validate_image_location
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Refs grnet#9

Renamed to comply with pep8:
kamaki.cli.config.Config: _cloud_name --> cloud_name
kamaki.cli.shell: _init_shell --> init_shell

Merged with caller methods because they where used only once:
kamaki.cli: _construct_command_syntax, _num_of_matching_terms
kamaki.cli.utils: _parse_with_regex
kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree

Remove now unused method _num_of_matching_terms
saxtouri added a commit to saxtouri/kamaki that referenced this issue May 21, 2014
Refs grnet#9

This change affects both the kamaki.cli and kamaki.clients hierarchies
It is of semantic significance only
Backwards compatibility is preserved in kamaki.clients, so that
old code using base_url instead of endpoint_url will still work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant