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:
  • COMMENTS – Sort by the number of comments.

  • SIZE – Sort by file size.

  • DATE – Sort by date.

  • SEEDERS – Sort by the number of seeders.

  • LEECHERS – Sort by the number of leechers.

  • DOWNLOADS – Sort by the number of downloads.

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.

Variables:
  • DESC – Sort in descending order.

  • ASC – Sort in ascending order.

Member Type:

str

Valid values are as follows:

DESC = <Order.DESC: 'desc'>
ASC = <Order.ASC: 'asc'>