Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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
Release files for imgur-python 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imgur_python-0.2.4.tar.gz | 20.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imgur_python-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.2 kB
Release files / imgur_python-0.2.4.tar.gz
| Download URL | imgur_python-0.2.4.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d72da106914184873e9b666ccfc91ad49c3620453bfa06163ecd96f0fd039175
|
|
BLAKE2b-256 checksum How to use checksums |
7e9c906fe3d317177c435c52ca87046965f2888100a431e0cedbd3a9bcdcf527
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / imgur_python-0.2.4-py3-none-any.whl
| Download URL | imgur_python-0.2.4-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ed9a580c7d72f9c7ca02d4161f4db9cc9363429dfda50f6c89a3a0b97a6cc9b
|
|
BLAKE2b-256 checksum How to use checksums |
feae06462c09a84073c788155d7e446a30ebf7968d9a31aafd39769ea798a077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|