Skip to content

Instantly share code, notes, and snippets.

@h3nryza
Created July 17, 2018 16:40
Show Gist options
  • Save h3nryza/9a2f5be619aee5acd38962ce90ff8fc4 to your computer and use it in GitHub Desktop.
Save h3nryza/9a2f5be619aee5acd38962ce90ff8fc4 to your computer and use it in GitHub Desktop.
Simple python template for myself
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
try:
import platform_specific_module
except ImportError:
platform_specific_module = None
class NameOfClass(object):
__doc__ = """ Class information """
STATICVAR = None
def __init(self):
glabalVar = None
def main(self, var1=None,var2=None):
if var1 != None:
"Do If statement"
else:
"Do Else Statement"
return self.submethod("test")
def submethod(test):
return(test)
if __name__ == "__main__":
"Do something when not imported as module"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment