Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Freely use your coding style

Project description

version license status

NoCase

Freely use your coding style

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

Installation

Using pip

pip install nocase

Manual installation

Download from https://github.com/Code-ReaQtor/NoCase/releases

python setup.py install

Example

Classes

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'

__main__

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'

Modules

# my_module.py
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


Release history Release notifications

This version
History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

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
nocase-1.1.2.zip (3.9 kB) Copy SHA256 hash SHA256 Source None Sep 19, 2015

Supported by

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