json-grep


Namejson-grep JSON
Version 1.4.7 PyPI version JSON
download
home_pagehttps://gitlab.com/alda78/json-grep
SummaryFiltering JSON dict keys from STDOUT
upload_time2024-09-12 09:13:35
maintainerNone
docs_urlNone
authorAles Adamek
requires_python>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # json-grep

## Description
Simple tool for filtering JSON dict keys from STDOUT

## Usage
```
json-grep --help
usage: json-grep [-h] [-e EXCLUDE_KEYS] [-m] [-v] [-l HIGHLIGHT] [-i IHIGHLIGHT] [-s] [-f INPUT_FILE] filter_keys [filter_keys ...]

JSON GREP v1.4.6 is utility for filtering selected keys from json string piped from STDOUT

positional arguments:
  filter_keys           List of keys which you want to filter from json dict. If key is in deeper level of tree structure use '.' separator to specify how deep is key in dict tree structure. You can also use '*' at the end of key name to filter keys as 'beginning with'. You can also specify value of item which you want to pass only by operator '=' or
                        '~'. '~' means that value is somewhere in string.

options:
  -h, --help            show this help message and exit
  -e EXCLUDE_KEYS, --exclude EXCLUDE_KEYS
                        Exclude lines contains key or key=value combination
  -m, --multiline-output
                        Use multiline output for filtered result
  -v, --values_only     Show only values without keys description
  -l HIGHLIGHT, --hl HIGHLIGHT
                        Highlight case sensitively words in filtered results
  -i IHIGHLIGHT, --ihl IHIGHLIGHT
                        Highlight case insensitively words in filtered results
  -s, --show-errors     Show errors caused by json decode
  -p, --pass-non-json   Pass non json lines into stdout
  -f INPUT_FILE, --file INPUT_FILE
                        Input file instead of PIPE
```

## Installation
```bash
wget https://gitlab.com/alda78/json-grep/-/archive/master/json-grep-master.tar && \
tar -xf json-grep-master.tar && \
cd json-grep-master/ && \
sudo python3 setup.py install && \
cd ../ &&  \
sudo rm -rf json-grep-master
```

or simply
```bash
pip3 install json-grep
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/alda78/json-grep",
    "name": "json-grep",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ales Adamek",
    "author_email": "alda78@seznam.cz",
    "download_url": "https://files.pythonhosted.org/packages/f5/0a/74992027d686d8d876171d511f28af4d435a1b64cc785aaa574d79985a63/json_grep-1.4.7.tar.gz",
    "platform": null,
    "description": "# json-grep\n\n## Description\nSimple tool for filtering JSON dict keys from STDOUT\n\n## Usage\n```\njson-grep --help\nusage: json-grep [-h] [-e EXCLUDE_KEYS] [-m] [-v] [-l HIGHLIGHT] [-i IHIGHLIGHT] [-s] [-f INPUT_FILE] filter_keys [filter_keys ...]\n\nJSON GREP v1.4.6 is utility for filtering selected keys from json string piped from STDOUT\n\npositional arguments:\n  filter_keys           List of keys which you want to filter from json dict. If key is in deeper level of tree structure use '.' separator to specify how deep is key in dict tree structure. You can also use '*' at the end of key name to filter keys as 'beginning with'. You can also specify value of item which you want to pass only by operator '=' or\n                        '~'. '~' means that value is somewhere in string.\n\noptions:\n  -h, --help            show this help message and exit\n  -e EXCLUDE_KEYS, --exclude EXCLUDE_KEYS\n                        Exclude lines contains key or key=value combination\n  -m, --multiline-output\n                        Use multiline output for filtered result\n  -v, --values_only     Show only values without keys description\n  -l HIGHLIGHT, --hl HIGHLIGHT\n                        Highlight case sensitively words in filtered results\n  -i IHIGHLIGHT, --ihl IHIGHLIGHT\n                        Highlight case insensitively words in filtered results\n  -s, --show-errors     Show errors caused by json decode\n  -p, --pass-non-json   Pass non json lines into stdout\n  -f INPUT_FILE, --file INPUT_FILE\n                        Input file instead of PIPE\n```\n\n## Installation\n```bash\nwget https://gitlab.com/alda78/json-grep/-/archive/master/json-grep-master.tar && \\\ntar -xf json-grep-master.tar && \\\ncd json-grep-master/ && \\\nsudo python3 setup.py install && \\\ncd ../ &&  \\\nsudo rm -rf json-grep-master\n```\n\nor simply\n```bash\npip3 install json-grep\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Filtering JSON dict keys from STDOUT",
    "version": "1.4.7",
    "project_urls": {
        "Homepage": "https://gitlab.com/alda78/json-grep"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52378a1e640d800498d2769ead53bdc56213954a9ca3e5cc55d8963e46bb3d65",
                "md5": "e77601dcdfdb8925375a5fefefc120c2",
                "sha256": "ff5a2fef1e7487c38ded5cfa7ec70a2b59ad862fdf061dc6f98b0fe5f680bee2"
            },
            "downloads": -1,
            "filename": "json_grep-1.4.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e77601dcdfdb8925375a5fefefc120c2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7511,
            "upload_time": "2024-09-12T09:13:33",
            "upload_time_iso_8601": "2024-09-12T09:13:33.866721Z",
            "url": "https://files.pythonhosted.org/packages/52/37/8a1e640d800498d2769ead53bdc56213954a9ca3e5cc55d8963e46bb3d65/json_grep-1.4.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f50a74992027d686d8d876171d511f28af4d435a1b64cc785aaa574d79985a63",
                "md5": "ed3291dccf6b3d8c2e0a039fb3512fc1",
                "sha256": "2008575fb9a5bbc5a9b657002c410cf678ca7ffee3ade3f54ad29d21e802bb8c"
            },
            "downloads": -1,
            "filename": "json_grep-1.4.7.tar.gz",
            "has_sig": false,
            "md5_digest": "ed3291dccf6b3d8c2e0a039fb3512fc1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5747,
            "upload_time": "2024-09-12T09:13:35",
            "upload_time_iso_8601": "2024-09-12T09:13:35.429473Z",
            "url": "https://files.pythonhosted.org/packages/f5/0a/74992027d686d8d876171d511f28af4d435a1b64cc785aaa574d79985a63/json_grep-1.4.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-12 09:13:35",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "alda78",
    "gitlab_project": "json-grep",
    "lcname": "json-grep"
}
        
Elapsed time: 0.35860s