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