Metadata-Version: 2.4
Name: pydentifier
Version: 0.1.3
Summary: Generate Python identifiers from English text
Home-page: https://github.com/nathforge/pydentifier
Author: Nathan Reynolds
Author-email: email@nreynolds.co.uk
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: summary

Pydentifier
===========

Generates Python identifiers from English text. Useful for code generation.


Class name:

.. code-block:: python

   >>> pydentifier.upper_camel("I'm a class", prefix='')
   'IAmAClass'


Function name:

.. code-block:: python

   >>> pydentifier.lower_underscore('This is a function', prefix='')
   'this_is_a_function'


Reserved keyword:

.. code-block:: python

   >>> pydentifier.lower_underscore('class', prefix='')
   'class_'


Internal method:

.. code-block:: python

   >>> pydentifier.lower_underscore("Shouldn't touch this", prefix='_')
   '_should_not_touch_this'


Private method:

.. code-block:: python

   >>> pydentifier.lower_underscore("Can't touch this", prefix='__')
   '__cannot_touch_this'
