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-executorspackage 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:
PATH_TO_QUERIES- local or remove files containing queriesoutput- output supported bygarf-iolibrary.SOURCE_PARAMETER=VALUE- key-value pairs to refine fetching, check available source parameters.
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 (pairname: score) uniquely defining media.description- custom description of media; usually fine-tuned viacustom_promptparameter.
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_typemedia_urlidentifierprocessed_atcontenttextfor 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| garf_media_tagging-0.0.10.tar.gz | 7.6 kB | Without provenance | Details for garf_media_tagging-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| garf_media_tagging-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for garf_media_tagging-0.0.10-py3-none-any.whl |
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}
|
Security for garf-media-tagging 0.0.10
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.