Upload images via APIs
Project description
images-upload-cli
Upload images via APIs
Installation • Hostings • Usage • Env Variables
Installation
PyPI
pipx install images-upload-cli
# or
pip install images-upload-cli
AUR
yay -S python-images-upload-cli
Windows executable is attached to the GitHub release.
Hostings
| host | key required | return example |
|---|---|---|
| anhmoe | - | https://cdn.anh.moe/c/{id}.png |
| beeimg | - | https://beeimg.com/images/{id}.png |
| catbox | - | https://files.catbox.moe/{id} |
| fastpic | - | https://i120.fastpic.org/big/2022/0730/d9/{id}.png |
| filecoffee | - | https://file.coffee/u/{id}.png |
| freeimage | - | https://iili.io/{id}.png |
| gyazo | + | https://i.gyazo.com/{id}.png |
| imageban | + | https://i2.imageban.ru/out/2022/07/30/{id}.png |
| imagebin | - | https://ibin.co/{id}.png |
| imgbb | + | https://i.ibb.co/{id}/image.png |
| imgchest | + | https://cdn.imgchest.com/files/{id}.png |
| imgur | - | https://i.imgur.com/{id}.png |
| lensdump | + | https://i.lensdump.com/i/{id}.png |
| pixeldrain | + | https://pixeldrain.com/api/file/{id} |
| pixhost | - | https://img75.pixhost.to/images/69/{id}_img.png |
| ptpimg | + | https://ptpimg.me/{id}.png |
| smms | + | https://s2.loli.net/2022/07/30/{id}.png |
| sxcu | - | https://sxcu.net/{id}.png |
| telegraph | - | https://telegra.ph/file/{id}.png |
| thumbsnap | + | https://thumbsnap.com/i/{id}.png |
| tixte | + | https://{domain}.tixte.co/r/{id}.png |
| up2sha | + | https://up2sha.re/media/raw/{id}.png |
| uplio | + | https://upl.io/i/{id}.png |
| uploadcare | + | https://ucarecdn.com/{id}/img.png |
| vgy | + | https://i.vgy.me/{id}.png |
Usage
Note: The commands
images-upload-cliandimgupcan be used interchangeably.
Usage: imgup [OPTIONS] IMAGES...
Upload images via APIs.
Options:
-h, --hosting [anhmoe|beeimg|catbox|fastpic|filecoffee|freeimage|gyazo|imageban|imagebin|imgbb|imgchest|imgur|lensdump|pixeldrain|pixhost|ptpimg|smms|sxcu|telegraph|thumbsnap|tixte|up2sha|uplio|uploadcare|vgy]
[default: imgur]
-f, --format [plain|bbcode|html|markdown]
The format of the links to be generated. [default: plain]
-t, --thumbnail Create captioned thumbnails. By default, in bbcode format.
-n, --notify Send desktop notification on completion. Required libnotify.
--clipboard / --no-clipboard Copy the result to the clipboard. [default: clipboard]
--env-file FILE The path to the environment file. Takes precedence over the default config file.
--log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
Use DEBUG to show debug logs. Use CRITICAL to suppress all logs. [default: INFO]
--version Show the version and exit.
--help Show this message and exit.
Env variables
CAPTION_FONT= # The default font is system dependent.
FREEIMAGE_KEY=
GYAZO_TOKEN=
IMAGEBAN_TOKEN=
IMGBB_KEY=
IMGCHEST_KEY=
IMGUR_CLIENT_ID=
LENSDUMP_KEY=
PIXELDRAIN_KEY=
PTPIMG_KEY=
SMMS_KEY=
THUMBSNAP_KEY=
TIXTE_KEY=
UP2SHA_KEY=
UPLIO_KEY=
UPLOADCARE_KEY=
VGY_KEY=
You can set these in environment variables, or in .env file:
- Unix:
~/.config/images-upload-cli/.env - MacOS:
~/Library/Application Support/images-upload-cli/.env - Windows:
C:\Users\<user>\AppData\Roaming\images-upload-cli\.env
Project details
Release history Release notifications | RSS feed
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 images_upload_cli-3.0.6.tar.gz.
File metadata
- Download URL: images_upload_cli-3.0.6.tar.gz
- Upload date:
- Size: 303.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf276c31554116baf49049cdc7a65acdd84dbc781d327d7141c573f43a077a6b
|
|
| MD5 |
5212783a1827cb45bc0f6932ed02bb5e
|
|
| BLAKE2b-256 |
23722635b44a6f96088a82bc300b8b0ed5bfc102af06122b4f6e72cbd5136423
|
Provenance
The following attestation bundles were made for images_upload_cli-3.0.6.tar.gz:
Publisher:
main.yml on deadnews/images-upload-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
images_upload_cli-3.0.6.tar.gz -
Subject digest:
bf276c31554116baf49049cdc7a65acdd84dbc781d327d7141c573f43a077a6b - Sigstore transparency entry: 264856154
- Sigstore integration time:
-
Permalink:
deadnews/images-upload-cli@32f694f14d3c71c0c7ee82e027582f6a505c552e -
Branch / Tag:
refs/tags/v3.0.6 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@32f694f14d3c71c0c7ee82e027582f6a505c552e -
Trigger Event:
push
-
Statement type:
File details
Details for the file images_upload_cli-3.0.6-py3-none-any.whl.
File metadata
- Download URL: images_upload_cli-3.0.6-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
160babb525838d5c44795832c1172a5cb2c100619e4116004eee4c5ed816619a
|
|
| MD5 |
408e58a535079c367a6550458ffc38a0
|
|
| BLAKE2b-256 |
dd48ba347244f4918a7ffeb8f1ab7bea60b47242e2fc4ad790b35bb473bf6984
|
Provenance
The following attestation bundles were made for images_upload_cli-3.0.6-py3-none-any.whl:
Publisher:
main.yml on deadnews/images-upload-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
images_upload_cli-3.0.6-py3-none-any.whl -
Subject digest:
160babb525838d5c44795832c1172a5cb2c100619e4116004eee4c5ed816619a - Sigstore transparency entry: 264856156
- Sigstore integration time:
-
Permalink:
deadnews/images-upload-cli@32f694f14d3c71c0c7ee82e027582f6a505c552e -
Branch / Tag:
refs/tags/v3.0.6 - Owner: https://github.com/deadnews
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@32f694f14d3c71c0c7ee82e027582f6a505c552e -
Trigger Event:
push
-
Statement type: