skip to navigation
skip to content

imgurup 1.7.0

Upload to imgur using API(v3). Support CLI, KDE,Zenity(GTK) and Mac dialog upload. And you can also use your account to upload :).

Package Documentation

Upload to imgur using its API(v3). Support CLI, KDE, Zenity(GTK) and Mac dialog upload.


Support upload images(anonymously/account)
Support CLI, KDE, Zenity(GTK) and Mac dialog upload
Support Python 3


$ sudo python install


$ sudo pip install imgurup


img [-h] [-f [<image path> [<image path> ...]]] [-d [<album id>]] [-g] [-n] [-q]

You can just type img without any argument, the program will ask you for another infomation.
But add -f argument with your image file would be easier to use, ex: img -f xx.jpg
After the authentication, the access_token and refresh_token will be saved in ~/.imgurup.conf

Optional arguments:

-h, --help       show this help message and exit
-f [<image path> [<image path> ...]] The images you want to upload
-d [<album id>]  The album id you want your image to be uploaded to
-g               GUI mode
-n               Anonymous upload
-s               Add command in the context menu of file manager(Support Gnome and KDE)
-q               Choose album with each file
-t               Use image name as the title

Packcage Dependency

  • None

Customize example

from imgurup import Imgur

class MyImgur(Imgur):

    def get_error_dialog_args(self, msg='Error'):
        args = [
        return args

    def get_auth_msg_dialog_args(self, auth_msg, auth_url):
        args = [
        return args

    def get_enter_pin_dialog_args(self, token_msg):
        args = [
        return args

    def get_ask_image_path_dialog_args(self):
        args = [
        return args

    def get_ask_album_id_dialog_args(self, albums, no_album_msg):
        i = 1
        arg = [
            '--text="Choose the album"',
            '--column=Album name',
        for album in albums:
            i += 1

    def get_show_link_dialog_args(self, links):
        args = [
        return args


The imgurup package is written by Chien-Wei Huang. It’s MIT licensed and freely available.

Feel free to improve this package and send a pull request to GitHub.

File Type Py Version Uploaded on Size
imgurup-1.7.0.tar.gz (md5) Source 2016-05-14 14KB