momozor / Python Pixabay
Licence: mit
Python 3 Pixabay's API wrapper.
Stars: ✭ 32
Programming Languages
Projects that are alternatives of or similar to Python Pixabay
poetry-setup
Generate setup.py (setuptools) from pyproject.toml (poetry)
Stars: ✭ 44 (+37.5%)
Mutual labels: pypi, pip
rfc-bibtex
A command line tool that creates bibtex entries for IETF RFCs and Internet Drafts.
Stars: ✭ 43 (+34.38%)
Mutual labels: pypi, pip
pipx
Install and Run Python Applications in Isolated Environments
Stars: ✭ 5,698 (+17706.25%)
Mutual labels: pypi, pip
Sparqlwrapper
A wrapper for a remote SPARQL endpoint
Stars: ✭ 365 (+1040.63%)
Mutual labels: wrapper, pypi
pip-download
A wrapper for pip download in offline scenario.
Stars: ✭ 22 (-31.25%)
Mutual labels: pypi, pip
Pip Upgrader
An interactive pip requirements upgrader. It also updates the version in your requirements.txt file.
Stars: ✭ 340 (+962.5%)
Mutual labels: pypi, pip
Pipx
Install and Run Python Applications in Isolated Environments
Stars: ✭ 4,398 (+13643.75%)
Mutual labels: pypi, pip
Try
Dead simple CLI tool to try Python packages - It's never been easier! 📦
Stars: ✭ 588 (+1737.5%)
Mutual labels: pypi, pip
ios2androidres
Copy iOS image resources to their appropriate Android directory
Stars: ✭ 20 (-37.5%)
Mutual labels: pypi, pip
pipsalabim
An assistant to guess your pip dependencies from your code, without using a requirements file.
Stars: ✭ 15 (-53.12%)
Mutual labels: pypi, pip
python-pixabay
Python 3 Pixabay's API wrapper.
Install from PyPi
pip install python-pixabay
Synopsis
from pixabay import Image, Video
API_KEY = 'my_pixabay_api_key'
# image operations
image = Image(API_KEY)
# default image search
image.search()
# custom image search
ims = image.search(q='cats dogs',
lang='es',
image_type='photo',
orientation='horizontal',
category='animals',
safesearch='true',
order='latest',
page=2,
per_page=3)
print(ims)
# video operations
video = Video(API_KEY)
# default video search
video.search()
# custom video search
vis = video.search(q='cats', lang='fr',
video_type='animation',
category='animals',
page=1,
per_page=4)
print(vis)
Usage
I wrote a few how to articles in the project wiki. Feel free to add more examples or scenarios to the wiki.
Running the tests
-
Make sure you've assigned the
PIXABAY_API_KEY
environment variable with your registered Pixabay's api key. -
Run the following command
pytest
in the project directory.
Maintainer and Contributors
-
This software is authored and maintained by Momozor.
-
For contributors that contributed to this development of this module, see the CONTRIBUTORS file.
See Also
License
This module is licensed under the MIT license. See LICENSE file for more details.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].