Skip to main content

Case-insensitive case-preserving variable name mangler

Project description

Nominat is a Python library that renames identifiers (variable names, class names etc.) that it is given. Identifiers consisting of several words, separated either by underscores (pet_names) or case (errorMessage) are separated into their constituent words, which are then replaced.

To allow the anonymized names to still make some sense in relation to each other, once a replacement for a word has been chosen, it will consistently be reused. In addition, nominat is case-insensitive but also case-preserving. This looks like this:

>>> nom = nominat.nominator()
>>> nom('pet_names')
'brilliant_failure'
>>> nom('friendNames')
'programFailure'
>>> nom('ERROR_MESSAGE')
'SECTOR_PRIEST'

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

nominat-0.2.tar.gz (8.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page