Skip to main content

Upload images via APIs

Project description

images-upload-cli

Upload images via APIs

PyPI version AUR version CI/CD pre-commit.ci codecov

Installation

PyPI

pip install images-upload-cli
# or
pipx install images-upload-cli

AUR

yay -S python-images-upload-cli

Hostings

host key required return example
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
geekpic - https://s01.geekpic.net/{id}.png
gyazo + https://i.gyazo.com/{id}.png
imageban + https://i2.imageban.ru/out/2022/07/30/{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
pictshare - https://pictshare.net/{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
screenshotting - https://screenshotting.site/i/{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
up2sha + https://up2sha.re/media/raw/{id}.png
uplio + https://upl.io/i/{id}.png
uploadcare + https://ucarecdn.com/{id}/img.png

Usage

Usage: images-upload-cli [OPTIONS] IMAGES...

  Upload images via APIs.

Options:
  -h, --hosting [catbox|fastpic|filecoffee|freeimage|geekpic|gyazo|imageban|imgbb|imgchest|imgur|pictshare|pixeldrain|pixhost|ptpimg|screenshotting|smms|sxcu|telegraph|up2sha|uplio|uploadcare]
                                  [default: imgur]
  -b, --bbcode                    Add bbcode tags.
  -t, --thumbnail                 Add caption thumbnail and bbcode tags.
  -c, --clipboard / -C, --no-clipboard
                                  Copy result to clipboard.  [default: c]
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Env variables

CAPTION_FONT= # The default font is system dependent.

BEEIMG_KEY=
FREEIMAGE_KEY=
GYAZO_TOKEN=
IMAGEBAN_TOKEN=
IMGBB_KEY=
IMGCHEST_KEY=
IMGUR_CLIENT_ID=
PTPIMG_KEY=
SMMS_KEY=
UP2SHA_KEY=
UPLIO_KEY=
UPLOADCARE_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

images-upload-cli-1.0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

images_upload_cli-1.0.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file images-upload-cli-1.0.2.tar.gz.

File metadata

  • Download URL: images-upload-cli-1.0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.10 Linux/5.15.0-1014-azure

File hashes

Hashes for images-upload-cli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fe7a1c4715fb9853ab34e187f5dd9512d823128dd0c65d113c144c4ecdf6d743
MD5 5f4d2b442c2b5b77fa52f0e6575104c5
BLAKE2b-256 82b8f016255ad8e0333ce13247df7daa0a8506a4d43444dd4bbcfaaa119d771d

See more details on using hashes here.

File details

Details for the file images_upload_cli-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: images_upload_cli-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.10 Linux/5.15.0-1014-azure

File hashes

Hashes for images_upload_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f54a43991c6db1775a567dc319c6b3a8f1ad465d8b0c5e916f6da0298541e89e
MD5 a062378e585f399b43a42cf72f1fc907
BLAKE2b-256 880664ab410225c1d2e11df7f90b3340404e267da97f088f0a745ddc05227cac

See more details on using hashes here.

Supported by

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