$27 GRAYBYTE WORDPRESS FILE MANAGER $49

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 84.32.84.96 | ADMIN IP 216.73.216.143
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/bin/

HOME
Current File : /opt/alt/python37/bin//jp.py
#!/opt/alt/python37/bin/python3

import sys
import json
import argparse
from pprint import pformat

import jmespath
from jmespath import exceptions


def main():
    parser = argparse.ArgumentParser()
    parser.add_argument('expression')
    parser.add_argument('-f', '--filename',
                        help=('The filename containing the input data.  '
                              'If a filename is not given then data is '
                              'read from stdin.'))
    parser.add_argument('--ast', action='store_true',
                        help=('Pretty print the AST, do not search the data.'))
    args = parser.parse_args()
    expression = args.expression
    if args.ast:
        # Only print the AST
        expression = jmespath.compile(args.expression)
        sys.stdout.write(pformat(expression.parsed))
        sys.stdout.write('\n')
        return 0
    if args.filename:
        with open(args.filename, 'r') as f:
            data = json.load(f)
    else:
        data = sys.stdin.read()
        data = json.loads(data)
    try:
        sys.stdout.write(json.dumps(
            jmespath.search(expression, data), indent=4, ensure_ascii=False))
        sys.stdout.write('\n')
    except exceptions.ArityError as e:
        sys.stderr.write("invalid-arity: %s\n" % e)
        return 1
    except exceptions.JMESPathTypeError as e:
        sys.stderr.write("invalid-type: %s\n" % e)
        return 1
    except exceptions.UnknownFunctionError as e:
        sys.stderr.write("unknown-function: %s\n" % e)
        return 1
    except exceptions.ParseError as e:
        sys.stderr.write("syntax-error: %s\n" % e)
        return 1


if __name__ == '__main__':
    sys.exit(main())

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jan 2024 2.16 PM
root / root
0755
__pycache__
--
25 Jan 2024 4.40 PM
root / root
0755
alembic
0.948 KB
14 Nov 2023 11.45 AM
root / 996
0755
chardetect
0.954 KB
14 Nov 2023 12.05 PM
root / 996
0755
easy_install
0.237 KB
25 Jan 2024 4.38 PM
root / root
0755
easy_install-3.7
0.237 KB
25 Jan 2024 4.38 PM
root / root
0755
exabgp
0.236 KB
25 Jan 2024 4.38 PM
root / root
0755
exabgp-cli
0.23 KB
25 Jan 2024 4.38 PM
root / root
0755
exabgp-healthcheck
0.246 KB
25 Jan 2024 4.38 PM
root / root
0755
exabgpcli
0.23 KB
25 Jan 2024 4.38 PM
root / root
0755
futurize
0.95 KB
14 Nov 2023 12.35 PM
root / 996
0755
jp.py
1.668 KB
25 Jan 2024 4.40 PM
root / root
0755
jsonschema
0.963 KB
14 Nov 2023 1.06 PM
root / 996
0755
mako-render
0.947 KB
14 Nov 2023 1.18 PM
root / 996
0755
normalizer
0.989 KB
14 Nov 2023 12.08 PM
root / 996
0755
nosetests-3.7
0.389 KB
14 Nov 2023 3.11 PM
root / 996
0755
pasteurize
0.954 KB
14 Nov 2023 12.35 PM
root / 996
0755
pip
0.229 KB
25 Jan 2024 4.38 PM
root / root
0755
pip-3
0.229 KB
25 Jan 2024 4.38 PM
root / root
0755
pip-3.7
0.229 KB
25 Jan 2024 4.38 PM
root / root
0755
pip3
0.229 KB
25 Jan 2024 4.38 PM
root / root
0755
pip3.11
0.229 KB
25 Jan 2024 4.38 PM
root / root
0755
pip3.7
0.229 KB
25 Jan 2024 4.38 PM
root / root
0755
pydoc3
0.089 KB
17 Apr 2024 5.35 PM
root / 996
0755
pydoc3.7
0.089 KB
17 Apr 2024 5.35 PM
root / 996
0755
pyroute2-cli
0.221 KB
25 Jan 2024 4.39 PM
root / root
0755
pyroute2-dhcp-client
0.225 KB
25 Jan 2024 4.39 PM
root / root
0755
pyroute2-test-platform
0.233 KB
25 Jan 2024 4.39 PM
root / root
0755
python3
7.742 KB
17 Apr 2024 5.37 PM
root / 996
0755
python3-config
0.169 KB
17 Apr 2024 5.36 PM
root / 996
0755
python3.7
7.742 KB
17 Apr 2024 5.37 PM
root / 996
0755
python3.7-config
0.169 KB
17 Apr 2024 5.36 PM
root / 996
0755
python3.7m
7.742 KB
17 Apr 2024 5.37 PM
root / 996
0755
python3.7m-config
0.169 KB
17 Apr 2024 5.36 PM
root / 996
0755
python3.7m-x86_64-config
3.574 KB
17 Apr 2024 5.33 PM
root / 996
0755
pyvenv
0.438 KB
17 Apr 2024 5.35 PM
root / 996
0755
pyvenv-3.7
0.438 KB
17 Apr 2024 5.35 PM
root / 996
0755
raven
0.938 KB
14 Nov 2023 2.14 PM
root / 996
0755
ss2
0.229 KB
25 Jan 2024 4.39 PM
root / root
0755
tabulate
0.217 KB
25 Jan 2024 4.39 PM
root / root
0755
virtualenv
0.969 KB
26 May 2022 12.12 PM
root / root
0755
virtualenv-3
0.969 KB
26 May 2022 12.12 PM
root / root
0755
virtualenv-37
0.969 KB
26 May 2022 12.12 PM
root / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF