Skip to main content

A small collection of CLI utilities.

Project description

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.

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

tacklebox_cli-0.4.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tacklebox_cli-0.4.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file tacklebox_cli-0.4.0.tar.gz.

File metadata

  • Download URL: tacklebox_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tacklebox_cli-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5aae1f29d7edbf7803688273f33680096bf42d8ee6dca952d324671753f78a2f
MD5 6c5c52dc92d421831dcc64db524bbdfd
BLAKE2b-256 d2d82d53c962760d4d9403f89549fc2feb2f8d553b58bad2576fcac8242e6690

See more details on using hashes here.

File details

Details for the file tacklebox_cli-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: tacklebox_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tacklebox_cli-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d8e8b4fb399c1ea1b1dd72a0b5590b8147f73abd8ec0e5b3df2e2b7b7ce86ac
MD5 b4bc52cea4badf2fe71d75d855380eba
BLAKE2b-256 ff54dc2282dd7ed1ffb8fcf3c53925c647c010ac7b5e7bd13501a1abf25da98b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page