Skip to content

Instantly share code, notes, and snippets.

@arunma
Last active February 14, 2024 15:36
Show Gist options
  • Save arunma/4595f969907263b4605fe2893276e4ef to your computer and use it in GitHub Desktop.
Save arunma/4595f969907263b4605fe2893276e4ef to your computer and use it in GitHub Desktop.
Python filename underscore camelcase
#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