Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imgur-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imgur-python

A Python client for the Imgur API

  • 0.2.4
  • PyPI
  • Socket score

Maintainers
1

imgur-python

A Python client for the Imgur API.

The original imgurpython project is no longer supported, so, I decided to create my own python client for the Imgur API.

Disclaimer: This is a work in progress. In this first version, I'm not gonna implement all the API calls, only the necessary ones to interact with imgur and be able to create albums, upload images and share them on the site.

For more information, check the API client documentation

Requirements

Install

$ python setup.py install

with pip

$ pip install imgur-python

How to publish something and share it with the community?

  • upload a bunch of images
  • add them to an album
  • share it
from os import path
from imgur_python import Imgur

imgur_client = Imgur({'client_id': 'cf8c57ca8......'})
image = imgur_client.image_upload(path.realpath('./image.png'), 'Untitled', 'My first image upload')
image_id = image['response']['data']['id']
album =  imgur_client.album_create([image_id], 'My first album', 'Something funny', 'public')
album_id = album['response']['data']['id']
response = imgur_client.gallery_album(album_id, 'This is going down on the sub', 0, 'funny,midly_interesting')
print(response)

Roadmap

Gallery

  • Gallery Album
  • Gallery Image
  • Album / Image Reporting
  • Album / Image Votes
  • Album / Image Voting
  • Album / Image Comments
  • Album / Image Comment
  • Album / Image Comment Creation

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc