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