MCPcopy
hub / github.com/DedSecInside/TorBot / print_header

Function print_header

torbot/main.py:29–54  ·  view source on GitHub ↗

Prints the TorBot banner including version and license.

(version: str)

Source from the content-addressed store, hash-verified

27
28
29def print_header(version: str) -> None:
30 """
31 Prints the TorBot banner including version and license.
32 """
33 license_msg = color("LICENSE: GNU Public License v3", "red")
34 banner = r"""
35 __ ____ ____ __ ______
36 / /_/ __ \/ __ \/ /_ ____/_ __/
37 / __/ / / / /_/ / __ \/ __ \/ /
38 / /_/ /_/ / _, _/ /_/ / /_/ / /
39 \__/\____/_/ |_/_____/\____/_/ v{VERSION}
40 """.format(VERSION=version)
41 banner = color(banner, "red")
42
43 title = r"""
44 {banner}
45 #######################################################
46 # TorBot - Dark Web OSINT Tool #
47 # GitHub : https://github.com/DedsecInside/TorBot #
48 # Help : use -h for help text #
49 #######################################################
50 {license_msg}
51 """
52
53 title = title.format(license_msg=license_msg, banner=banner)
54 print(title)
55
56
57def run(arg_parser: argparse.ArgumentParser, version: str) -> None:

Callers 1

runFunction · 0.85

Calls 1

colorClass · 0.90

Tested by

no test coverage detected