Name | dotcat JSON |
Version |
0.8.26
JSON |
| download |
home_page | None |
Summary | Cat structured data , in style |
upload_time | 2024-12-26 21:43:05 |
maintainer | None |
docs_url | None |
author | Arthur Debert |
requires_python | >=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# dotcat: Cat Structured Data, in Style
Dealing with structured data in shell scripts is all but impossible.
`dotcat` gives you the ability to fetch structured data as easily as using cat it.
```bash
# Access data by attribute path
dotcat data.json person.name.first
# John
dotcat data.json person.name.last
# Doe
# Controle your output format
dotcat data.json person.name --output=yaml
# name:
# first: John
# last: Doe
dotcat data.json person.name --output=json
# {"first": "John", "last": "Doe"}
# List access
dotcat data.json person.friends@0
# {"name":{"first": "Alice", "last": "Smith"}, "age": 25} -> item access
dotcat data.json person.friends@2:4
# [{"name":{"first": "Alice", "last": "Smith"}, "age": 25}, {"name":{"first": "Bob", "last": "Johnson"}, "age": 30}] -> slice access
dotcat data.json person.friends@4:-1
# ... from 5th to last item
```
## The good times are here
Easily read values from **JSON, YAML, TOML, and INI** files without complex scripting or manual parsing.
Access deeply **nested values** using intuitive dot-separated paths (e.g., **`person.first.name`**) while controlling the **output format** with `--output` flag.
Dotcat is a good **unix citizen** with well structured **exit codes** so it can take part of your command pipeline like cat or grep would.
## Installation
If you have a global pip install, this will install dotcat globally:
```bash
pip install dotcat
```
Raw data
{
"_id": null,
"home_page": null,
"name": "dotcat",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Arthur Debert",
"author_email": "arthur@debert.xzy",
"download_url": "https://files.pythonhosted.org/packages/ed/68/76c5ae3ee1e5062c52c543058abced285e6bd51daf75f7e10ed5cdc4d10e/dotcat-0.8.26.tar.gz",
"platform": null,
"description": "# dotcat: Cat Structured Data, in Style\n\nDealing with structured data in shell scripts is all but impossible.\n`dotcat` gives you the ability to fetch structured data as easily as using cat it.\n\n```bash\n# Access data by attribute path\ndotcat data.json person.name.first\n# John\ndotcat data.json person.name.last\n# Doe\n\n# Controle your output format\ndotcat data.json person.name --output=yaml\n# name:\n# first: John\n# last: Doe\ndotcat data.json person.name --output=json\n# {\"first\": \"John\", \"last\": \"Doe\"}\n\n# List access\ndotcat data.json person.friends@0\n# {\"name\":{\"first\": \"Alice\", \"last\": \"Smith\"}, \"age\": 25} -> item access\ndotcat data.json person.friends@2:4\n# [{\"name\":{\"first\": \"Alice\", \"last\": \"Smith\"}, \"age\": 25}, {\"name\":{\"first\": \"Bob\", \"last\": \"Johnson\"}, \"age\": 30}] -> slice access\ndotcat data.json person.friends@4:-1\n# ... from 5th to last item\n```\n\n## The good times are here\n\nEasily read values from **JSON, YAML, TOML, and INI** files without complex scripting or manual parsing.\n\nAccess deeply **nested values** using intuitive dot-separated paths (e.g., **`person.first.name`**) while controlling the **output format** with `--output` flag.\n\nDotcat is a good **unix citizen** with well structured **exit codes** so it can take part of your command pipeline like cat or grep would.\n\n## Installation\n\nIf you have a global pip install, this will install dotcat globally:\n\n```bash\npip install dotcat\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Cat structured data , in style",
"version": "0.8.26",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "836a4459e54f67d62c657cece668d2a95d2225c07e212abc80d8002cd9ee81ee",
"md5": "3ec3127042e5063d5c208c9a12e75897",
"sha256": "79da3135f5259fe7627d4972238a9187bc3d7550cf789a64eb9696318c058bc8"
},
"downloads": -1,
"filename": "dotcat-0.8.26-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3ec3127042e5063d5c208c9a12e75897",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7549,
"upload_time": "2024-12-26T21:43:03",
"upload_time_iso_8601": "2024-12-26T21:43:03.883089Z",
"url": "https://files.pythonhosted.org/packages/83/6a/4459e54f67d62c657cece668d2a95d2225c07e212abc80d8002cd9ee81ee/dotcat-0.8.26-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ed6876c5ae3ee1e5062c52c543058abced285e6bd51daf75f7e10ed5cdc4d10e",
"md5": "7e4b2cb9f555291a8efd0b4e015a7690",
"sha256": "8c8cf58f24fc305f82fd9ed2e4ab58e75dc8b11dc6328ae44fe902035f403ae5"
},
"downloads": -1,
"filename": "dotcat-0.8.26.tar.gz",
"has_sig": false,
"md5_digest": "7e4b2cb9f555291a8efd0b4e015a7690",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 5725,
"upload_time": "2024-12-26T21:43:05",
"upload_time_iso_8601": "2024-12-26T21:43:05.921345Z",
"url": "https://files.pythonhosted.org/packages/ed/68/76c5ae3ee1e5062c52c543058abced285e6bd51daf75f7e10ed5cdc4d10e/dotcat-0.8.26.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-26 21:43:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dotcat"
}