Python etensions and utilities.
petri.ext.
pkg_2_envvar
Transform package name into config selector string.
Example
>>> pkg_2_envvar('a-pkg') 'A_PKG_CONFIG'
“In the face of ambiguity, refuse the temptation to guess.”
str
to_upper_underscore
Transform package name into uppercase with underscores.
>>> pkg_2_uu('a-pkg') 'A_PKG'