Last active
February 14, 2024 15:36
-
-
Save arunma/4595f969907263b4605fe2893276e4ef to your computer and use it in GitHub Desktop.
Python filename underscore camelcase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set( $CamelCaseName = "" ) | |
#foreach( $str in $NAME.split("_") ) | |
#set( $str = $str.substring(0,1).toUpperCase() + $str.substring(1) ) | |
#set( $CamelCaseName = $CamelCaseName + $str ) | |
#end | |
class $CamelCaseName: | |
pass | |
if __name__ == "__main__": | |
init = $CamelCaseName | |
print(init.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment