Skip to content

Instantly share code, notes, and snippets.

@wolftales
Forked from pazdera/gist:1040939
Last active February 3, 2023 02:24
Show Gist options
  • Save wolftales/81a38c23cf8ca86fa6f01e20548b08ba to your computer and use it in GitHub Desktop.
Save wolftales/81a38c23cf8ca86fa6f01e20548b08ba to your computer and use it in GitHub Desktop.
Python main template
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Short description of this Python module.
Longer description of this module.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
"""
__author__ = "One solo developer"
__authors__ = ["One developer", "And another one", "etc"]
__contact__ = "mail@example.com"
__copyright__ = "Copyright $YEAR, $COMPANY_NAME"
__credits__ = ["One developer", "And another one", "etc"]
__date__ = "YYYY/MM/DD"
__deprecated__ = False
__email__ = "mail@example.com"
__license__ = "GPLv3"
__maintainer__ = "developer"
__status__ = "Production"
__version__ = "0.0.1"
# Built-in/Generic Imports
import sys
# Libs
import pandas as pd # Or any other
# Own modules
from {path} import {class}
def main():
""" Main program """
# Code goes over here.
return 0
if __name__ == "__main__":
sys.exit(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment