__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
from __future__ import annotations
import argparse
import json
from collections.abc import Sequence
from identify import identify
def main(argv: Sequence[str] | None = None) -> int:
parser = argparse.ArgumentParser()
parser.add_argument('--filename-only', action='store_true')
parser.add_argument('path')
args = parser.parse_args(argv)
if args.filename_only:
func = identify.tags_from_filename
else:
func = identify.tags_from_path
try:
tags = sorted(func(args.path))
except ValueError as e:
print(e)
return 1
if not tags:
return 1
else:
print(json.dumps(tags))
return 0
if __name__ == '__main__':
raise SystemExit(main())
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| vendor | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| cli.py | File | 739 B | 0644 |
|
| extensions.py | File | 13.56 KB | 0644 |
|
| identify.py | File | 7.73 KB | 0644 |
|
| interpreters.py | File | 688 B | 0644 |
|
| py.typed | File | 0 B | 0644 |
|