Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 721 Bytes

File metadata and controls

16 lines (8 loc) · 721 Bytes

New Script

Starter for new Python Scripts

Background

For many of my python scripts, I utilize the ArgParse and Logging libraries and I was tired of rewriting the same starter code for my scripts, so I made this template.

ArgParse was preferred as most deployment environments, we can control added arguments in a programmatic way as well as quick CLI testing

add config file feature

Logging levels is ideal when using a logging aggregation platform; such as the ELK Stack, Splunk, or AWS CloudWatch.

Timestamp follows ISO 8601 format. Time is UTC (see script.py#L11)