All Projects → momozor → Python Pixabay

momozor / Python Pixabay

Licence: mit
Python 3 Pixabay's API wrapper.

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

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
Py webauthn
A WebAuthn Python module.
Stars: ✭ 270 (+743.75%)
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
allalgorithms-python
The All ▲lgorithms Python Library.
Stars: ✭ 31 (-3.12%)
Mutual labels:  pypi, pip
pmm
PyPi Mirror Manager
Stars: ✭ 29 (-9.37%)
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
pystyle
The source of my Python library, pystyle.
Stars: ✭ 158 (+393.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
pypi-simple
PyPI Simple Repository API client library
Stars: ✭ 21 (-34.37%)
Mutual labels:  pypi, pip
pipyuan
pipyuan 内置了国内常用的 pip 源, 你可以快速设置想要的源
Stars: ✭ 30 (-6.25%)
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
yavdb
Yet Another Vulnerability Database
Stars: ✭ 14 (-56.25%)
Mutual labels:  pypi, pip
PyGLM
Fast OpenGL Mathematics (GLM) for Python
Stars: ✭ 167 (+421.88%)
Mutual labels:  pypi, pip
Underscore.py
Python port of underscore.js
Stars: ✭ 277 (+765.63%)
Mutual labels:  pypi, pip
Piprot
How rotten are your requirements?
Stars: ✭ 409 (+1178.13%)
Mutual labels:  pypi, pip

build CI Downloads Downloads PyPI version PyPI - Python Version

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].