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
File details
Details for the file nominat-0.2.tar.gz.
File metadata
- Download URL: nominat-0.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1307ba5fead246b2929249757a8e7fc662ee11e5cba374ffb9e44e1a0002e098
|
|
| MD5 |
6c25cf1ede3acd2c12db43192622a72b
|
|
| BLAKE2b-256 |
bebb10ffd7776257c7625789ce8a11a38481990b5ade6f2b1c35d6c9938b9b36
|