A Python client for the Imgur API
Project description
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
Links
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
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_python-0.2.4.tar.gz
(20.6 kB
view details)
Built Distribution
File details
Details for the file imgur_python-0.2.4.tar.gz
.
File metadata
- Download URL: imgur_python-0.2.4.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d72da106914184873e9b666ccfc91ad49c3620453bfa06163ecd96f0fd039175 |
|
MD5 | 1720dd2a5ba85f0b3d192a016384af59 |
|
BLAKE2b-256 | 7e9c906fe3d317177c435c52ca87046965f2888100a431e0cedbd3a9bcdcf527 |
File details
Details for the file imgur_python-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: imgur_python-0.2.4-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed9a580c7d72f9c7ca02d4161f4db9cc9363429dfda50f6c89a3a0b97a6cc9b |
|
MD5 | f16f2d3a3c07757526c437762e5956ed |
|
BLAKE2b-256 | feae06462c09a84073c788155d7e446a30ebf7968d9a31aafd39769ea798a077 |