A simple command line client for uploading files to Imgur.
Project description
imgur-uploader
==============
A simple command line client for uploading files to Imgur.
Created for my `PyCon US 2015 Docker tutorial
<https://us.pycon.org/2015/schedule/presentation/312/>`_ 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 <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:
#. Clone this repository
#. 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
==============
A simple command line client for uploading files to Imgur.
Created for my `PyCon US 2015 Docker tutorial
<https://us.pycon.org/2015/schedule/presentation/312/>`_ 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 <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:
#. Clone this repository
#. 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.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for imgur_uploader-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b85c20bc9fae2d9c91765623e2124aee81be418da946ca144a3429ebc10f78 |
|
MD5 | 5dcda42a1e189fef1df4d939c5095a73 |
|
BLAKE2b-256 | a8cfe36a753fd70c093420efda508679b19fb469d85b598a9d7a30df6a69d736 |