Skip to main content

garf for Media Tagging

garf-media-tagging simplifies interaction with media_tagging library via SQL queries and can be used with garf framework.

Prerequisites

Installation

pip install garf-media-tagging

Usage

Run via CLI

Install garf-executors package to run queries via CLI (pip install garf-executors).

garf <PATH_TO_QUERIES> --source media-tagging \
  --output <OUTPUT_TYPE> \
  --source.endpoint=MEDIA_TAGGING_API_ENDPOINT_URL

where:

Available source parameters

name values comments
endpoint http endpoint when media-tagging API is running
db-uri Optional connection string to DB where tagging results can be found
tagger-type Type of tagger to use Optional, can be specified in query filters
media-type Type of media to use Optional, can be specified in query filters
media-paths Type of media to use Optional, can be specified in query filters
tagging-options Key-value pairs to fine-tune tagging process Optional, can be specified in query filters

Queries for Media Tagging API

SELECT
  media_url,
  content.tags[].name AS tags
FROM tag
WHERE
  media_type = 'image'
  AND tagger_type = 'gemini'
  AND media_path IN ({media})

Resources

  • tag - identifies tags (pair name: score) uniquely defining media.
  • description - custom description of media; usually fine-tuned via custom_prompt parameter.

Filters

  • media_type - Required, one of: image, youtube_video, webpage, text, video.
  • tagger_type - Tagger used to identify tags / descriptions.
  • media_path - location of media.
  • tagging_options - optional parameters to finetune tagging.
    • n_tags - number of tags to return.
    • tags - custom tags to find in the media.
    • custom_prompt - prompt to send to LLM.

Fields

You can extract one of the following elements from reach row of API response.

  • media_type
  • media_url
  • identifier
  • processed_at
  • content
    • text for description
    • {name, score} for tag
  • hash

Metadata

Release files for garf-media-tagging 0.0.10

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

Source distribution (sdist)

Source distribution for garf-media-tagging 0.0.10
File Size Uploaded
garf_media_tagging-0.0.10.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for garf-media-tagging 0.0.10
File Interpreter ABI Platform
garf_media_tagging-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / garf_media_tagging-0.0.10.tar.gz

Download URL garf_media_tagging-0.0.10.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c2eccb8f9d323b89d85997e9b03b308153a11d5789030f27cd2d36eb54018ee3
BLAKE2b-256 checksum
How to use checksums
8662d9ca1f9f0ca747b96ea8bcbef4a5e32afd20af53cc90277afc6230cdcbc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / garf_media_tagging-0.0.10-py3-none-any.whl

Download URL garf_media_tagging-0.0.10-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25f8a2c99631626538290cbcf4c7a21453088328a65ab9a700c6b28223e323ad
BLAKE2b-256 checksum
How to use checksums
20626134b769430602bd9f3da25c2663442d55ab5754ef8976528b2e70133b7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

0.0.1

2 release files

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