Package pyhai :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code


Copyright: 2011 Mark LaPerriere

License: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author: Mark LaPerriere

Contact: pyhai@mindmind.com

Organization: Mind Squared Design / www.mindmind.com

Version: 0.1.3

Date: Jan 19, 2012

Functions [hide private]
str
_camel_case_to_underscore(name)
Take a camel cased name and returns a lower cased, underscore seperated name
source code
str
_underscore_to_camel_case(name)
Take a underscore seperated name and return a camel case name
source code
Variables [hide private]
  __package__ = 'pyhai'
Function Details [hide private]

_camel_case_to_underscore(name)

source code 

Take a camel cased name and returns a lower cased, underscore seperated name

Parameters:
  • name (str) - A name in CamelCase
Returns: str
An underscore seperated name

_underscore_to_camel_case(name)

source code 

Take a underscore seperated name and return a camel case name

Parameters:
  • name (str) - An underscore seperated name
Returns: str
A name in CamelCase