GRAYBYTE WORDPRESS FILE MANAGER7532

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/alt/python37/lib64/python3.7/site-packages/simplejson/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python37/lib64/python3.7/site-packages/simplejson//tool.py
r"""Command-line tool to validate and pretty-print JSON

Usage::

    $ echo '{"json":"obj"}' | python -m simplejson.tool
    {
        "json": "obj"
    }
    $ echo '{ 1.2:3.4}' | python -m simplejson.tool
    Expecting property name: line 1 column 2 (char 2)

"""
from __future__ import with_statement
import sys
import simplejson as json

def main():
    if len(sys.argv) == 1:
        infile = sys.stdin
        outfile = sys.stdout
    elif len(sys.argv) == 2:
        infile = open(sys.argv[1], 'r')
        outfile = sys.stdout
    elif len(sys.argv) == 3:
        infile = open(sys.argv[1], 'r')
        outfile = open(sys.argv[2], 'w')
    else:
        raise SystemExit(sys.argv[0] + " [infile [outfile]]")
    with infile:
        try:
            obj = json.load(infile,
                            object_pairs_hook=json.OrderedDict,
                            use_decimal=True)
        except ValueError:
            raise SystemExit(sys.exc_info()[1])
    with outfile:
        json.dump(obj, outfile, sort_keys=True, indent='    ', use_decimal=True)
        outfile.write('\n')


if __name__ == '__main__':
    main()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2024 08:32:25
root / linksafe
0755
__pycache__
--
March 03 2024 19:12:24
root / root
0755
tests
--
March 03 2024 19:12:24
root / root
0755
__init__.py
23.172 KB
November 05 2017 18:28:38
root / root
0644
_speedups.cpython-37m-x86_64-linux-gnu.so
56.875 KB
April 24 2023 20:32:36
root / root
0755
compat.py
0.909 KB
November 05 2017 18:28:38
root / root
0644
decoder.py
14.244 KB
November 05 2017 18:28:38
root / root
0644
encoder.py
26.675 KB
November 05 2017 18:28:38
root / root
0644
errors.py
1.737 KB
November 05 2017 18:28:38
root / root
0644
ordered_dict.py
2.876 KB
November 05 2017 18:28:38
root / root
0644
raw_json.py
0.212 KB
November 05 2017 18:28:38
root / root
0644
scanner.py
2.901 KB
November 05 2017 18:28:38
root / root
0644
tool.py
1.109 KB
November 05 2017 18:28:38
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF