Skip to main content

Upload images via APIs

Project description

images-upload-cli

Upload images via APIs

Rust: Crates.io PyPI: Version AUR: version GitHub: Release CI: Main CI: Coverage

InstallationHostingsUsageEnv Variables

Installation

# PyPI
uv tool install images-upload-cli

# AUR
yay -S images-upload-cli-bin

[!NOTE] Run with: imgup.

Hostings

host key required return example
beeimg - https://beeimg.com/images/{id}.png
catbox - https://files.catbox.moe/{id}
fastpic - https://i120.fastpic.org/big/2022/0730/d9/{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
sxcu - https://sxcu.net/{id}.png
thumbsnap + https://thumbsnap.com/i/{id}.png
tixte + https://{domain}.tixte.co/r/{id}.png
uplio + https://upl.io/i/{id}.png
uploadcare + https://ucarecdn.com/{id}/img.png
vgy + https://i.vgy.me/{id}.png
zpic + https://zpi.cx/b/{id}.png

Usage

Upload images via APIs

Usage: imgup [OPTIONS] <IMAGES>...

Arguments:
  <IMAGES>...  Image files to upload

Options:
  -H, --hosting <HOSTING>          Hosting service to use [default: imgur]
                                   [possible values: beeimg, catbox, fastpic, freeimage, gyazo,
                                   imageban, imagebin, imgbb, imgchest, imgur, lensdump,
                                   pixeldrain, pixhost, ptpimg, sxcu, thumbsnap, tixte, uplio,
                                   uploadcare, vgy, zpic]
  -f, --format <FORMAT>            Output format for the links [default: plain]
                                   [possible values: plain, bbcode, html, markdown]
  -t, --thumbnail                  Create captioned thumbnails
  -n, --notify                     Send desktop notification on completion
      --no-clipboard               Disable copying the result to the clipboard
      --env-file <ENV_FILE>        Path to .env file. Overrides default config path
  -j, --jobs <JOBS>                Max concurrent uploads [default: 4]
  -v, --verbose...                 Increase verbosity (-v for info, -vv for debug)
  -h, --help                       Print help
  -V, --version                    Print version

Env Variables

FREEIMAGE_KEY=
GYAZO_TOKEN=
IMAGEBAN_TOKEN=
IMGBB_KEY=
IMGCHEST_KEY=
IMGUR_CLIENT_ID=
LENSDUMP_KEY=
PIXELDRAIN_KEY=
PTPIMG_KEY=
THUMBSNAP_KEY=
TIXTE_KEY=
UPLIO_KEY=
UPLOADCARE_KEY=
VGY_KEY=
ZPIC_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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

images_upload_cli-4.0.0a2-py3-none-win_amd64.whl (3.1 MB view details)

Uploaded Python 3Windows x86-64

images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_x86_64.whl (4.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_aarch64.whl (3.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

images_upload_cli-4.0.0a2-py3-none-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file images_upload_cli-4.0.0a2-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a429c75b0b317c25fd628a2dba41bfb6f0e812ef4601061ffcdb5920961d947b
MD5 8c9cb9b7a12e1df6219a4863d74b2310
BLAKE2b-256 b2e05efd1bf0ea0e51e5f683e6f7932c67ed7b8a0573953d2bce5360b038e47e

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a2-py3-none-win_amd64.whl:

Publisher: main.yml on deadnews/images-upload-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebea128cfb13cfa9cb821ebd0b4ba78115fb4dcf76250bca1f0008b91d10e101
MD5 188d589ef3b91b4ca4ae62c527fa5a2a
BLAKE2b-256 da8df2bde897ae57eb63e7f8650d97f942a65971b20764a5aca3fe3010058131

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_x86_64.whl:

Publisher: main.yml on deadnews/images-upload-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 af82aca06bb286f60a1ac2302de6af004447f546d676d4dd79b44072781d587b
MD5 4535f9f55bf879346c5eded572a3e7ae
BLAKE2b-256 d56bcda4a538c1c5e918bb41cc4fc8c86c577a10e3a5c00e1d8fdc22a884c9ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a2-py3-none-manylinux_2_28_aarch64.whl:

Publisher: main.yml on deadnews/images-upload-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file images_upload_cli-4.0.0a2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c2582bdaf7b64aa1619a0ee7864092e7adb30907739b77fbc8735085273c365b
MD5 dceb92bd243d090cb5effad1cf344162
BLAKE2b-256 246f0e6de3c47fe7fed355f8e3c71beb5784de32224fc63424bacd7835a22f7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a2-py3-none-macosx_11_0_arm64.whl:

Publisher: main.yml on deadnews/images-upload-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page