bluethroat
Command-line client for BlueSkills, BlueGate, BluePaper, and local BlueExif and BlueMask tools. Log in once with the Bluethroat GitHub App for hosted tools; BlueExif and BlueMask run locally and need no account.
uv tool install bluethroat
bluethroat auth login
bluethroat blueskills scan https://github.com/owner/repository --ref <commit>
bluethroat clone https://github.com/owner/repository --ref <commit>
bluethroat bluegate scan https://github.com/owner/repository --ref <commit>
bluethroat bluepaper convert suspicious.docx
bluethroat blueexif scan photo.jpg
bluethroat bluemask blur screenshot.png 40,20 180,70
clone and bluegate scan are the same BlueGate scan. Neither runs git. The text report ends with a clone command pinned to the scanned commit. --json prints the scan document from either product. On the BlueGate commands, --agent prints the fenced agent report. Without a format flag, the command prints text.
bluepaper convert uploads a document, waits for the isolated pixel rebuild, prints the byte-indicator report, and writes <source stem>-safe.pdf. Use -o PATH to choose another output, --ocr-lang eng to request OCR, and --force to replace an existing regular file. --json prints the conversion and report document; the safe PDF is still written. A successful rebuild exits 0 with no indicators or 1 with indicators. A failed rebuild exits 7 and does not write a PDF.
BlueExif
BlueExif scans and changes metadata locally:
# Show field ids and values. Add --json for the complete metadata document.
bluethroat blueexif scan photo.jpg
# JSON values are required; quote string assignments for the shell.
bluethroat blueexif replace photo.jpg \
'exif:ifd0:010e="Public caption"' \
'exif:ifd0:0112=1'
# Remove selected fields, a removable group, or all nonessential metadata.
bluethroat blueexif remove song.mp3 id3:TPE1 id3:COMM
bluethroat blueexif remove report.pdf @group:pdf:info
bluethroat blueexif remove photo.jpg --all
Mutations never overwrite the source. They write <source stem>-blueexif<source suffix>;
use -o PATH to choose another file and --force to replace an existing regular file.
Symlink outputs and source/output aliasing are refused. --all keeps JPEG orientation and
ICC colour profiles, and removes cover art.
The Python backend supports EXIF edits on JPEG; ID3, Vorbis/FLAC/Ogg, MP4/M4A, WAV and AIFF tags through Mutagen; PDF Info/XMP; SVG; and metadata XML in OOXML, OpenDocument, and EPUB packages. Other image and media formats may be scan-only. This backend does not reproduce every writer or hidden-data rule in the browser BlueExif engine; an unsupported or unsafe mutation fails instead of remuxing or re-encoding the file.
BlueMask
BlueMask replaces a rectangular image region with an opaque neutral mask by default:
bluethroat bluemask blur screenshot.png 40,20 180,70
Coordinates are X,Y corners in displayed-image pixels. (0,0) is the top-left, X
increases rightward, Y increases downward, and the rectangle's right and bottom edges
are exclusive. Either corner order is accepted.
Pass --cosmetic for appearance-only Gaussian blur. Cosmetic blur can leave details
recoverable and is not secure redaction:
bluethroat bluemask blur photo.jpg 120,80 360,300 --cosmetic -o photo-blurred.png
The command accepts PNG, JPEG, and WebP locally, applies EXIF orientation, flattens
transparency onto white, and writes a fresh metadata-free PNG. The default output is
<source stem>-bluemask.png. Existing files and symlinks are refused unless an existing
regular output is explicitly replaced with --force.
Configuration
| Variable | Purpose |
|---|---|
BLUETHROAT_GITHUB_CLIENT_ID |
GitHub App client ID. Defaults to the Bluethroat app (Iv23liH0YU6oTHHz0i8O). |
BLUETHROAT_GITHUB_CLIENT_SECRET |
Optional, for development only. Revokes directly at GitHub instead of through BlueSkills. Do not put this in the distributed client. |
BLUETHROAT_API_URL |
BlueSkills API origin. Defaults to https://blueskills-api-shared-ddghgbhxd7evbkfn.z03.azurefd.net. |
BLUETHROAT_BLUEGATE_API_URL |
BlueGate API origin. Defaults to https://bluegate.bluethroatlabs.com. |
BLUETHROAT_BLUEPAPER_API_URL |
BluePaper API origin. Defaults to https://bluepaper.bluethroatlabs.com. |
The same keys can live in ~/.config/bluethroat/config.json as github_client_id, github_client_secret, api_url, bluegate_api_url, and bluepaper_api_url. Environment variables win.
The GitHub session is stored in the operating-system credential store, or in a mode 0600 file at ~/.config/bluethroat/credentials.json when that store is unavailable.
blueskills scan, clone, bluegate scan, and bluepaper convert send Authorization: Bearer with the GitHub user access token. Each API checks it against the Bluethroat CLI GitHub App; BluePaper also binds each conversion to that GitHub user id. The access token lasts 8 hours; the CLI refreshes it with GitHub on its own, which needs no client secret for a device-flow login. auth logout asks BlueSkills (POST /auth/github/revoke) to revoke the token, since only the server holds the secret. blueexif never uploads the file and does not use the stored credential.
Metadata
Release files for bluethroat 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bluethroat-0.1.6.tar.gz | 34.5 kB | Without provenance | Details for bluethroat-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bluethroat-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for bluethroat-0.1.6-py3-none-any.whl |
Total release size: 75.9 kB
Release files / bluethroat-0.1.6.tar.gz
| Download URL | bluethroat-0.1.6.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32036ff790065c1226268f4d449032bd08334ff8906695229a8913ffd5d45090
|
|
BLAKE2b-256 checksum How to use checksums |
52e4dff2f1745cd2600ac310a4b3047c2dcb752b68c1a3e18b35b818ebd78504
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bluethroat-0.1.6-py3-none-any.whl
| Download URL | bluethroat-0.1.6-py3-none-any.whl |
|---|---|
| Size | 41.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8104e198d0ef59e2b2b483d7b356534b191c2d021586f6a1681c61ee6afef204
|
|
BLAKE2b-256 checksum How to use checksums |
0a197133a4b36eac2f4b30e16b3b07d0cf1a1faa481002db268e33a16bdebf1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bluethroat 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.