tacklebox-cli (0.4.0)

Published 2026-06-09 14:37:35 -04:00 by cswimr in cswimr/tacklebox

Installation

pip install --index-url  tacklebox-cli

About this package

A small collection of CLI utilities.

tacklebox-cli

Actions Status PyPI - Version PyPI - Python Version PyPI - License
tacklebox-cli offers a suite of useful CLI tools.

Usage

tacklebox copy / paste

Cross-platform clipboard management tool. Uses system tools such as wl-copy on Linux Wayland or clip.exe on Windows, and OSC 52 escape codes when copying over SSH or when no other tools are available. See copy_with_tooling() for all supported tools.

$ echo "a" | tacklebox copy --trim && tacklebox paste
a

tacklebox prepend-to-file

Prepend the contents of one file to another, with support for adding a newline automatically and checking if the operation has already been performed on the destination file.

$ echo "template-example" > template
$ echo "hello world" > hello-world.txt
$ tacklebox prepend-to-file template hello-world.txt -n
$ cat hello-world.txt
template-example
hello world

tacklebox find-desktop-entry (Linux only)

Checks all of the paths under $XDG_DATA_DIRS for an application desktop file with the given name. Prints the full path of the desktop file to stdout if found.

$ tacklebox find-desktop-entry kitty
kitty.desktop found in /etc/profiles/per-user/cswimr/share/applications
/etc/profiles/per-user/cswimr/share/applications/kitty.desktop

$ tacklebox find-desktop-entry --read kitty
kitty.desktop found in /etc/profiles/per-user/cswimr/share/applications
# /etc/profiles/per-user/cswimr/share/applications/kitty.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=kitty
GenericName=Terminal emulator
Comment=Fast, feature-rich, GPU based terminal
TryExec=kitty
StartupNotify=true
Exec=kitty
Icon=kitty
Categories=System;TerminalEmulator;
X-TerminalArgExec=--
X-TerminalArgTitle=--title
X-TerminalArgAppId=--class
X-TerminalArgDir=--working-directory
X-TerminalArgHold=--hold

License - The MIT License

Copyright © 2025 cswimr

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Requirements

Requires Python: >=3.13
Details
PyPI
2026-06-09 14:37:35 -04:00
11
22 KiB
Assets (2)
Versions (27) View all
0.4.3 2026-06-14
0.4.2 2026-06-14
0.4.1 2026-06-13
0.4.0 2026-06-09