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
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)