tag-mgr
tag-mgr is a terminal tag manager for Markdown files. It reads YAML tags from
the top of Markdown files, builds a JSON index, searches that index, and can add
or remove tags in a specific file.
The tags should be stored in YAML format at the top of the Markdown files:
title: Local LLM Laptop Benchmark - MacBook Pro 128GB vs Ryzen AI Max+ 395 vs RTX 5090 Laptop
date: 2026-06-22
tags:
- local-ai
- llm
- hardware
- benchmarks
- macbook-pro
- ryzen-ai-max
- rtx-5090
YAML front matter with --- delimiters is also supported:
---
title: Local LLM Laptop Benchmark
tags:
- local-ai
- llm
---
# Notes
Language-marked YAML fences such as ---yaml and --- yaml are supported too:
---yaml
title: Vaazaar Fundraising
tags:
- funding
- vc
---
Install
After the package is published to PyPI:
python3 -m pip install tag-mgr
For an isolated command-line install, use pipx:
pipx install tag-mgr
From this repository for development:
python3 -m pip install -e .
Install shell completion after installing tag-mgr:
tag-mgr --install-completion
source ~/.bashrc
Shell Completion
tag-mgr supports shell completion through argcomplete.
For Bash, install completion with:
tag-mgr --install-completion bash
source ~/.bashrc
For zsh:
tag-mgr --install-completion zsh
source ~/.zshrc
Then typing this and pressing tab completes the option:
tag-mgr --sea<TAB>
Usage
Read tags from a file:
tag-mgr --version
tag-mgr --read --file notes/example.md
Build the index at the Git repository root:
tag-mgr --index
Build the index somewhere else:
tag-mgr --index /tmp/tag-index.json
Search for files related to a tag:
tag-mgr --search llm
Search for files that have all listed tags with &:
tag-mgr --search 'llm & hardware'
Search for files that have at least one listed tag with |:
tag-mgr --search 'llm | hardware'
Add or remove a tag from a Markdown file:
tag-mgr --add hardware --file notes/example.md
tag-mgr --remove hardware --file notes/example.md
By default, the index is stored as .tag-mgr-index.json at the Git repository
root. Use --index-file PATH with --search, --add, or --remove to use a
different index file. Use --root DIR to scan a directory other than the current
Git repository.
Publish
Before publishing, update the version in pyproject.toml and
tag_mgr/__init__.py, then document the release in CHANGELOG.md.
Install publishing tools:
python3 -m pip install -e '.[publish]'
Build and validate the package:
rm -rf dist build *.egg-info
python3 -m build
python3 -m twine check dist/*
Upload to TestPyPI first:
python3 -m twine upload --repository testpypi dist/*
Upload to PyPI:
python3 -m twine upload dist/*
For token-based upload, set:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=pypi-your-token
Metadata
Release files for tag-mgr 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tag_mgr-1.0.0.tar.gz | 8.7 kB | Without provenance | Details for tag_mgr-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tag_mgr-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for tag_mgr-1.0.0-py3-none-any.whl |
Total release size: 16.8 kB
Release files / tag_mgr-1.0.0.tar.gz
| Download URL | tag_mgr-1.0.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a257eb54989cf13c0bfc4ebf2030ec6d751fccaa8b07b595f9e2e2f014eab81
|
|
BLAKE2b-256 checksum How to use checksums |
0a9076a9a33663f49e57c35f3b19ec191ca0cc4823aa58b71e581deffea77867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / tag_mgr-1.0.0-py3-none-any.whl
| Download URL | tag_mgr-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24730206d694c0abe74fd44a0a7f062860a91550eb7cec02ae1befc48fe77aa7
|
|
BLAKE2b-256 checksum How to use checksums |
75d899a11a02cc07d98472a0db611c973e8b27139365d1787f04f782280b2b39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for tag-mgr 1.0.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.