Converts a string to Camel Case
Project description
Converts a string to Camel Case with the ability to include words to skip over.
Basic Usage
===========
.. code:: python
from camelcase import CamelCase
c = CamelCase()
s = 'this is a sentence that needs CamelCasing!'
print c.hump(s)
# This is a Sentence That Needs CamelCasing!
If you have particular words that you want to skip then you can do the following...
.. code:: python
from camelcase import CamelCase
c = CamelCase('little', 'another')
s = 'this is a another sentence, but this one is a little different'
print c.hump(s)
# This is a another Sentence, But This One is a little Different
Basic Usage
===========
.. code:: python
from camelcase import CamelCase
c = CamelCase()
s = 'this is a sentence that needs CamelCasing!'
print c.hump(s)
# This is a Sentence That Needs CamelCasing!
If you have particular words that you want to skip then you can do the following...
.. code:: python
from camelcase import CamelCase
c = CamelCase('little', 'another')
s = 'this is a another sentence, but this one is a little different'
print c.hump(s)
# This is a another Sentence, But This One is a little Different
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
camelcase-0.2.tar.gz
(1.3 kB
view hashes)