Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Freely use your coding style

Project description



Freely use your coding style

NoCase automatically converts method calls from snake_case to camelCase and vice versa.


Using pip

pip install nocase

Manual installation

Download from

python install



from nocase import NoCase

class MyClass(NoCase):

    def myMethod(self):
        return 'my method'

    def my_other_method(self):
        return 'my other method'

my_class = MyClass()
print(my_class.my_method())  # prints 'my method'
print(my_class.myOtherMethod())  # prints 'my other method'


from nocase import registerNoCase

def myMethod():
    return 'my method'

def my_other_method():
    return 'my other method'

registerNoCase()  # find available methods in __main__ and registers converted names
print(my_method())  # prints 'my method'
print(myOtherMethod())  # prints 'my other method'


def myMethod():
    return 'my method'

def my_other_method():
    return 'my other method'
from nocase import register_no_case
import my_module

register_no_case(my_module)  # find available methods in my_module and registers converted names
print(my_module.my_method())  # prints 'my method'
print(my_module.myOtherMethod())  # prints 'my other method'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (3.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page