Skip to main content

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.

# 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.

Includes ZSH autocompletion for both file paths and dotted paths, making it even easier to navigate complex data structures.

Installation

If you have a global pip install, this will install dotcat globally:

pip install dotcat

ZSH Completion

Dotcat comes with ZSH completion support that is automatically installed when you install the package with pip. The installation script will:

  1. Look for appropriate ZSH completion directories
  2. Install the completion files if possible
  3. Notify you of the installation location

If the automatic installation fails, you can manually install the completions:

# Copy the completion script to your ZSH completions directory
mkdir -p ~/.zsh/completions
cp /path/to/installed/package/zsh/_dotcat ~/.zsh/completions/

# Or run the installation script directly
dotcat-install-completions

See the ZSH completion README for detailed instructions.

Metadata

Release files for dotcat 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dotcat 0.9.6
File Size Uploaded Provenance Actions
dotcat-0.9.6.tar.gz 21.3 kB Without provenance Details for dotcat-0.9.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dotcat 0.9.6
File Interpreter ABI Platform Actions
dotcat-0.9.6-py3-none-any.whl Python 3 none any Details for dotcat-0.9.6-py3-none-any.whl

Total release size: 49.9 kB

Release files / dotcat-0.9.6.tar.gz

Download URL dotcat-0.9.6.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
24a9fcb3286fb9267443ceb3416dd4e64956641662a1154bdb78d23ec030e5b3
BLAKE2b-256 checksum
How to use checksums
617a2b5ba10c4b31846f56cebbf7b761da5ec316a124d2c35c3627bc45dbfb75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / dotcat-0.9.6-py3-none-any.whl

Download URL dotcat-0.9.6-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
943dbfb78a89adbddf87bcb5a55172b135f18021572dc3240dc691398c92a20f
BLAKE2b-256 checksum
How to use checksums
c732966cd85077176aea42883bc2660b794a391d4c221d912c760d6ac769da07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Security for dotcat 0.9.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page