A simple API wrapper for tenor's gif api that is built with asyncio.
Project description
PyTenor
A simple API wrapper for tenor's gif api that is built with asyncio.
PyTenor's code is small and fairly documented as well using docstrings. There are plans to add an actual documentation in this README in the future..
Installation
python -m pip install pytenor
Examples
import asyncio
from pytenor import Tenor
api = Tenor(key="api key here")
async def main():
# Search for gifs. This returns a GIF object.
gifs = await api.search("linux users opening a new tab")
print("Here are the gifs I found")
for gif in gifs:
print(f"URL: {gif.url} | Available Formats: {gif.available_formats}")
if __name__ == "__main__":
asyncio.run(main())
Covered API Endpoints
- /search
- /trending
- /categories
- /search_suggestions
- /autocomplete
- /trending_terms
- /registershare
- /gifs
For more help on what parameters you can pass onto each method. Please red Tenor's API documentation.
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
pytenor-1.2.tar.gz
(5.4 kB
view details)
File details
Details for the file pytenor-1.2.tar.gz
.
File metadata
- Download URL: pytenor-1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38dce7be0cc3bc9c6df78e0ce31cec4350a32dbf70b5aa20e63ce090a1b07b10 |
|
MD5 | ef2378678e86e286586074ab2cf8ceb9 |
|
BLAKE2b-256 | 1ebfc7532b2549d282ef2d2e32f9a47d161f4c37879050af38d390682623f488 |