Skip to content

An Asynchronous API Wrapper for Imgur written in Python.

License

Notifications You must be signed in to change notification settings

Dyleee/asyncgur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asyncgur

An Asynchronous Imgur Wrapper for Python

Example Usage:

from asyncgur import Imgur
client_id = 'YOUR_IMGUR_CLIENT_ID'
imgur_app = Imgur(client_id)

async def main():
    image, response = await imgur_app.upload_image(image='some_image_url_or_bytes')
    assert response.success == True and response.status == 200
    print(image)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

See misc/examples for more usecases.

About

An Asynchronous API Wrapper for Imgur written in Python.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages