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

Write some rules

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 taggie project has a set of pre-defined rules in the tag_files directory.

Run taggie

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

I apparently have 11 Jinja templates in the directory where I ran the tool.

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

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.2.0.tar.gz (12.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.2.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for taggie-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cad84b35e45e14f1424074d1ed6f79c2e4b2d3437feafd1b94e46f00aa6afc8d
MD5 3c243bbbdf6f3f26fe527f64995711de
BLAKE2b-256 0c2111720f76d04c66e9aa4f6800abdbc9d512b08c58657d164d18e7f11dee1b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for taggie-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c31207792bf193b951f5cf6bcad9c617726bd359cbdc92a901ca61c8cfb63f44
MD5 c1cf3bcc3198233f79651b6b916b0881
BLAKE2b-256 81fd192b1988e340cc09bcd626698677d9aa9090e290cbdd9e63d0f115007105

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