Skip to main content

It's like Badgie but for tags!

Project description

taggie 🖍️

pipeline status coverage report latest release pre-commit cici enabled code style: prettier

It's like Badgie, but for tags!

About

taggie tags things. It's what it does.

taggie is built as a standalone tool to be integrated into a larger toolchain for analyzing and acting on project contents.

Installation

python3 -m pip install taggie

Usage

Use the default tags

Run taggie with no options to use the default collection of tag files bundled with the application:

taggie
$ taggie
TOTAL    NAME              EXAMPLE
243      yaml              marp/.gitlab-ci.yml
52       markdown          container/README.md
15       opentofu          opentofu/outputs.tf
11       jinja             container/.cici/README.md.j2
9        python            python/examples/dynamic-version/python_pipeline/__init__.py
6        toml              python/examples/dynamic-version/pyproject.toml
3        html              zola/templates/index.html
1        restructuredtext  sphinx/docs/index.rst
1        css               marp/style.css

Use your own tags

Define a set of tagging rules in YAML files we like to call "tag files":

# jinja.yaml
- type: file.extension
  tags:
    - jinja
  extensions:
    - j2

The syntax is a little verbose, but that's because we want to make the tagging components pluggable.

Run taggie with the -t/--tag-file option to specify your tag files. A directory can also be passed. -t/--tag-file can be specified as many times as needed:

taggie -t jinja.yaml
$ taggie -t jinja.yaml
TOTAL    NAME    EXAMPLE
11       jinja   gitlab/.cici/README.md.j2

License

Copyright 2025 UL Research Institutes.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taggie-0.4.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taggie-0.4.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file taggie-0.4.0.tar.gz.

File metadata

  • Download URL: taggie-0.4.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for taggie-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4820d96df87ad3b028c3d1a1d3e44ce395d63314dd3c046ae4f269ea12e58e3d
MD5 687da86014a7fad01ce1345bc1a2943b
BLAKE2b-256 a895292a8fc2ebcdad078dbb565562c92404333e80d4ba570072e7024f66504f

See more details on using hashes here.

File details

Details for the file taggie-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: taggie-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for taggie-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bb7bbd153b19cb154197688b6f5e30d461818f556e41c9e973d9f87b9f413a2
MD5 b656b74590acece2f264384c92587200
BLAKE2b-256 10a9e10d4c19a54a35e92a3cab1c5927cf573135a86057c1be596ccf37893b9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page