]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/env python3 | |
2 | ||
3 | """Test module for quick hacking.""" | |
4 | ||
5 | from __future__ import absolute_import | |
6 | ||
7 | # pylint: disable=unused-import | |
8 | import abc, argparse, atexit | |
9 | import base64, binascii | |
10 | import codecs, collections, configparser, contextlib | |
11 | import datetime | |
12 | import errno | |
13 | import fcntl, fileinput, fnmatch | |
14 | import glob | |
15 | import hashlib | |
16 | import inspect, io, itertools | |
17 | import json | |
18 | import logging | |
19 | import multiprocessing | |
20 | import os | |
21 | import pathlib, pprint | |
22 | from pathlib import Path | |
23 | import re, resource | |
24 | import shlex, shutil, signal, socket, struct, subprocess, sys | |
25 | import tarfile, tempfile, time, traceback, typing | |
26 | from typing import * | |
27 | import unittest | |
28 | from unittest import mock | |
29 | ||
30 | try: | |
31 | import requests | |
32 | except ImportError: | |
33 | pass | |
34 | import six | |
35 | ||
36 | ||
37 | def get_parser(): | |
38 | """Get CLI parser.""" | |
39 | parser = argparse.ArgumentParser(description=__doc__) | |
40 | return parser | |
41 | ||
42 | ||
43 | def main(argv): | |
44 | """The main entry point for scripts.""" | |
45 | parser = get_parser() | |
46 | opts = parser.parse_args(argv) | |
47 | ||
48 | print(argv) | |
49 | ||
50 | ||
51 | if __name__ == '__main__': | |
52 | sys.exit(main(sys.argv[1:])) |