Skip to main content

markat

mkat is a tiny CLI that prints a nested Markdown subsection using a dotted path syntax. Each dotted segment refers to the n-th heading for a particular depth (defaulting to ##, ###, ####, ...):

# syntax
2.3.2  -> second `##`, third `###` inside it, second `####` inside that

Features

  • Dotted selection syntax (2.3.2 = 2nd ##, 3rd ###, 2nd ####).
  • Colorized output that highlights the breadcrumb path plus the raw section.
  • --plain/-p flag for piping the exact Markdown without headers/colors.
  • --color/--no-color switches to override auto-detection when needed.
  • --base-level flag to align the first index with your preferred heading depth.

Usage

uv sync
uv run mkat example.md 2.1.2        # colorful header + section text
uv run mkat example.md 2.1.2 -p     # plain Markdown only
uv run mkat docs/spec.md 1 --color  # force-enable color when piping

Ship a Markdown file like example.md (included) to experiment with the dotted paths. Add --base-level 1 if your top-level headings start with # instead of ##.

Testing

python -m unittest discover

The test suite covers path parsing, section selection, and the CLI presentation helpers.

Metadata

Release files for markat 0.1.0

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

Source distribution (sdist)

Source distribution for markat 0.1.0
File Size Uploaded Provenance Actions
markat-0.1.0.tar.gz 5.4 kB Without provenance Details for markat-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / markat-0.1.0.tar.gz

Download URL markat-0.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f7e4a26d4e16930c61dbf9f6aa736a17d5ef6886fdbe1624a95a05fe320ab38f
BLAKE2b-256 checksum
How to use checksums
0ffb3c5566c867f6fc8b5c748c15a8f68ae7485e97c09069fa4c101eff87bb3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / markat-0.1.0-py3-none-any.whl

Download URL markat-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2c2e4c26748f484682808f6e8a01f303b6ec2c69cfde87a8d108ba87ce7d68a
BLAKE2b-256 checksum
How to use checksums
a904f52340ce52c396c396af99049e8eabb70af6f6c6794c49a35f6aef836a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for markat 0.1.0

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

This release

0.1.0 This release

2 release files No provenance

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