Skip to main content

A simple command line client for uploading files to Imgur.

Project description

A simple command line client for uploading files to Imgur.

Created for my PyCon US 2015 Docker tutorial so that students using my cloud servers can see the gifs they create at the end of exercise 1.

This tool is open source under the MIT License.

Quickstart

Getting Imgur API credentials

Go to https://api.imgur.com/oauth2/addclient and register a new Imgur API client. You will need an Imgur account to do this.

You can put it any valid URL for the callback URL - we won’t be using it.

Installing imgur-uploader

Installing imgur-uploader is easy. It runs on versions of Python >=2.7 or >=3.3.

If you just want to use imgur-uploader, you can just pip install imgur-uploader.

If you want to tweak or enhance imgur-uploader, follow these instructions:

  1. Clone this repository

  2. Install the tool with pip install -e .

Using imgur-uploader

First, create a file called ~/.config/imgur_uploader/uploader.cfg, with the following contents (substitute your credentials):

[imgur]
id = 9354da9ecdcfae3
secret = 8387eca75687ecad9876ead47786edac0875dc0d

Otherwise, set the IMGUR_API_ID and IMGUR_API_SECRET environment variables in your terminal session, using your client’s credentials.

Upload an image by running imgur-uploader path/to/my.gif

The tool will return a shortened link to your uploaded gif upon completion:

Uploading file my.gif
...
File uploaded - see your gif at http://i.imgur.com/6WsQPpw.gif

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

imgur-uploader-0.2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

imgur_uploader-0.2.1-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file imgur-uploader-0.2.1.tar.gz.

File metadata

File hashes

Hashes for imgur-uploader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0360b23748eed67cfe185485d90d22499f10e4ecfb57a616bf9a3a112b602f05
MD5 7bb16ee3cd191d8c4e5b6e66ac22470f
BLAKE2b-256 5f7f282496e55111c27c1ca3ebcf11ef420dcb783a298c799f8263461a62f1f2

See more details on using hashes here.

File details

Details for the file imgur_uploader-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for imgur_uploader-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 40150898a5d801eb7989e126a006337476f1d41bf8d531923c44f360d3af453e
MD5 b17cea7fc2926e7f48a53af6be5a58b0
BLAKE2b-256 948e9d9f61a28152050d7f385a8d47dc6a2081cc3fce5f411bc4eb37826eb5c3

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