Skip to main content

Async and Sync Python Wrapper for the RedGIFs API.

Project description

redgifs

Async and Sync Python Wrapper for the RedGIFs API.


Please star this repo to support the developer and to encourage the development of this project!


Installation

pip install -U redgifs

Development version

pip install -U git+https://github.com/scrazzz/redgifs

redgifs works on Python versions 3.8 and above.


Quickstart

Command Line usage:

redgifs [url]

See redgifs -h for help.

Synchronous usage:

import redgifs

api = redgifs.API()
api.login() # Login with temporary token
response = api.search('3D')
print(response)
api.close()

Asynchronous usage:

import asyncio
from redgifs.aio import API

async def main():
    api = API()
    await api.login() # Login with teporary token
    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.


Links

Project details


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.7.2.tar.gz (100.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redgifs-1.7.2-py3-none-any.whl (110.0 kB view details)

Uploaded Python 3

File details

Details for the file redgifs-1.7.2.tar.gz.

File metadata

  • Download URL: redgifs-1.7.2.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for redgifs-1.7.2.tar.gz
Algorithm Hash digest
SHA256 686150b1f23235d4e3d6ccc05e5a82547de343bedd82dd91ac499def27c0ade8
MD5 debd650a21e60c5dcb1e9892d3b618d8
BLAKE2b-256 aa5ef9997fa79807cb3d0833ae579d2cd5043ff9a5e7cc191d804e250635b100

See more details on using hashes here.

File details

Details for the file redgifs-1.7.2-py3-none-any.whl.

File metadata

  • Download URL: redgifs-1.7.2-py3-none-any.whl
  • Upload date:
  • Size: 110.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for redgifs-1.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8757dc38938a029d171185cd377a76331b5756e771eac54358bb52e44729079b
MD5 97467ec385f0dd98ae9e61f3125dbb05
BLAKE2b-256 f968e2a2157560a7902a9469046921fe3f54423464ab120f8948ca6a3e48ead3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page