Skip to main content

CLI tool to upload images to Chevereto (V4 API V1 file upload) with a polished terminal UI.

Project description

Chupo

chupo

chupo is a high-performance CLI utility designed to upload images directly to a Chevereto instance. It streamlines the image sharing workflow, utilizing the Chevereto API V1 file upload endpoint for fast and reliable uploads.

Python >=3.13 License


✨ Features

  • High Performance: Built with modern Python for fast execution.
  • 🛠️ CLI-First: Designed for speed and terminal integration using Typer.
  • 📊 Beautiful Output: Features rich, colored terminal output with progress bars via Rich.
  • 🚀 Simple Setup: Supports configuration via environment variables or CLI flags.
  • 📂 Batch Upload: Effortlessly upload multiple files at once.

🚀 Quick Start

1. Installation

Install chupo as a global tool using uv:

uv tool install .

Or, if you prefer using pip:

pip install .

2. Usage

Upload a single image:

chupo photo.png -u https://mysite.com -k YOUR_API_KEY

Upload multiple images:

chupo a.png b.png -u https://mysite.com -k YOUR_API_KEY

Get detailed output for an upload:

chupo img.jpg -v

🛠️ Configuration

You can pass flags directly or set environment variables (flags override environment variables).

Variable Flag Description
CHEVERETO_URL -u / --base-url Site base URL (e.g., https://img.example.com)
CHEVERETO_API_KEY -k / --key Your Chevereto API key

Options

  • -f / --format: json (default), txt, or redirect (matches Chevereto’s format parameter).
  • -v / --verbose: With json, prints the full image object returned by the server.
  • --raw: Print only API data to stdout (no banner or Rich UI). With -f json, each response body is written as-is (multiple files separated by a blank line). With -f txt, one URL per line. Errors go to stderr; exit code is non-zero if any upload fails.

Pipe-friendly example:

chupo photo.png -u https://mysite.com -k YOUR_API_KEY --raw -f txt

📋 API Scope

This client follows the Chevereto V4 — API V1 file upload specification (POST /api/1/upload, multipart source, X-API-Key header). It is optimized for modern Chevereto V4 instances.


📄 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chupo-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

chupo-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file chupo-0.1.0.tar.gz.

File metadata

  • Download URL: chupo-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chupo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8b2ad62c5c231f1946444e91fcc66acd0f003536ad8dfa78a72c3bfa151a8e0
MD5 46f3006904e838fe337eff167406f2b6
BLAKE2b-256 582d70fed7bd7a54819e90a02833bc283d9e51f588334d0fdc1975b14f36c0cc

See more details on using hashes here.

File details

Details for the file chupo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chupo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for chupo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d2bbfead78ff257c451b9ec1648a9755ac536351103be37dfdbd9fbc34f988
MD5 8f9d4ff7c6096ff78c0af4631315311d
BLAKE2b-256 619e9079ee254ce3ad0d4bf9279520f0c96d038abd798bf1f8e43d6ed1f2921d

See more details on using hashes here.

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