Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Freely use your coding style

Project Description

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'

Release History

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 Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting