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.
Metadata
Release files for pytenor 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytenor-1.2.tar.gz | 5.4 kB | Details |
Release files / pytenor-1.2.tar.gz
| Download URL | pytenor-1.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38dce7be0cc3bc9c6df78e0ce31cec4350a32dbf70b5aa20e63ce090a1b07b10
|
|
BLAKE2b-256 checksum How to use checksums |
1ebfc7532b2549d282ef2d2e32f9a47d161f4c37879050af38d390682623f488
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|