Skip to content

Instantly share code, notes, and snippets.

@elephantatech
Last active September 30, 2023 01:53
Show Gist options
  • Save elephantatech/26377df1f56cdefd4d7bd31b3ea81b5c to your computer and use it in GitHub Desktop.
Save elephantatech/26377df1f56cdefd4d7bd31b3ea81b5c to your computer and use it in GitHub Desktop.
python basic script template to run with python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
def main():
"""main function"""
env_vars = os.environ
for var, value in env_vars.items():
print(f"{var}: {value}")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment