Skip to main content

s/shellScripts (0.24.0)

Python 3.11+ License: GPL-3.0 Platforms Docs uv

Execute useful shell scripts via an uvx-compatible CLI interface.
shellscripts is a Linux-first command collection for project automation, AI CLI launchers, PDF/DICOM utilities, development helpers, and editor integrations, exposed through a single command.

Quick Start | Feature Highlights | Upgrading or Removing | Shell Scripts


🚧 DRAFT: Proof-of-Concept (PoC) Version 📝 - Work in Progress 🏗️ 🚧
⚠️ IMPORTANT NOTICE: Created with PI-useReq/pi-usereq 🤖✨ ⚠️

Feature Highlights

  • Single CLI entrypoint with command dispatch and grouped built-in help (shellscripts and alias s).
  • AI tooling bootstrap command (ai-install) with per-tool selectors for Codex, Copilot, Gemini, OpenCode, Claude, and Kiro.
  • Project-context launchers for AI CLIs (claude, codex, copilot, gemini, kiro, opencode, pi) and IDEs (vscode, vsinsider).
  • PDF workflow commands for crop, merge, split, TOC cleanup, and tiling.
  • DICOM helpers (dicom2jpg, dicomviewer) and video transcoders (video2h264, video2h265).
  • Project maintenance and automation commands (req, clean, venv, tests, doxygen, ubuntu-dark-theme).
  • Startup update notification with rate-limited checks against the PyPI registry.

Requirements

  • Python >=3.11.
  • Astral uv is required for install and runtime flows (uv tool install, uvx, uv run).
  • Git is required for commands that enforce repository-root execution (claude, codex, copilot, gemini, kiro, opencode, pi, clean, venv, tests, doxygen, vscode, vsinsider).
  • Command-specific external tools are required only for related commands:
    • npm (and sudo on non-Windows) for npm-based ai-install targets.
    • req for the req command.
    • doxygen (plus optional make and pdflatex) for doxygen.
    • gs, pdfinfo, qpdf, pdftk, plakativ for PDF commands.
    • ffmpeg for video2h264 and video2h265.
    • Java runtime + PixelMed jars (+ java-wrappers) for DICOM commands.

Quick Start

Prerequisites

Install / Upgrade

Install from PyPI (primary distribution channel):

uv tool install shellscripts

Upgrade to the latest published PyPI release:

s --upgrade

Run Without Installing (uvx)

uvx shellscripts <command> [args...]

Run From a Local Clone

./scripts/s.sh <command> [args...]

or

uv run --project . python -m shell_scripts <command> [args...]

Install from GitHub (Alternative)

PyPI is the primary distribution channel. As an alternative, the package can be installed from GitHub Releases, which also hosts intermediate and test releases that are not published on PyPI:

uv tool install shellscripts --force --from git+https://github.com/Ogekuri/shellScripts.git@vX.Y.Z

Intermediate and test releases are available at: https://github.com/Ogekuri/shellScripts/releases.

To upgrade to the newest tagged GitHub release, regardless of the branch that carries the tag, use the --dev (alias --develop) flag together with --upgrade:

s --upgrade --dev
# or
s --upgrade --develop

Management Commands

Global syntax:

shellscripts [command] [options]
# or
s [command] [options]

Built-in management flags:

  • --help : show full help or command help (shellscripts --help <command>).
  • --version / --ver : print the installed version plus the latest versions available on PyPI and GitHub.
  • --upgrade : run the configured upgrade command automatically on Linux (installs the latest PyPI release by default), otherwise print the manual command.
  • --upgrade --dev / --upgrade --develop : upgrade from the latest tagged GitHub release instead of PyPI, regardless of its source branch.
  • --uninstall : run configured uninstall command automatically on Linux, otherwise print the manual command.
  • --write-config : write the default runtime configuration file.

Runtime Configuration

Generate a default config file:

s --write-config

Default location:

~/.config/shellScripts/config.json

Top-level configuration keys:

  • management
    • upgrade: command string executed by --upgrade (PyPI install by default).
    • upgrade_develop: command template executed by --upgrade --dev; the {tag} placeholder is replaced with the latest GitHub release tag.
    • uninstall: command string executed by --uninstall.
  • dispatch
    • diff, edit, view: each command supports categories and fallback command vectors.
  • req
    • providers: provider list forwarded to external req.
    • static_checks: static-check entries forwarded to external req.

Shell Scripts

Command List

Command Purpose
ai-install Install AI CLIs (all or selected tools).
claude Launch Claude CLI in project context.
codex Launch Codex CLI in project context with auth sync and CODEX_HOME.
copilot Launch Copilot CLI in project context.
gemini Launch Gemini CLI in project context.
kiro Launch Kiro CLI in project context.
opencode Launch OpenCode CLI in project context.
pi Launch pi.dev CLI in project context (adds default --tools when missing).
clean Find and delete cache directories under the project root (or a passed directory).
req Run useReq bootstrap on current directory, first-level dirs, or recursively.
venv Recreate .venv and install requirements.txt if present.
tests Ensure/create .venv and run pytest (arguments passed through).
doxygen Generate HTML/XML/Markdown docs and optional PDF output.
vscode Open project in VS Code with CODEX_HOME set.
vsinsider Open project in VS Code Insiders with CODEX_HOME set.
diff Dispatch file differ by MIME/category.
edit Dispatch file editor by MIME/category.
view Dispatch file viewer by MIME/category.
pdf-crop Crop PDF pages with auto or manual bounding boxes.
pdf-merge Merge multiple PDFs preserving/rebuilding bookmarks.
pdf-split-by-format Split PDFs into parts when page format changes.
pdf-split-by-toc Split PDF into chapter files from level-1 TOC entries.
pdf-tiler-090 Tile PDF to A4 at 90% scale.
pdf-tiler-100 Tile PDF to A4 at original A1 size.
pdf-toc-clean Remove out-of-range TOC entries and write cleaned outputs.
dicom2jpg Convert DICOM images to JPEG (PixelMed).
dicomviewer Launch PixelMed DICOM viewer.
video2h264 Convert one video to H.264 MP4 via ffmpeg.
video2h265 Convert one video to H.265 MP4 via ffmpeg.
ubuntu-dark-theme Apply GNOME and Qt dark-theme settings.

Selected Usage Examples

Install all AI CLIs (default behavior):

s ai-install

Install only selected AI tools:

s ai-install --codex --gemini --claude

Run pi.dev with default tools injected automatically:

s pi

Override pi tools explicitly:

s pi --tools read,bash,grep,find

Run useReq bootstrap on first-level child directories:

s req --dirs

Clean caches without interactive confirmation:

s clean --yes

Crop PDF with automatic bbox over a page window:

s pdf-crop --in input.pdf --out cropped.pdf --analyze-pages 1-10 --pages 1-

Merge PDFs and choose output file:

s pdf-merge -o merged.pdf a.pdf b.pdf c.pdf

Split PDF by TOC chapters:

s pdf-split-by-toc document.pdf

Convert a video to H.264 MP4:

s video2h264 input.mov

Run tests and pass pytest options:

s tests -q -k "pdf"

Open current git project in VS Code / Insiders:

s vscode
s vsinsider

Acknowledgments

Metadata

Release files for shellscripts 0.24.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shellscripts 0.24.0
File Size Uploaded Provenance Actions
shellscripts-0.24.0.tar.gz 100.8 kB With provenance Details for shellscripts-0.24.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shellscripts 0.24.0
File Interpreter ABI Platform Actions
shellscripts-0.24.0-py3-none-any.whl Python 3 none any Details for shellscripts-0.24.0-py3-none-any.whl

Total release size: 191.0 kB

Release files / shellscripts-0.24.0.tar.gz

Download URL shellscripts-0.24.0.tar.gz
Size 100.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b825ca0afc1678bb39361860aa8ba8bf405dff8417049ee90248a8e9ebcf93cb
BLAKE2b-256 checksum
How to use checksums
90a77208d70dc80d6418dbe08657e6d35c18434bfc846dc7e7793afcc54d580f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / shellscripts-0.24.0-py3-none-any.whl

Download URL shellscripts-0.24.0-py3-none-any.whl
Size 90.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
250f6d0701fb8cddf8a80c95decbd7fe77975fdfa8cbbbb8812870bec406d7c7
BLAKE2b-256 checksum
How to use checksums
4612b62e97249ccbe03612624dc906b645524b4ed9fde0c2f05c57250d55c9a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for shellscripts 0.24.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for shellscripts-0.24.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page