cheesechaser.query.nozomi
This module provides functionality for querying and iterating over Nozomi IDs.
It includes classes and functions for interacting with the Nozomi API, handling tag-based queries, and managing the retrieval of Nozomi IDs. The module supports both positive and negative tag filtering, as well as ordering options for the retrieved IDs.
Key components:
NozomiIdIterator: A class for iterating over Nozomi IDs based on tags and ordering.
iter_nozomi_ids: A function that combines multiple NozomiIdIterators to filter IDs based on tags.
NozomiIdQuery: A class that extends BaseWebQuery to provide a query interface for Nozomi IDs.
This module is useful for applications that need to interact with the Nozomi API and process large sets of Nozomi IDs efficiently.
NozomiIdQuery
- class cheesechaser.query.nozomi.NozomiIdQuery(tags: List[str], negative_tags: List[str] | None = None, order_by: Literal['popular', 'date'] = 'date')[source]
A query class for retrieving Nozomi IDs based on tags and ordering.
This class extends BaseWebQuery to provide a query interface for Nozomi IDs. It supports filtering by tags, negative tags, and ordering the results.
- Parameters:
tags (List[str]) – A list of tags to filter the Nozomi IDs.
negative_tags (List[str]) – A list of tags to exclude from the results (optional).
order_by (OrderByTyping) – The ordering method for the IDs (‘popular’ or ‘date’).