s/shellScripts (0.24.1)
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 (
shellscriptsand aliass). - 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
uvis 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(andsudoon non-Windows) for npm-basedai-installtargets.reqfor thereqcommand.doxygen(plus optionalmakeandpdflatex) fordoxygen.gs,pdfinfo,qpdf,pdftk,plakativfor PDF commands.ffmpegforvideo2h264andvideo2h265.- 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:
managementupgrade: 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.
dispatchdiff,edit,view: each command supportscategoriesandfallbackcommand vectors.
reqproviders: provider list forwarded to externalreq.static_checks: static-check entries forwarded to externalreq.
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.1
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 |
|---|---|---|---|---|
| shellscripts-0.24.1.tar.gz | 101.1 kB | With provenance | Details for shellscripts-0.24.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shellscripts-0.24.1-py3-none-any.whl | Python 3 | none | any | Details for shellscripts-0.24.1-py3-none-any.whl |
Total release size: 191.3 kB
Release files / shellscripts-0.24.1.tar.gz
| Download URL | shellscripts-0.24.1.tar.gz |
|---|---|
| Size | 101.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a3e60154da9a26f89e2be572a7a0f777c1bbd9661095241cba4b91e4bfa322f
|
|
BLAKE2b-256 checksum How to use checksums |
0d4cb6d36d0bcfbbe742e6a7a68b1c6c3ce4fdf0c819ce38973eece5f78f487a
|
| 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 logRelease files / shellscripts-0.24.1-py3-none-any.whl
| Download URL | shellscripts-0.24.1-py3-none-any.whl |
|---|---|
| Size | 90.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfd74f4789bfe04c90a8e7f9a27be0d58a227449649ef301663dd4eea9b87521
|
|
BLAKE2b-256 checksum How to use checksums |
61689a567c2f037204b1ff9bec356d2520a8f1bf461dab15e1c9664e20e4b173
|
| 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 logSecurity for shellscripts 0.24.1
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.
Attestation for shellscripts-0.24.1.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 logA 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.