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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pydentifier-0.1.3.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

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