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