pynyaasi.client.enum¶
SortBy¶
-
enum
pynyaasi.client.enum.SortBy(value)[source]¶ Enumeration representing sorting options for search results.
The SortBy enumeration defines different attributes by which search results can be sorted, such as comments, size, date, seeders, leechers, and downloads.
Each option in the enumeration corresponds to a specific sorting attribute for search results.
- Variables:
- Member Type:
str
Valid values are as follows:
-
COMMENTS= <SortBy.COMMENTS: 'comments'>¶
-
SIZE= <SortBy.SIZE: 'size'>¶
-
DATE= <SortBy.DATE: 'id'>¶
-
SEEDERS= <SortBy.SEEDERS: 'seeders'>¶
-
LEECHERS= <SortBy.LEECHERS: 'leechers'>¶
-
DOWNLOADS= <SortBy.DOWNLOADS: 'downloads'>¶
Order¶
-
enum
pynyaasi.client.enum.Order(value)[source]¶ Enumeration representing the order in which search results should be sorted.
The Order enumeration defines two options for sorting order: descending (DESC) and ascending (ASC). This enumeration is typically used in combination with SortBy to specify the sorting order of search results.
Valid values are as follows:
-
DESC= <Order.DESC: 'desc'>¶
-
ASC= <Order.ASC: 'asc'>¶
-