CLI tool to upload images to Chevereto (V4 API V1 file upload) with a polished terminal UI.
Project description
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.
✨ 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, orredirect(matches Chevereto’sformatparameter).-v/--verbose: Withjson, prints the fullimageobject 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
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 chupo-0.1.1.tar.gz.
File metadata
- Download URL: chupo-0.1.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eda20884bae61c0684aaca6f6f16a94d9f6e5bc86f056ecfe97943c97d70c31c
|
|
| MD5 |
5bed01aec299a855b1d7b1857b1238e2
|
|
| BLAKE2b-256 |
dbcc10f3c1608454878e6e7f52f64dc82db239bc20ae9579e71e634b22fdaa8c
|
Provenance
The following attestation bundles were made for chupo-0.1.1.tar.gz:
Publisher:
publish.yml on h4nz4/chupo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chupo-0.1.1.tar.gz -
Subject digest:
eda20884bae61c0684aaca6f6f16a94d9f6e5bc86f056ecfe97943c97d70c31c - Sigstore transparency entry: 1257250081
- Sigstore integration time:
-
Permalink:
h4nz4/chupo@0c1a16b0b52df1e1ea98cd750a9ba64040daa2e5 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/h4nz4
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c1a16b0b52df1e1ea98cd750a9ba64040daa2e5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file chupo-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chupo-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec3265f74f2b57a7a30534b3d3c95d47384d21cb4ce8ce80f0b95aaa674f56ba
|
|
| MD5 |
99630d8c4dce637a9c668b258bf6cb69
|
|
| BLAKE2b-256 |
95e61e1d3a97241875613e07548117ea29fa79ccd9e9135396b2f252a4ef3fab
|
Provenance
The following attestation bundles were made for chupo-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on h4nz4/chupo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chupo-0.1.1-py3-none-any.whl -
Subject digest:
ec3265f74f2b57a7a30534b3d3c95d47384d21cb4ce8ce80f0b95aaa674f56ba - Sigstore transparency entry: 1257250149
- Sigstore integration time:
-
Permalink:
h4nz4/chupo@0c1a16b0b52df1e1ea98cd750a9ba64040daa2e5 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/h4nz4
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c1a16b0b52df1e1ea98cd750a9ba64040daa2e5 -
Trigger Event:
release
-
Statement type: