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.0a1-py3-none-win_amd64.whl (3.1 MB view details)

Uploaded Python 3Windows x86-64

images_upload_cli-4.0.0a1-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.0a1-py3-none-manylinux_2_28_aarch64.whl (3.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

images_upload_cli-4.0.0a1-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.0a1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c906bd6c99c736d33cbbdda3ba38f9d31fd162f99a792673a4b5c39c26d4090c
MD5 3bd0baba8d84ce8f45b7f3ae1c4f70d0
BLAKE2b-256 cfad8ae6060941ebd47bdf3b0c70d44ea60240a40b6efcfa373a9f7c5e59135c

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a1-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.0a1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e87c3c9f50bf894768659cf766e15fecbe3e6e8665c65322e9c38a0ea30a0c6
MD5 9c80c40f4450762ab2fee1fb1d2e4994
BLAKE2b-256 b741370931a950e38876dbbb78b7d2cc91f3a2d9e8bd1587df3bbc4dc61858d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a1-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.0a1-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 82d028de06f2c0f039df08b75c7e573c21abd0908b84e573a7672474ff16b0fe
MD5 a71229f591f6703967cde414ea7ea5b8
BLAKE2b-256 a80b4b465bcc5de5ef034c04d3ec12da0fad7a3f38d12219666a328676840c63

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a1-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.0a1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for images_upload_cli-4.0.0a1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14b5b275ae9af3bbbca2eea1de3a7b358883c8b69e6b22f739a8eb493eaf5ec1
MD5 38f0057c15646d162cd9996418455a2d
BLAKE2b-256 38bc75ce42d95f0f20ab24184802c2340795eca14798a90d02e08163944649f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for images_upload_cli-4.0.0a1-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