Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Make camelcase lowercase and use underscores.

    >>> uncamel('CamelCase')
    'camel_case'
    >>> uncamel('CamelCamelCase')
    'camel_camel_case'
    >>> uncamel('Camel2Camel2Case')
    'camel2_camel2_case'
    >>> uncamel('getHTTPResponseCode')
    'get_http_response_code'(more...)

        def uncamel(s):
    """
    Make camelcase lowercase and use underscores.

        >>> uncamel('CamelCase')
        'camel_case'
        >>> uncamel('CamelCamelCase')
        'camel_camel_case'
        >>> uncamel('Camel2Camel2Case')
        'camel2_camel2_case'
        >>> uncamel('getHTTPResponseCode')
        'get_http_response_code'
        >>> uncamel('get2HTTPResponseCode')
        'get2_http_response_code'
        >>> uncamel('HTTPResponseCode')
        'http_response_code'
        >>> uncamel('HTTPResponseCodeXYZ')
        'http_response_code_xyz'
    """
    for pat in uncamel_patterns:
        s = pat.sub(r'\1_\2', s)
    return s.lower()
        


src/d/j/django-profilebase-0.2.4/profilebase/models.py   django-profilebase(Download)
import datetime
import hashlib
import random
import uuid
from .utils import uncamel
                attrs[k] = cls.base_fields[k]
        model = ModelBase.__new__(cls, name, bases, attrs)
        model.__namelow__ = uncamel(model.__name__)
        if model not in _profiles:
            _profiles.append(model)

src/d/j/django-profilebase-HEAD/profilebase/models.py   django-profilebase(Download)
import datetime
import hashlib
import random
import uuid
from .utils import uncamel
                attrs[k] = cls.base_fields[k]
        model = ModelBase.__new__(cls, name, bases, attrs)
        model.__namelow__ = uncamel(model.__name__)
        if model not in _profiles:
            _profiles.append(model)