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.2.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.2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tacklebox_cli-0.4.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.2.tar.gz
Algorithm Hash digest
SHA256 7667846a3c15c830100c4f7c6116c92cad1ecd6070febb725c56b2505e44a5bf
MD5 38ec270773f3998a3438d6e095fac085
BLAKE2b-256 9f8340b5cb4747a1c6b5e07598b690329e76c4cc467d38f87bad808854753323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tacklebox_cli-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 349f5036b64e200278ccc397f185eb1ff977d874f7c9b421e56018cc2058a866
MD5 380a3b6a7711eeb49b85b3a44ec394fb
BLAKE2b-256 e3322a57794db66ac6030bd115f53ecfb364b01ea1568a3bd4c3c02df846d0db

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