python-pixabay
params.py
1 ##
2 # Pixabay API (unofficial)
3 # @author Luká¹ Plevaè <lukas@plevac.eu>
4 # @date 3.2.2022
5 
6 class params:
7  ##
8  # Init params object
9  # @param host host of API (default: https://pixabay.com/api/)
10  # @param query search words (ex: big tree)
11  # @param apiKey api key for API
12  # @param lang language of search words (default "en")
13  # supported: cs, da, de, en, es, fr, id, it, hu, nl, no, pl, pt, ro, sk, fi, sv, tr, vi, th, bg, ru, el, ja, ko, zh
14  # @param orientation orientation of image (default "all")
15  # supported: all, horizontal, vertical
16  # @param perPage number of images per one request (default: 25)
17  # @param order order of images (default: "popular")
18  # supported: popular, latest
19  # @param safeSearch a flag indicating that only images suitable for all ages should be returned (Default: False)
20  # @param minWidth min width of image (default: 0)
21  # @param minHeight min height of image (default: 0)
22  # @param editorsChoice images that have received an Editor's Choice award (Default: False)
23  # @param category filter images by category (default: "all")
24  # supported: all, backgrounds, fashion, nature, science, education, feelings, health, people, religion, places, animals, industry, computer, food, sports, transportation, travel, buildings, business, music
25  # @param colors filter images by color properties. A comma separated list of values may be used to select multiple properties. (Default: "all")
26  # supported: all, grayscale, transparent, red, orange, yellow, green, turquoise, blue, lilac, pink, white, gray, black, brown
27  #
28  # @return params object
29  def __init__(self, host='https://pixabay.com/api/', query='', apiKey='', lang='en', orientation='all', perPage=25, order="popular", safeSearch=False, minWidth=0, minHeight=0, editorsChoice=False, category='all', colors='all', image_type='photo', id=-1):
30  self.host = host
31  self.query = query
32  self.apiKey = apiKey
33  self.lang = lang
34  self.orientation = orientation
35  self.perPage = perPage
36  self.order = order
37  self.safeSearch = 'true' if safeSearch else 'false'
38  self.minWidth = minWidth
39  self.minHeight = minHeight
40  self.editorsChoice = 'true' if editorsChoice else 'false'
41  self.category = category
42  self.colors = colors
43  self.image_type = image_type
44  self.id = -1
def __init__(self, host='https://pixabay.com/api/', query='', apiKey='', lang='en', orientation='all', perPage=25, order="popular", safeSearch=False, minWidth=0, minHeight=0, editorsChoice=False, category='all', colors='all', image_type='photo', id=-1)
Init params object.
Definition: params.py:29
Pixabay API (unofficial)
Definition: params.py:6