Skip to main content

Generate Python identifiers from English text

Project description

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

Class name:

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

Function name:

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

Reserved keyword:

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

Internal method:

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

Private method:

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

Project details

Release history Release notifications

Download files

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

Files for pydentifier, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pydentifier-0.1.3.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page