Async and Sync Python Wrapper for the RedGifs API.
Project description
redgifs
Async and Sync Python Wrapper for the Redgifs API.
âš This project is still in development.
Installation
pip install -U redgifs
redgifs
works on Python versions 3.7 and above.
Quickstart
Synchronous usage
import redgifs
api = redgifs.API()
response = api.search('3D')
print(response)
api.close()
Asynchronous usage
import asyncio
from redgifs.aio import API
async def main():
api = API()
response = await api.search('3D')
print(response)
await api.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
More examples can be found in the examples directory.
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
redgifs-1.1.0.tar.gz
(66.8 kB
view hashes)
Built Distribution
redgifs-1.1.0-py3-none-any.whl
(73.9 kB
view hashes)