A unofficial python wrapper library for Pexels API
Project description
python-pexels
A unofficial python library to support all of Pexels API features.
-
Supports all of the endpoints, which are available in API v1.0
-
Return data are python objects.
-
User friendly library.
-
Easy to use.
📚 Documentation for this library can be found below. It contains detailed instructions on how to use API.
📚 Documentation for the official API can be found here.
Installation
You can install the library via pip
pip install python-pexels
Or using source code, which is not recommended.
git clone https://github.com/jk6521/py-pexels-api.git
cd py-pexels-api
python setup.py install
more installation guide found here
Usage & Example
You need API token to access Pexels API, you can get it here
Once library is installed using pip, create a new python file named main.py
#main.py
from Pexels import Client
client = Client(token="abcd1223")
#search photos
photos = client.search_photo(query="Joker")
#you can access return data like
print(photos.total_results)
>>> 230
more examples can be found here
Useful Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_pexels-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f7d7eeb8f1a3709342d725eec8a729f6a2b1a1eec4fac747388654b37272a28 |
|
MD5 | 86fa244804fde56de9508d480d4101f7 |
|
BLAKE2b-256 | a4f7c02ca5f801c0fe2130d899b4a4897362ddd880a377364e986f99b7865657 |