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.
Clone this repository
Install the tool with pip install -e .
Set the IMGUR_API_ID and IMGUR_API_SECRET environment variables using your client’s credentials
Using imgur-uploader
Upload an image by running imgur-uploader path/to/my.gif
The tool return a shortened link to your uploaded gif upon completion:
Uploading file output.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imgur-uploader-0.1.1.tar.gz.
File metadata
- Download URL: imgur-uploader-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e43836db4272ea40e336adf7ab1a1905d0809a916ea9156c50c8b06b65da77d3
|
|
| MD5 |
0ef0d727926eb1a366fcb6e6235f6a32
|
|
| BLAKE2b-256 |
5d89aba8b92dc241c2237e98b71e2c97530ce63f15e3d61b5071cbb04cdc6117
|
File details
Details for the file imgur_uploader-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: imgur_uploader-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50d559fe04f34d5206ac98865aaec28937042c5896d13b3d94bfeea2b5614814
|
|
| MD5 |
3d8598678287f1991058fe5034502864
|
|
| BLAKE2b-256 |
16d42f956f472c8a799748713982ac6eec92446a926600c499e8bb35a35334d1
|